Jump to content

GUIDelete


Recommended Posts

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

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

You 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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...