Sign in to follow this  
Followers 0
wfuehrer

how can i detect tab changing

3 posts in this topic

Hi!

How can i detect when a user change a tab in my gui?

I have no succsess with testing the control ID.

...
$TabSheet3 = GUICtrlCreateTabItem("Contacts")
...
While 1
    $nMsg = GUIGetMsg()
    Select
            Case $nMsg = $TabSheet3
              _DoSomething

...

Will not work.


Wolfgang Führer

Share this post


Link to post
Share on other sites



$Tab = GUICtrlCreateTabItem(10,10, 200,100)
$TabSheet3 = GUICtrlCreateTabItem("Contacts")
...
While 1
    $nMsg = GUIGetMsg()
    Select
            Case $nMsg = $Tab
               Switch GuiCtrlRead($Tab)
                  Case 0
                    _DoSomething
                  Case 1
                  Case 2


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Thank you very much ...


Wolfgang Führer

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0