Xbasic

UI_DLG_DOM Function

Syntax

Dialog_Dimensions as P = UI_DLG_DOM(C dialog_name)

Arguments

dialog_name

The name of the dialog box as Defined in the UI_MODELESS_DLG_BOX() command.

Description

Get the document object model for the xdialog.

Discussion

The UI_DLG_DOM() function creates a pointer that allows you to manipulate the size and position of objects within an Xdialog box. NOTE: This command is not supported in Version 8 and above.

First we create one version of the dialog box.

ui_modeless_dlg_box("A Modeless Xdialog","firstname [first] lastname; ")
d = ui_dlg_dom("A Modeless Xdialog")
? d.objects[2]
= +position.
+size.
? d.objects[2].position
= x = 52.000000
y = 5.000000

Then we modify the size of the text box and the positions of the text box and "lastname" label.

d.objects[2].position.x = 70
d.objects[2].size.x = 100
d.objects[3].position.x = 200
ui_dlg_resize("A Modeless Xdialog",3,1)
ui_dlg_refresh("A Modeless Xdialog")

Limitations

Desktop applications only.

See Also