[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]]
==== Send event to Dialog Box (OpenInsight Specific) ====
=== At 06 NOV 1997 06:12:33PM Knowledge Seeker wrote: ===
{{tag>"OpenInsight Specific"}}
How can I send event to controls on a dialog box?
----
=== At 07 NOV 1997 09:06AM Cameron Revelation wrote: ===
KS,
[i]How can I send event to controls on a dialog box?[/i]
Typically you would use the Send_Event method which is documented in the Programmers Reference. In the System Editor, type Send_Event, put the cursor on it, and press F1.
However, I'm guessing your question is more specific than that, but I can't tell what you are really asking. Could you make up an example of what you are trying to do?
Cameron Purdy
info@revelation.com
----
=== At 10 NOV 1997 12:18AM Knowledge Seeker wrote: ===
If I call a dialog box in this way
1 DialogName=dialog_box(...)
2 y=Send_Event(DialogName,'CLOSE')
while the dialog is display line 2 will not be executed.
Is there a way I can send an event to the dialog box and while it is displaying.
Knowledge Seeker.
----
=== At 10 NOV 1997 02:36AM Andrew P McAuley wrote: ===
The point of a modal dialog box is that it does not received communication from it's parent window until it has been closed. You would need to establish it as a modeless dialog box OR just use a normal Window with Start_Window.
You'd normally put that Close event on the Ok/Cancel button of the dialog box.
amcauley@sprezzatura.com
[url=http://www.sprezzatura.com]Sprezzatura Ltd[/url]
World Leaders in all things RevSoft (Except VIP)
[img]http://www.sprezzatura.com/zz.gif[/img]
----
=== At 10 NOV 1997 06:34PM Cameron Revelation wrote: ===
KS,
Hi. Good question. There are a couple of ways to start a window in OI:
[list][*][b]Start_Window[/b] - plain vanilla start a window and return to the line of code following the Start_Window call. Also supports creation as a 2-step process allowing the form structure to be modified on the fly.
[*][b]Start_MDIChild[/b] - A special version of Start_Window that creates MDI child windows. Otherwise, very similar to Start_Window.
[*][b]Create_Dialog[/b] - Supports the creation of UI modal and modeless dialogs. After the dialog is created, execution of code returns to the line of code following the Create_Dialog call. (For Win SDK developers, this is just like the Windows CreateDialog call.)
[*][b]Dialog_Box[/b] - Supports the creation of UI modal dialogs that are also execution modal. This means that the parent of the dialog is disabled and that execution of the code does not return to the line following the Dialog_Box call until the dialog is closed. See the End_Dialog function for more information on returning data from a Dialog_Box dialog to the calling code. (For Arev developers, this is similar to a "collector". For Win SDK developers, this is just like the Windows DialogBox call.)
[*][b]Utility("CREATE")[/b] - Supports the creation of controls on the fly; used by Start_Window. This is a more advanced interface, but is handy for deleting/creating controls on the fly.[/list]
Hope it helps!
Cameron Purdy
info@revelation.com
p.s. I hope you don't mind me using your initials ;-)
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=36122815D43FB73A85256547007F7E1B|View this thread on the forum...]]