Thatsgreat2345 Posted January 15, 2008 Share Posted January 15, 2008 (edited) I am using _GuictrlTab_SetCurSel and when I set it a specific tab it doesn't refresh the tab so the controls on that tab are showing. Just curious what I need to send to have it refresh/redraw the original controls. I've never really used Guictrlsendmsg so I don't know if that is right or not here is an example #include <GUIConstants.au3> #include <GuiTab.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 633, 447, 193, 125) $Tab = GUICtrlCreateTab(24, 40, 561, 353) GUICtrlSetResizing(-1, $GUI_DOCKWIDTH+$GUI_DOCKHEIGHT) $Tab1 = GUICtrlCreateTabItem("Test1") $Label1 = GUICtrlCreateLabel("FIRST", 120, 144, 35, 17) $Tab2 = GUICtrlCreateTabItem("Test2") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Select Case $nMsg = $GUI_EVENT_CLOSE Exit Case _GUICtrlTab_GetCurSel($Tab) = 1 _GUICtrlTab_SetCurSel($Tab,0) GUICtrlSendMsg($Tab1,$TCN_SELCHANGE,-1,-1) GUICtrlSendMsg($tab1,$TCN_SELCHANGING,-1,-1) EndSelect WEnd Edited January 15, 2008 by Thatsgreat2345 Link to comment Share on other sites More sharing options...
Siao Posted January 15, 2008 Share Posted January 15, 2008 From a recent topic:http://www.autoitscript.com/forum/index.ph...mp;#entry462969 "be smart, drink your wine" Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted January 15, 2008 Author Share Posted January 15, 2008 HAHAH thanks, I could of swore i tried focus and it wasn't working thus why I switched. 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