• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 395
  • 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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

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