Jump to content

Control Depth


DW1
 Share

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

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