Jump to content

Creating a "modal" dialog box


Recommended Posts

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?

Link to comment
Share on other sites

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 by aslani

[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

Link to comment
Share on other sites

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 by aslani

[font="Georgia"]Chances are, I'm wrong.[/font]HotKey trouble?Stringregexp GuideAutoIT Current Version

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...