user interface - AHK GUI card view flow issue -
gui, 1:add, tab, x-11 y-21 w493 h405 vcardtabs, tab1|tab2|tab3 gui, tab, tab1 gui, 1:add, text,, tab 1 gui, 1:add, button, x352 y330 w100 h30 , next gui, tab, tab2 gui, 1:add, text,, tab 2 gui, 1:add, button, x352 y330 w100 h30 , next gui, 1:add, button, x242 y330 w90 h30 , gui, tab, tab3 gui, 1:add, text,, tab 3 gui, 1:add, button, x242 y330 w90 h30 , gui, 1:show, x-1246 y259 h379 w479, card view gui return 1guiclose: exitapp buttonback: send ^+{tab} return buttonnext: send ^{tab} return
i have created card view layout in ahk have problem, have used method of creating set of tabs, , hiding tabs user view outside of viewable program window, users able send commands window cycle through tabs e.g control + tab
i wondering if there better way of forming type of gui , have more control, e.g pass onto next tab (panel?) button press
if there type of panel view have missed can added avoid issue me alot thankyou
i went under assumption wanted disable ctrl+tab , ctrl+shift+tab script still have buttons cycle through tabs.
below you'll find override ctrl+... hotkeys , not allow function sent if gui active, otherwise sends desired keystroke (important because want work in other tabbed applications).
for cycling through tabs w/o ctrl+... hotkeys, name of selected tab, , use guicontrol, choose... select next/previous tab.
finally, @ stop of script, demonstrated can name guis , set them defaults.
; can name guis vs using numbers gui, mycustomname_:default ; setting default tell controls below use gui gui, add, tab, w493 h405 vcardtabs, tab1|tab2|tab3 gui, tab, tab1 gui, add, text,, tab 1 gui, add, button, x352 y330 w100 h30 , next gui, tab, tab2 gui, add, text,, tab 2 gui, add, button, x352 y330 w100 h30 , next gui, add, button, x242 y330 w90 h30 , gui, tab, tab3 gui, add, text,, tab 3 gui, add, button, x242 y330 w90 h30 , gui, show, y259 h379 w479, card view gui return mycustomname_guiclose: exitapp $^tab:: { ifwinnotactive, card view gui sendinput, ^{tab} return } $^+tab:: { ifwinnotactive, card view gui sendinput, ^+{tab} return } buttonback: guicontrolget, name,, cardtabs if (name == "tab2") { guicontrol, choose, cardtabs, tab1 } else if (name == "tab3") { guicontrol, choose, cardtabs, tab2 } return buttonnext: guicontrolget, name,, cardtabs if (name == "tab1") { guicontrol, choose, cardtabs, tab2 } else if (name == "tab2") { guicontrol, choose, cardtabs, tab3 } return
hope helps!