Pither Rukka Posted October 15, 2010 Posted October 15, 2010 How to set "Alert" function so the appearance (dialog box) will not disappear (closed) if click the "X" button at upper right unless click "OK". Example the funtion: (alert "Are you agree") Are there appearance of Alert with option OK-or CANCEL, so if click Cancel then the action didn't execute. Example, I put Alert when open a file, but if I click cancel the file will not opened. Regards, Pither:) Quote
JohnM Posted October 15, 2010 Posted October 15, 2010 The alert function does not have other options. You will have to write you own OK/CANCEL dialog box so if the user clicks OK it returns 1 and if the user clicks cancel it returns 0 then have your code respond as needed Quote
Kerry Brown Posted October 15, 2010 Posted October 15, 2010 Try this Thread http://www.cadtutor.net/forum/showthread.php?22760-yes-no-message&p=145936&viewfull=1#post145936 Quote
Lee Mac Posted October 15, 2010 Posted October 15, 2010 Sounds like you are wanting a modeless dialog, see here for more info: http://www.cadtutor.net/forum/showthread.php?52498-Mode-less-dcl-dialog Quote
Lt Dan's legs Posted October 15, 2010 Posted October 15, 2010 when creating a dcl try something like this: : row { ok_button; spacer; : button { key = "cancel"; label = "Cancel"; fixed_width = true; } } Make sure to leave out is_cancel = true; (action_tile "cancel" "(done_dialog)") Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.