Sign in to follow this  
Followers 0
xenium

Attempting to learn "GUICtrlCreateTab"

2 posts in this topic

Say this imaginarey code below is real. and I want 2 copies of it each in their own tab. How would I go about doing that? I can't seem to figure this out. Thanks!

$Checkbox_12 = GuiCtrlCreateCheckbox("Say it (/say)", 220, 160, 130, 20)
$Input_13 = GuiCtrlCreateInput("Additional Channel (eg /4)", 10, 220, 190, 20)
GuiCtrlSetState(-1, $GUI_DISABLE)
$C_Delay = GuiCtrlCreateInput("Channel delay (min)", 10, 190, 190, 20)
$UpDownInput_14 = GUICtrlCreateUpDown($C_Delay)


GuiSetState()
While 1
    $case = GuiGetMsg()
    Select
    Case $case = $rpg_but 

EndSelect
WEnd

Share this post


Link to post
Share on other sites



is this what you want ?

#include <GUIConstants.au3>
GUICreate("My GUI Tab",250,150)

$tab=GUICtrlCreateTab (10,10, 200,100)

$tab0=GUICtrlCreateTabitem ("tab0")
GuiCtrlCreateCheckbox("Say it (/say)", 220, 160, 130, 20)
GuiCtrlCreateInput("Additional Channel (eg /4)", 10, 220, 190, 20)
GuiCtrlSetState(-1, $GUI_DISABLE)
GuiCtrlCreateInput("Channel delay (min)", 10, 190, 190, 20)
GUICtrlCreateUpDown($C_Delay)

$tab1=GUICtrlCreateTabitem ( "tab----1")
GuiCtrlCreateCheckbox("Say it (/say)", 220, 160, 130, 20)
GuiCtrlCreateInput("Additional Channel (eg /4)", 10, 220, 190, 20)
GuiCtrlSetState(-1, $GUI_DISABLE)
GuiCtrlCreateInput("Channel delay (min)", 10, 190, 190, 20)
GUICtrlCreateUpDown($C_Delay)

GUISetState ()

GuiSetState()
While 1
    $case = GuiGetMsg()
    Select
    Case $case = $rpg_but 

EndSelect
WEnd

Share this post


Link to post
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
Sign in to follow this  
Followers 0