Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2006
    Location
    Formosa,Argentina
    Posts
    12

    Post HELP: How to disable close window button

    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

  2. #2
    Join Date
    Dec 2003
    Posts
    891
    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.

  3. #3
    Join Date
    Nov 2006
    Location
    Formosa,Argentina
    Posts
    12
    Thanks.. works fine!

    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?

  4. #4
    Join Date
    Dec 2003
    Posts
    891
    Code:
    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

  5. #5
    Join Date
    Nov 2006
    Location
    Formosa,Argentina
    Posts
    12
    Thanks you Roboblue for help to this newbie

  6. #6
    Join Date
    Dec 2003
    Posts
    891
    Glad to help

Similar Threads

  1. abort uninstall, if user press close button
    By balaji matta in forum Setup Factory 6.0
    Replies: 0
    Last Post: 07-23-2004, 01:48 AM
  2. Example: Creating an on/off button to toggle background audio
    By Jonas DK in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 07-10-2004, 02:54 PM
  3. Creating a close button
    By scargin in forum AutoPlay Media Studio 4.0
    Replies: 7
    Last Post: 08-29-2003, 01:42 PM
  4. disable minimize and restore button
    By ovm in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 07-24-2003, 03:58 AM
  5. INFO: The Difference between the "On Close" and "On Destroy" Events
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts