Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Locate selected tab
#1
A window has a certain number of tabs one of which is selected. I access any of these tabs using :

Acc a.Find(w "PAGETAB" "tab_name" "class=TTabControl" 0x1005)

and I can find if it is selected using
int state=a.State
out state&STATE_SYSTEM_SELECTED

My intention is to locate the selected tab. What I do at present is to navigate through them and check each one's state. I stop when found. I wonder whether there exists a simpler way to do it. Many thanks in advance.


Messages In This Thread
Locate selected tab - by ssimop - 03-14-2018, 08:32 AM
RE: Locate selected tab - by Gintaras - 03-14-2018, 09:40 AM
RE: Locate selected tab - by ssimop - 03-14-2018, 10:21 AM
RE: Locate selected tab - by Gintaras - 03-14-2018, 11:24 AM
RE: Locate selected tab - by ssimop - 03-14-2018, 11:52 AM
RE: Locate selected tab - by Gintaras - 03-14-2018, 11:58 AM
RE: Locate selected tab - by ssimop - 03-14-2018, 12:23 PM
RE: Locate selected tab - by Gintaras - 03-14-2018, 12:36 PM
RE: Locate selected tab - by ssimop - 03-14-2018, 12:52 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)