DW1 Posted December 19, 2007 Share Posted December 19, 2007 how do I change the depth of a GuiCtrl In other words, how would I move a control forward or backwards AutoIt3 Online Help Link to comment Share on other sites More sharing options...
weaponx Posted December 19, 2007 Share Posted December 19, 2007 (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 December 19, 2007 by weaponx Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Author Share Posted December 19, 2007 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. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
PsaltyDS Posted December 19, 2007 Share Posted December 19, 2007 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 More sharing options...
weaponx Posted December 19, 2007 Share Posted December 19, 2007 Maybe you can always set the one behind to disabled + hidden. Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Author Share Posted December 19, 2007 right, but then I get a long pause of a flicker ( at least 500 Ms of pause ) AutoIt3 Online Help Link to comment Share on other sites More sharing options...
DW1 Posted December 19, 2007 Author Share Posted December 19, 2007 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 AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now