Gui tab can be useful
but if u want a more customizable Gui layout, its better to start from scratch
example:
Code:
Gui, Add, Button, gtb1 w50, tab 1
Gui, Add, Button, gtb2 w50 y+30, tab 2
Gui, Add, Button, gtb3 w50 y+30, tab 3
Gui, Add, Button, gtb4 w50 y+30, tab 4
;Gui, Tab, 1
Gui, Add, Checkbox, vt11 x150 y10, Sample checkbox
;Gui, Tab, 2
Gui, Add, Radio, vt21 x150 y10, Sample radio1
Gui, Add, Radio,vt22, Sample radio2
;Gui, Tab, 3
Gui, Add, Edit, vt31 r5 x150 y10
;Gui, Tab, 4
Gui, Add, Text,vt41, Tab Four
;Gui, Tab ; i.e. subsequently-added controls will not belong to the tab control.
Gui, Add, Button, default xm, OK ; xm puts it at the bottom left corner.
loop 1
GuiControl, show, t1%A_index%
loop 2
GuiControl, hide, t2%A_index%
loop 1
GuiControl, hide, t3%A_index%
loop 1
GuiControl, hide, t4%A_index%
Gui, Show,w300
return
tb1:
loop 1
GuiControl, show, t1%A_index%
loop 2
GuiControl, hide, t2%A_index%
loop 1
GuiControl, hide, t3%A_index%
loop 1
GuiControl, hide, t4%A_index%
return
tb2:
loop 1
GuiControl, hide, t1%A_index%
loop 2
GuiControl, show, t2%A_index%
loop 1
GuiControl, hide, t3%A_index%
loop 1
GuiControl, hide, t4%A_index%
return
tb3:
loop 1
GuiControl, hide, t1%A_index%
loop 2
GuiControl, hide, t2%A_index%
loop 1
GuiControl, show, t3%A_index%
loop 1
GuiControl, hide, t4%A_index%
return
tb4:
loop 1
GuiControl, hide, t1%A_index%
loop 2
GuiControl, hide, t2%A_index%
loop 1
GuiControl, hide, t3%A_index%
loop 1
GuiControl, show, t4%A_index%
return