Using parallel dialogs
Dialog coding concepts, configuration and code structure.
Parallel dialogs are implemented with declarative
DIALOG
blocks:DIALOG control_list1()
DISPLAY ARRAY arr TO sr.*
...
END DISPLAY
END DIALOG
Instances of declarative dialogs are started with the START DIALOG
instruction (typically
preceded by an OPEN WINDOW
instruction that creates the corresponding
window+form):
OPEN WINDOW w_list1 WITH FORM "simple_list"
START DIALOG control_list1
Instances of declarative dialogs are stopped with the
TERMINATE DIALOG
instruction:TERMINATE DIALOG control_list1
In order to initiate parallel dialogs, the program must run the user interface event loop by
calling the fgl_eventloop() built-in function in a
WHILE
loop.
The simplest form of the user interaction event loop
is:
WHILE fgl_eventLoop()
END WHILE
Before or during the user interface event loop, modal dialogs can be executed without conflicts. For more details about parallel dialogs versus modal dialogs, see What are dialog controllers?.