Xbasic

UI_MODELESS_DLG_SIZING Function

Syntax

Result_Flag as L = UI_MODELESS_DLG_SIZING(C title)

Arguments

Result_Flag

Indicates whether the modeless dialog box is being resized. .T. = Is being resized. .F. = Is not being resized.

title

The title of the dialog.

Description

Returns .T. if named dialog is a controlbar whose layout is being determined.

Discussion

The UI_MODELESS_DLG_SIZING() function returns .T. (TRUE) when a modeless dialog box is in the process of being resized.

Example

resizing = .f.
ui_modeless_dlg_box("self",<<%dlg%
{watch=ui_modeless_dlg_sizing("self")!resizer}
{stretch=width,height};
[.100,20text];
{stickto=bottom}
(resizing) Resizing
%dlg%,<<%code%
if a_dlg_button = "resizer" then
       resizing = ui_modeless_dlg_sizing("self")
else if a_dlg_button = "" .or. a_dlg_button = "&close" then
       a_dlg_button = ""
       ui_modeless_dlg_close("self")
end if
%code%)

See Also