News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Response from Message Box
Author Message
ceeuu
Junior Member
**


Posts: 9
Group: Registered
Joined: Jul 2008
Status: Offline
Reputation: 0
Post: #1
Response from Message Box

I have an app with a main window that I need to display a sort of Message Box to the user to confirm whether to continue with a particular operation. The Message Box is created in a function that is called, the function defines the window and its components, populates a text box from the contents of a function argument, and awaits the user to select one of two buttons..

At the end of the function a call to 'window:show()' is used to display the Message Box... but control returns to the calling code immediately. The Message Box window is defined as being modal, which helps to keep the user from clicking off it and trying to continue without responding... that's good, however, I am unable to return to the calling code which button the user chose.

Is there a recommended way to do this?

Thanks,

-CJ

07-29-2011 06:24 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Response from Message Box - ceeuu - 07-29-2011 06:24 AM
RE: Response from Message Box - mikshaw - 07-30-2011, 12:15 AM
RE: Response from Message Box - ceeuu - 07-30-2011, 03:04 AM
RE: Response from Message Box - mikshaw - 07-31-2011, 01:11 AM
RE: Response from Message Box - ceeuu - 07-31-2011, 11:09 AM
RE: Response from Message Box - roydobbins - 08-05-2011, 11:37 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: