Jump to content

Recommended Posts

Posted

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:)

Posted

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

Posted

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)")

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...