Bug: Gui Tab Control Change Event not work Topic is solved

Report problems with documented functionality
rodemp
Posts: 44
Joined: 15 Nov 2016, 00:28

Bug: Gui Tab Control Change Event not work

15 Dec 2018, 22:15

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
}
Gui Tab Control Change Event not work in keyboard Navigation event

Tab change event is not called when changing a tab with Ctrl+Tab, Ctrl+Shift+Tab, Ctrl+PgUp&PgDn
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Bug: Gui Tab Control Change Event not work  Topic is solved

15 Jul 2023, 18:35

This was fixed by v2.0-beta.13.

The example above only runs on an earlier alpha version.

Code: Select all

#Requires AutoHotkey v2.0-beta
g := Gui()
tab := g.Add("tab", "w300 h100", ["aaa","bbb","ccc"])
tab.OnEvent("Change", Tabchange)
g.Add("Button", "x+10 y+10", "test")
g.OnEvent("Escape", g => g.Destroy())
g.Show()

Tabchange(ctrl, n) {
	ToolTip "tab - " n "/" ctrl.value
}

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 35 guests