Dialog_box() (OpenInsight Specific)
At 18 FEB 1998 06:55:48AM Jacob Ignatius wrote:
The function dialog_box performs the task I need to do which is create a modal window and wait for it to be closed. However, I am not able to adjust the position of the dialog box. Any attempt at setting the SIZE property just before or after the call to dialog_box is useless.
create_dialog works in a similar way to start_window and I am able to set the SIZE property to adjust the position of the dialog box. It does not wait for the dialog box to be closed. Execution continues as normal after the dialog box is created.
Is there any way of setting SIZE with dialog_box?
At 18 FEB 1998 08:22AM Don Bakke wrote:
Jacob,
Is there any way of setting SIZE with dialog_box?
The easiest way is to set the SIZE from within the CREATE event of your dialog box. But make sure your dialog box is invisible (using the form properties window). Whenever you change the SIZE of the window it becomes visible again. Making the window invisible first will prevent the user from seeing the dialog box "shift" on the screen.
dbakke@srpcs.com
At 18 FEB 1998 09:59AM Jacob Ignatius wrote:
Cheers Don.
At 18 FEB 1998 10:03AM Aaron Kaplan wrote:
I've got a dialog box with create event. The create event sets the size using random numbers. Each time I create the box, it's a different size, in a different place.
Are you sure you are using the SIZE property correctly?
apk@sprezzatura.com
At 18 FEB 1998 11:24AM Andrew P McAuley wrote:
Put the size on the create event of the dialog box, and set the window to invisible when painted.
amcauley@sprezzatura.com
World Leaders in all things RevSoft
At 18 FEB 1998 12:08PM Jacob Ignatius wrote:
Thanks.
I've got it properly working now.