DialogWindow Constructor (Typed) |
Namespace: XSharp.VO.SDK
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( ) X# 1LOCAL oDW AS DialogWindow 2oDW := DialogWindow{ oOwner } 3oDW:Show( ) X# 1oWin := DialogWindow{ oOwner, "IDD_DEFDLG2", TRUE } 2oWin:Size := Dimension{ 100 , 100 } 3oWin:Show( SHOWCENTERED ) X# 1oWin := DialogWindow{ oOwner, "IDD_DEFDLG", FALSE } 2oWin:Size := Dimension{ 100 , 100 } 3oWin:Show( ) 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. |