Forum Discussion

electroisok's avatar
electroisok
Occasional Contributor
12 years ago

Property of the objects

What property should be used to differentiate several textboxs that are visible, but some are in the active window and other behind, but still visible. I just want to get the objects in the active windows, as a popup.



I have tried  with: Visible, VisibleOnScreen but both are TRUE, and Focus is only for a textbox with the focus.

2 Replies

  • bbi's avatar
    bbi
    Contributor
    The best approach would be to use Z order but as far as i know this is not implemented natively in TestComplete.



    Perhaps using windows api like getTopWindow/getNextWindow ?



    MSDN GetTopWindow
  • If popup window is modal, you can use CanSelect or CanFocus property. One of them should work for you.