Jump to content

detect when switch tabitem


Recommended Posts

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  

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...