Sign in to follow this  
Followers 0
shawtayee

GUIDelete

10 posts in this topic

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Posted Image

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

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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 >_<

Share this post


Link to post
Share on other sites

Another quick question, is there a way to change the GUI's Window Title? In an easy way?

Share this post


Link to post
Share on other sites

Another quick question, is there a way to change the GUI's Window Title? In an easy way?

WinSetTitle

Share this post


Link to post
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
Sign in to follow this  
Followers 0