Sign in to follow this  
Followers 0
DW1

Control Depth

7 posts in this topic

how do I change the depth of a GuiCtrl

In other words, how would I move a control forward or backwards

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

What kind of controls are you layering? This can produce unexpected results if the controls beneath the top aren't disabled.

You can bring a control immediately to the top but there is no Z-Index that I am aware of.

#include <GUIConstants.au3>

GUICreate("My GUI", 100,100)  ; will create a dialog box that when displayed is centered
GUISetState (@SW_SHOW)       ; will display an empty dialog box

$BOTTOM = GuiCtrlCreateButton("BOTTOM", 20,20,50,50)
$TOP = GuiCtrlCreateButton("TOP", 30,30,50,50)

Sleep(2000)

ControlFocus ( "", "", $BOTTOM)

; Run the GUI until the dialog is closed
While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Edited by weaponx

Share this post


Link to post
Share on other sites

I am trying to create a buffer for an embedded IE. I figured, if I used two IE objects, I could have one load the refresh in the background, and then switch them after the load, so all the user sees is a really quick flicker.

If there is a better way to do this, please let me know, I am more than willing to change the buffer method.

Share this post


Link to post
Share on other sites

I am trying to create a buffer for an embedded IE. I figured, if I used two IE objects, I could have one load the refresh in the background, and then switch them after the load, so all the user sees is a really quick flicker.

If there is a better way to do this, please let me know, I am more than willing to change the buffer method.

IE7 + Tabs...?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Maybe you can always set the one behind to disabled + hidden.

Share this post


Link to post
Share on other sites

right, but then I get a long pause of a flicker ( at least 500 Ms of pause )

Share this post


Link to post
Share on other sites

Please see THIS thread for a response, it is more clearly labeled.

Mods or Admins, please close this thread for me, as I have created a different thread for this

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