Jump to content
Sign in to follow this  
DW1

Control Depth

Recommended Posts

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

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  

×
×
  • Create New...