Vindicator209 Posted May 20, 2008 Share Posted May 20, 2008 How do I create a new control in an already existing tab? [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
sandin Posted May 20, 2008 Share Posted May 20, 2008 try this: #include <GUIConstants.au3> $Form1 = GUICreate("AForm1", 625, 445, 193, 115) $Tab1 = GUICtrlCreateTab(80, 80, 393, 209) $tabitem1 = GUICtrlCreateTabItem("Tab1") $tabitem2 = GUICtrlCreateTabItem("Tab2") $tabitem3 = GUICtrlCreateTabItem("Tab3") GUICtrlCreateTabItem("") $Button1 = GUICtrlCreateButton("Create Button to:", 112, 336, 137, 33, 0) $combo1 = GUICtrlCreateCombo("", 250, 340, 137, 33, $CBS_DROPDOWNLIST) GUICtrlSetData(-1, "Tab1|Tab2|Tab3", "Tab1") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $Button1 $var = guictrlread($combo1) if $var = "Tab1" Then GUISwitch($Form1,$tabitem1) ElseIf $var = "Tab2" Then GUISwitch($Form1,$tabitem2) Else GUISwitch($Form1,$tabitem3) EndIf GUICtrlCreateButton("OK!", 300, 200) GUICtrlCreateTabItem("") EndSwitch WEnd amin84 1 Some cool glass and image menu | WinLIRC remote controler | Happy Holidays to all... | Bounce the sun, a game in which you must save the sun from falling by bouncing it back into the sky | Hook Leadtek WinFast TV Card Remote Control Msges | GDI+ sliding toolbar | MIDI Keyboard (early alpha stage, with lots of bugs to fix) | Alt+Tab replacement | CPU Benchmark with pretty GUI | Ini Editor - Edit/Create your ini files with great ease | Window Manager (take total control of your windows) Pretty GUI! | Pop-Up window from a button | Box slider for toolbar | Display sound volume on desktop | Switch hotkeys with mouse scroll Link to comment Share on other sites More sharing options...
amin84 Posted August 25, 2012 Share Posted August 25, 2012 Tnx a lot. I had the same problem. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now