AustrianOak Posted July 8, 2008 Posted July 8, 2008 how to i create a window that is like the edit color dialog box in microsoft paint where it is modal and requires immediate attention and i cannot access any other window until i close the modal window or take some certain action on it?
aslani Posted July 9, 2008 Posted July 9, 2008 (edited) how to i create a window that is like the edit color dialog box in microsoft paint where it is modal and requires immediate attention and i cannot access any other window until i close the modal window or take some certain action on it? Use $DS_MODALFRAME and $DS_SETFOREGROUND #include <WindowsConstants.au3> GUICreate ( $title, $width, $height, $left, $top, $DS_MODALFRAME + $DS_SETFOREGROUND) Edited July 9, 2008 by aslani [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version
AustrianOak Posted July 9, 2008 Author Posted July 9, 2008 is there any way i cant set those properties if im using an xskin gui. i tried this but it locked my window and didn't work. GUISetStyle($DS_MODALFRAME + $DS_SETFOREGROUND, $opdialog)
NELyon Posted July 9, 2008 Posted July 9, 2008 _WinAPI_SetWindowLong() Perhaps. I haven't used XSkin.
aslani Posted July 9, 2008 Posted July 9, 2008 is there any way i cant set those properties if im using an xskin gui. i tried this but it locked my window and didn't work. GUISetStyle($DS_MODALFRAME + $DS_SETFOREGROUND, $opdialog) Try GUICtrlSetStyle() [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version
AustrianOak Posted July 9, 2008 Author Posted July 9, 2008 well my gui isn't locked anymore but it doesnt work. i can still access my main gui when my modal one is open..
aslani Posted July 9, 2008 Posted July 9, 2008 (edited) well my gui isn't locked anymore but it doesnt work. i can still access my main gui when my modal one is open.. You have to set your main GUI to Disable when your modal GUI is active, then Enable when the modal GUI is closed GUISetState (@SW_DISABLE, $gui_main)oÝ÷ Ø@ÈL]y×±jjey«¢+Ù]¡¥±Ä($ÀÌØíµÍôU%Ñ5Í ¤($(%M±Ð($% ÍÀÌØíµÍôÀÌØíU%}Y9Q} 1=M($$%á¥Ñ1½½À($$$($% ÍÀÌØíµÍôÀÌØíµ½°($$%U%MÑMÑÑ¡M]}%M 1°ÀÌØíÕ¥}µ¥¸¤($$%U%MÑMÑÑ¡M]}M!=°ÀÌØíÕ¥}µ½°¤($$($% ÍÀÌØíµÍôÀÌØíµ½±}±½Í¤($$%U%MÑMÑÑ¡M]}!%°ÀÌØíÕ¥}µ½°¤($$%U%MÑMÑÑ¡M]}9 1°ÀÌØíÕ¥}µ¥¸¤($$$(%¹M±Ð)]¹ Edited July 9, 2008 by aslani [font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version
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