meYasuo Posted October 2, 2008 Share Posted October 2, 2008 i tried #include <GUIConstantsEx.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 262, 196, 209, 154) $Tab1 = GUICtrlCreateTab(-8, 0, 265, 193) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $TabSheet2 = GUICtrlCreateTabItem("TabSheet2") $TabSheet3 = GUICtrlCreateTabItem("TabSheet3") $TabSheet4 = GUICtrlCreateTabItem("TabSheet4") GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $TabSheet2 GUICtrlSetResizing($Form1, 102) GUICtrlSetPos($Form1, 0, 0, 300, 200) WinMove($Form1, "", 0, 0, 300, 200) EndSwitch WEnd but on clicking TabSheet2 the Gui size was not increased. how can i set different size of gui for each tab or set new size after clicking another Tab? Thanxx My Mode: Link to comment Share on other sites More sharing options...
bluelamp Posted October 2, 2008 Share Posted October 2, 2008 (edited) #include <GUIConstantsEx.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1",300,200,-1,-1) $Tab1 = GUICtrlCreateTab(0,0,300,200) GUICtrlSetResizing(1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $TabSheet2 = GUICtrlCreateTabItem("TabSheet2") $TabSheet3 = GUICtrlCreateTabItem("TabSheet3") $TabSheet4 = GUICtrlCreateTabItem("TabSheet4") GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Tab1 ConsoleWrite(GUICtrlRead($Tab1)&@CRLF) Switch GUICtrlRead($Tab1) Case 0 WinMove($Form1,"", Default, Default,300,200) Case 1 WinMove($Form1,"", Default, Default, 300, 300) Case 2 WinMove($Form1,"", Default, Default, 300, 400) Case 3 WinMove($Form1,"", Default, Default, 300, 500) EndSwitch EndSwitch WEnd Here you are Edited October 2, 2008 by bluelamp 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