fxg4758 Posted January 10, 2009 Share Posted January 10, 2009 Hi all. I´m starting to work in Autoit and i enjoy a lot. Now, i have a doubt: how i can make a gui over a WindowsForms.SysTabControl32, that already have controls and got tree tabs. I want to do a gui that will stay about that controls on WindowsForms.SysTabControl32, but only show in the active window and if i click in another tab2 or tab3 of WindowsForms.SysTabControl32, the gui must hide until i click in the tab1. Can anyone help me? . Thanks for any information. Link to comment Share on other sites More sharing options...
BrettF Posted January 10, 2009 Share Posted January 10, 2009 http://www.autoitscript.com/forum/index.php?showtopic=87373I think...Cheers,Brett 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...
fxg4758 Posted January 11, 2009 Author Share Posted January 11, 2009 http://www.autoitscript.com/forum/index.php?showtopic=87373I think...Cheers,BrettThanks for your post, but I have troube in adapt that code to my program. I use the RanorexSpy and now i kow that WindowsForms.SysTabControl32 have três controls IDS. So can you or someone tell i can detect that change in the tabs in the way to see the gui only in the tab1? Thanks for any answer. Link to comment Share on other sites More sharing options...
rasim Posted January 11, 2009 Share Posted January 11, 2009 fxg4758This?expandcollapse popup#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") GUICtrlCreateTabItem("") $hGUI2 = GUICreate("", 745, 520, 25, 60, $WS_POPUP, $WS_EX_MDICHILD, $hGUI) $cTab = GUICtrlCreateTab(10, 10, 500, 400) GUICtrlCreateTabItem("Tab 1") GUICtrlCreateTabItem("Tab 2") GUICtrlCreateTabItem("") ;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 Link to comment Share on other sites More sharing options...
fxg4758 Posted January 11, 2009 Author Share Posted January 11, 2009 Thanks rasim, i already see that code. But want i to know is if i put a gui over WindowsForms.SysTabControl32 (external app), how i can bind the gui to show only in tab1 of thee tabs. I don´t to create a gui with tabs, but work over in a external app with already have a control tab with three controls IDS. Thanks for any help. 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