Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

System X button and "Close" on my form. 1

Status
Not open for further replies.

ukusa

Programmer
Oct 8, 2001
49
AU
I have a exit button which asks the question "Are you sure" etc to confirm application shutdown. With this I had to disable the Systems close button so I can ask the question! If the application freezes for some reason, could the System close button still be functional as opposed to my created one, and still be able to close the application?

Thanks
Allen
 
in the forms oncloase event you will see
var Action: TCloseAction

use it like this

if MessageDlg('do you want to close', mtConfirmation,
[mbYes, mbNo], 0)= mrno then Action:=caNone;
 
oowa!!!! Thanks for that. Coming from Paradox, used disabledefault and caNone is the key! Thank you Sir

:cool:

Allen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top