Doug:
When I run into those choices, I use the ESC button to return to the form.
You could use code like this:
SET VAR vMsg = +
('Data has changed, do you want to save changes?' + (CHAR(013))+ +
'Press the ESC Key to return to the form for editing...' + (CHAR(013)))
DIALOG .vMsg vYesNo vEndKey YES +
CAPTION ' System Message ...' +
ICON APP +
OPTION BUTTON_YES_CAPTION &Save +
|BUTTON_NO_CAPTION &Do Not Save +
|THEMENAME Longhorn +
|BUTTON_YES_FONT_COLOR GREEN +
|BUTTON_NO_FONT_COLOR RED
IF vEndKey = '[Esc]' THEN
GOTO Done
ENDIF
IF .vYesNo = 'Yes' THEN
SAVEROW
CLOSEWINDOW
ELSE
CLOSEWINDOW
ENDIF
LABEL Done
CLEAR VAR vMsg, vYesNo, vEndKey
RETURN
Javier,
Javier Valencia
913-915-3137
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Doug
Hamilton
Sent: Monday, March 16, 2009 10:40 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - 3 Button Pause/Dialog?
Can Pause or Dialog boxes have three buttons?
Or should I build a quick mini-form w/ 3 buttons?
Situation:
User clicks exit button on a form after editing.
Pause/Dialog/whatever, pops up for confirmation:
___
Do you want to update the data?
Yes No Cancel
Yes - updates & exits
No - Exits without updating
Cancel - returns to the form for more editing
I could have two separate buttons on the form (Yes & No, Cancel is
unneeded), but you know user will click "Yes" which will instantaneously
illicit a "D'OH!". Confirmation-after-click is much preferred.
Or, ('cause it's Monday), what obvious solution am I not seeing?
TIA
Doug