michael2t Posted January 8, 2009 Share Posted January 8, 2009 Hello All.... I am using Tabs and I need a child window in a parent window that is Only on the 3 tab window of 6 tabs ... I hope that is able to be understood ... I need a child window in one of the tabs only ... Maybe that is better ... I can not get it to work ... Help anyone please ... Michael T. Link to comment Share on other sites More sharing options...
BrettF Posted January 9, 2009 Share Posted January 9, 2009 Hi, Next time post your code. But this worked for me. You will have to modify it to suit your needs though. #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> $buffer = False $hGUI = GUICreate ("GUI Test", 800, 600) $hTabs = GUICtrlCreateTab (10, 10, 780, 580) $hTabPage1 = GUICtrlCreateTabItem ("Tab 1") $hTabPage2 = GUICtrlCreateTabItem ("Tab 2") $hTabPage3 = GUICtrlCreateTabItem ("Tab 3") $hTabPage4 = GUICtrlCreateTabItem ("Tab 4") $hGUI2 = GUICreate ("", 745, 520, 25, 50, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) GUISetBkColor (0x000000, $hGUI2) GUISetState (@SW_SHOW, $hGUI) While 1 $nMsg = GUIGetMsg () Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case GUICtrlRead ($hTabs, 1) = $hTabPage3 If Not $buffer Then $buffer = True GUISetState (@SW_SHOW, $hGUI2) GUISwitch ($hGUI) EndIf Case GUICtrlRead ($hTabs, 1) = $hTabPage1 Or $hTabPage2 Or $hTabPage3 If $buffer Then $buffer = False GUISetState (@SW_Hide, $hGUI2) GUISwitch ($hGUI) EndIf EndSelect WEnd Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
michael2t Posted January 9, 2009 Author Share Posted January 9, 2009 Hello Brett, That worked great ... I am sorry about not post any code ... thanks ... I can not thank you enough Michael T. 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