| Author |
Message |
chainer
Joined: 25 Feb 2007 Posts: 17
|
Posted: March 12, 2007 8:26 PM Post subject: escape in dialog,endDlog, boxes |
|
|
okay, so i have another question.
is it possible, that when there is a dialog box, and it says, enter=ok, esc=cancel.
how do i but in the code so that when you press esc, it really does cancel? |
|
| Back to top |
|
 |
mellamokb
Joined: 10 May 2007 Posts: 100
|
Posted: May 18, 2007 3:15 PM Post subject: |
|
|
Hi chainer,
Yes, it is possible. There is a system variable aptly called 'ok' which either has a value of '1' ([ENTER] was pressed) or '0' ([ESC] was pressed). After displaying your dialog, simply check the state of the 'ok' variable to control the flow:
| Code: |
@Display dialog here
If ok=0 Then
@Code to react to escape
Else
@Code to react to enter
End If
@Code to run afterward
|
Hope this helps!
~ mellamokb |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
Saphic 1.5 // Theme created by Sopel
|
|