Forum Discussion
Thank you everyone for your suggestions and advice, I really appreciate all your feedback. This issue is no longer an issue for me. Maybe it wasn't very clear in one of my messages above, but I did end up adding in the VisibleOnScreen property which did fix my issue:
I ended up adding in another If..Then to say if field is VisibleonScreen = True, then run the next task. This seemed to have fixed the problem.
When I first posted the issue, it didn't occur on me that the object existed with zero size because the UI element is hidden. It wasn't until I read a different post that talked about Visible and VisibleOnScreen property that sparked the light bulb to check those values. I'm still learning and again, do appreciate the feedback from everyone who has responded with suggestions.
Yep.
Developers seems to have numerous different ways of making objects hidden & visible.
Using VisibileOnScreen is usually OK. But I've run into some styling in a Delphi app (desktop app so maybe not of much interest to you) where VisibleOnScreen is TRUE (as is Visible) and yet the object is not visible. (I have no idea how they are hiding it - it is still there in the object model, I've checked) For these, I have to use a "Field" rather than a "Property" of the object. Using the field "FVisible" is the only accurate reflection of it's visibility. (Size remains unchanged throughout)
Another one for the pile of "how are yhou hiding this element?" questions ..... :smileyvery-happy: