• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

Waiting for GUI input before continuing.

Hi there,

I've got a flow like:

DoStuff1
Create GUI and ask user stuff
CloseGUI
DoOtherStuffDependingOnWhatUserSelects

Thing is is that I need the program to wait until the user has pressed okay or cancel on the GUI before continuing. How can I achieve this? I haven't provided code so far as I don't expect this to be difficult to integrate etc.. Thank you. :)
0
Unimatrix_001
Asked:
Unimatrix_001
3 Solutions
 
girionisCommented:
0
 
CEHJCommented:
Most Dialogs are modal or can be so your program will wait for input before continuing. If using Dialog, call setModal
0
 
objectsCommented:
you don't need to do anything to wait as guis are event driven.
So instead what you would do is have a listener that is notified when the ok/cancel are pressed and have that listener initiate the required processinf.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
Unimatrix_001Author Commented:
Hehehe, thanks guys. Sorry objects you got the lower end of the points but you were probably 20 seconds too late! ;) Thanks again works a treat. :)

Uni
0
 
CEHJCommented:
:-)
0
 
girionisCommented:
:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now