Passing Parameters between forms (OpenInsight Specific)
At 06 MAY 1999 08:34:13PM Steve Carmichael wrote:
I know this must be easy to do, I just can't find out how from the manuals.
I have a form in which the user specifies the path and name of a .bmp file ( or any other picture format). They then press a button to display that .bmp which brings up another form. How do I pass the path to to called form. I know I can use the quickevent to start a window, but how do I get info into the CreateParam argument that is passed on ?
Hope someone can help.
Steve "Surf's Up" Carmichael
At 07 MAY 1999 01:09AM Don Bakke wrote:
Steve,
Using only the QuickEvent will make this difficult because you won't be able to pass the dynamic value of the path/filename in the parameters section. Here are my suggestions:
- Use some code to start your second window. All the main window launching functions (Dialog_Box, Create_Dialog, Start_Window) have a parameter for passing into the CreateParam of the CREATE event of the second window.
- If you really want to use a strict QuickEvent, then pass '@WINDOW' where the CreateParam parameter needs to go. Then have your CREATE event use this to get the TEXT property of the appropriate control of the "parent" window. Then you can use this to update your bitmap control.
Let me know if you need further explanation.
dbakke@srpcs.com
At 07 MAY 1999 06:23PM Barry Stevens wrote:
if using MDI then
in calling window:
set_property("MyMDI","@BITMAPPATH",UserSpecified)
in called window:
BitMapPath=get_property("MyMDI","@BITMAPPATH")