shawtayee Posted August 3, 2009 Share Posted August 3, 2009 I have the following problem, in my program, ive got like 2 gui "frames" and when I want to get to the other one, I am using GUIDelete and then GUICreate with the new frame data, but it got a small delay which looks really ugly, is there another way ?! >_< Thanks for any help! shawtayee Link to comment Share on other sites More sharing options...
martin Posted August 3, 2009 Share Posted August 3, 2009 I have the following problem, in my program, ive got like 2 gui "frames" and when I want to get to the other one, I am using GUIDelete and then GUICreate with the new frame data, but it got a small delay which looks really ugly, is there another way ?! >_< Thanks for any help!shawtayeeYou could use WinActivate to activate the gui you want and you can set the state of the one you don't with WinSetState to @SW_DISABLE or maybe @SW_HIDE. It's better than deleting and recreating I think. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
shawtayee Posted August 3, 2009 Author Share Posted August 3, 2009 Hm, thanks >_< There is no other way? Its a GUI with like Part 1 and 2 of a menu so when I press 1 I want to see Part 1 and when I press 2 I want to see part 2, the easiest way would be to use GUICtrlCreateTab, but I want to use .bmp as buttons so I have to use GUICtrlCreateButton. Link to comment Share on other sites More sharing options...
martin Posted August 3, 2009 Share Posted August 3, 2009 Hm, thanks >_< There is no other way? Its a GUI with like Part 1 and 2 of a menu so when I press 1 I want to see Part 1 and when I press 2 I want to see part 2, the easiest way would be to use GUICtrlCreateTab, but I want to use .bmp as buttons so I have to use GUICtrlCreateButton.A tab sound like what you need. What is the problem with using a tab and images? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
shawtayee Posted August 3, 2009 Author Share Posted August 3, 2009 When I press on the "Shopping" Button at the top the 4 Big Buttons in this GUI will change, thats what I want, I think using Tabs looks very ugly Link to comment Share on other sites More sharing options...
martin Posted August 3, 2009 Share Posted August 3, 2009 You can just change the image for each button (pic) using Function GUICtrlSetImageGUICtrlSetImage. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
zorphnog Posted August 3, 2009 Share Posted August 3, 2009 Or you can create all of the controls at startup and just set the shopping ones to invisible ($GUI_HIDE). When the shopping button is clicked, toggle the training buttons to invisible and the shopping ones to visible. Link to comment Share on other sites More sharing options...
shawtayee Posted August 3, 2009 Author Share Posted August 3, 2009 Or you can create all of the controls at startup and just set the shopping ones to invisible ($GUI_HIDE). When the shopping button is clicked, toggle the training buttons to invisible and the shopping ones to visible.Yea, just did this, works perfect, thanks >_< Link to comment Share on other sites More sharing options...
shawtayee Posted August 3, 2009 Author Share Posted August 3, 2009 Another quick question, is there a way to change the GUI's Window Title? In an easy way? Link to comment Share on other sites More sharing options...
zorphnog Posted August 3, 2009 Share Posted August 3, 2009 Another quick question, is there a way to change the GUI's Window Title? In an easy way?WinSetTitle 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