03-14-2018, 08:32 AM
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.
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.