Jump to content
Sign in to follow this  
myspacee

detect when switch tabitem

Recommended Posts

myspacee

Hello,

i've a GUI with some tabitem.

How can detect when user swith to a tab to another ?

Thank you for any info,

m.

Share this post


Link to post
Share on other sites
BugFix

sample:

GuiCreate('test')
$tab = GuiCtrlCreateTab(20,20,200,150)
$item0 = GuiCtrlCreateTabItem('Item 0')
$item1 = GuiCtrlCreateTabItem('Item 1')
GUICtrlCreateTabItem('')

GUISetState()

While True
    $msg = GUIGetMsg()
    Switch $msg
        Case -3
            Exit
        Case $tab
            Switch GUICtrlRead($tab)
                Case 0
                    MsgBox(0, '', 'Item 0')
                Case 1
                    MsgBox(0, '', 'Item 1')
            EndSwitch
    EndSwitch
WEnd

Best Regards BugFix  

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  

×