Code: Select all
Gui := GuiCreate()
tab := Gui.Add("tab", "w300 h100", "aaa|bbb|ccc")
tab.Onevent("Change","Tabchange")
Gui.Add("button"," x+10 y+10" ,"test")
Gui.OnEvent("Close", ()=>ExitApp())
Gui.OnEvent("Escape", ()=>ExitApp())
Gui.Show()
Tabchange(ctrl, n) {
ToolTip "tab - " n "/" ctrl.value
}
Tab change event is not called when changing a tab with Ctrl+Tab, Ctrl+Shift+Tab, Ctrl+PgUp&PgDn