Click or drag to resize

DialogWindow Constructor

X#
Construct a dialog window.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 CONSTRUCTOR(
	oOwner,
	xResourceID,
	lModal
) CLIPPER
Request Example View Source

Parameters

oOwner (Optional)
Type: Usual
The window that owns the dialog window.
xResourceID (Optional)
Type: Usual
The resource ID of the desired dialog window.
lModal (Optional)
Type: Usual
TRUE creates a modal dialog window; FALSE, a modeless one. The default is TRUE.
Remarks
Tip Tip
When creating windows without using the Window Editor there is a difference between the DialogWindow class and all other Window classes. With the other window classes it is possible to write code like this -
X#
1LOCAL oDW AS DataWindow
2oDW := DataWindow{ oOwner }
3oDW:Show( )
However, this code will not work -
X#
1LOCAL oDW AS DialogWindow
2oDW := DialogWindow{ oOwner }
3oDW:Show( )
It is possible to use a generated resource for a blank DialogWindow and inherit from this. The alternative is to do something like this -
X#
1oWin := DialogWindow{ oOwner, "IDD_DEFDLG2", TRUE }
2oWin:Size := Dimension{ 100 , 100 }
3oWin:Show( SHOWCENTERED )
Or
X#
1oWin := DialogWindow{ oOwner, "IDD_DEFDLG", FALSE }
2oWin:Size := Dimension{ 100 , 100 }
3oWin:Show( )
The difference between these two pieces of code is -
X#
1- The first uses the "IDD_DEFDLG2" resource ID and sets the modal property to TRUE. This will create a normal style dialog window and is known as a Pop-Up Dialog.
2- The second uses the "IDD_DEFDLG" resource ID and sets the modal property to FALSE. This is the style of dialog window that would be used as a Tab Page and is known as a Child Dialog.
See Also