PDA

View Full Version : HELP: How to disable close window button


fsadario
11-19-2006, 03:01 PM
Hi all.
I just have a simple question: How can i disable the close button of the windows? ..
I need this for allow to user for close the proyect with my custom button.

Thats all,
Sorry for my english.
Thanks:cool

Roboblue
11-19-2006, 03:09 PM
You could get rid of the top window bar.
Goto Project - Settings - Style click bordered or flat.
The short cut key to exit is Alt/F4. Useful info if you forget to put on an exit button.

fsadario
11-19-2006, 03:13 PM
Thanks.. works fine! :D

Other question.. how can i do a dialog.message when if the user clicks on Yes the windows close and if press No returns to main?

Roboblue
11-19-2006, 03:37 PM
sExit = Dialog.Message("Notice", "Are you sure you want to Exit now?", MB_YESNO, MB_ICONINFORMATION, MB_DEFBUTTON1);
if sExit ~= 7 then
Application.Exit(0);
end

fsadario
11-19-2006, 03:43 PM
Thanks you Roboblue for help to this newbie :)

Roboblue
11-19-2006, 04:20 PM
Glad to help