So here is what I did. and it works great
1. Load a spinner gif file, put it under the PDF Viewer and set a var for its Visibilty.
(I like containers, so I made one to fill the screen, set to spinner color and put image of gif inside it)
2. Set the PDF View Docuement as a Variable like varPdfDocument
3. Set the FILL of the PDF Viewer to RGBA(0,0,0,0) so its clear
4. From my Gallery the OnSelect object loads the varPdfDcoument with my Trick
(Set(varPdfDocument, Substitute(FileGallary.Selected.Thumbnail.Large,"/thumbnail","/pdf") );)
5. Set the Visibilty of the PDF Viewer to True (control with variable)
6. Now I see a spnner until the PDF LOADS.
7. the CLOSE button , has a set the DOCUMENT of hte PDF Viewer to "clear" (means nothing, but make it blank)
8. Hide the PDF Viewer (visibilty)
So the next time I click on a member of my Gallery, it loads that PDF with a spinner and never shows the previous PDF (like it did before , annoying!)
So its basically all controlled with Variables (Document, Visiblity ) and then Order for the FILL to work
PDF VIEWER on top of the spinner

