>This works just fine. The problem is that if the user presses the
>application silk-screen button while the dialog is up, I am in an infinite
>loop. How can I test in my WHILE loop for this condition so that I can exit?
Make sure the "default" button for the dialog is not the OK button. The OS
passes the default button in when you exit the app. Just set it to 0 or
something like that and your loop will be exited. Of course you may want to
add some code to handle the case of the default button, but that depends on
your app.
Brian
_____________________________________________________________________
Mark/Space Softworks voice 408-293-7299
111 West Saint John, 3rd Floor fax 408-293-7298
San Jose, CA 95113 <http://www.markspace.com>
PalmOS, Mac OS, Windows and Web Software & Solutions:
PageNOW! Wireless Messaging, PhoneWatcher Caller ID,
Online & Communicate terminal emulation and serial debugging
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html