Jump to content

Attempting to learn "GUICtrlCreateTab"


xenium
 Share

Recommended Posts

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
Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...