This is definitely possible!
You need to have something like this in the $construct:
if flag true
; user has clicked OK
; user has clicked cancel
quit method <some result>
You should have an OK button with the $buttonmode set to kBMok, and a cancel button with the $buttonmode set to kBMcancel
The window should have the $modelessdata set to false – you want the window to only be enterable while the enter data command is in effect.
Note that there are some differences between a true OK message and one that we create:
– A true OK message will stop ALL execution of ALL code. There is absolutely nothing that I’m aware of that will do the same for us.
– It WILL stop the currently executing method, but it won’t stop events from occurring, so you can trap events, or have timer objects fire etc.
Hope this helps!
- This reply was modified 1 year, 5 months ago by Paul Mulroney.
A man rushed into the doctor’s office and shouted, “Doctor! I think I’m shrinking!”
The doctor calmly responded, “Now, settle down. You’ll just have to be a little patient.”
Paul W. Mulroney
We Don't Do Simple Pty Ltd
ACN 161 009 374
Bentley Western Australia 6102