Message Boxes 
Author Message
 Message Boxes

How can i have a msgbox have a yes/no button and what code would tell me
which one was pressed?

Thanks

Dave



Sat, 20 Mar 2004 11:37:10 GMT  
 Message Boxes

Quote:

> How can i have a msgbox have a yes/no button and what code would tell me
> which one was pressed?

This would be a window that you would make - presumably it would be a
modal window which you would show with showmodal. So use New Window and
create the window. Put Yes and No buttons into the window. Now give them
code that communicates somehow back to whatever code it was that called
showmodal in the first place.

In essence, you'd probably like the yes/no dialog to behave like a sort of
function that can return a value (i.e., information as to which button was
pressed). My book shows you one good strategy for doing this. It uses
"Save Changes?" as the example, but your situation is probably comparable.
m.

--

          *** REALbasic: The Definitive Guide! ***
http://www.amazon.com/exec/obidos/ASIN/0596001770/somethingsbymatt
             -- The Second Edition is coming! --



Sat, 20 Mar 2004 11:51:32 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. output color message (text) to a message box (string)

2. output color message (text) to a message box (string)

3. CapeSoft - Message Box

4. New Line in Message Box

5. Translate message boxes

6. Message box missized

7. Message boxes question

8. Help with message box

9. Bizarr Message Box Thread Problem

10. Message Box corrects problem in code in Windows Timer event

11. Thanks for all the suggestions on Message Box

 

 
Powered by phpBB® Forum Software