Fun with Dialog_Box (OpenInsight Specific)
At 30 AUG 2001 04:24:16PM a becker wrote:
What am I doing wrong?
I'm trying to display the data that is in a selected cell in an edit table in a dialog box so the user can see all the information in the cell at one time, make changes and update the field.
It appears that everything execept the dialog_box is working.
I have the
parent=@window
Frame=get_property(parent,"mdiframe")
if len(frame) then parent=frame
(in my case frame is always=")
Orig=get_property(ctrl,"defprop",aux)
(orig comes back with the correct information with it.)
next I have
text=dialog_box("zoom",parent,orig)
text is always ""
no dialog box appears, it's as if the coding for the dialog box does not exist.
Any ideas??
Thanks
Andy Becker
Il State Lottery
At 30 AUG 2001 04:50PM Robert Lee wrote:
A few of things to try…
Is there an error occuring further up the program? Try a Set_Status(0) before your code.
How about putting a debug in the create event of the dialog box? Does it get there?
Are you using END_DIALOG to return the values?
Is the form visible?
At 30 AUG 2001 09:14PM Richard Richter wrote:
Also check if the dialog box properties page (ZOOM?) has been checked to allow a dialog box.
If your parent name is null, then you're not passing the parent name to the dialog box. Instead of MDIFRAME, use CtrlEntID1,"F.". That should get you the name of the parent window.
Good Luck,
Richard Richter
At 30 AUG 2001 11:03PM Donald Bakke wrote:
Andy,
Is this code the exact way it appears in your application? The name "zoom" should probably be "ZOOM".