Click or drag to resize

DataWindow Constructor (Typed)

X#
Construct a data window.

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 CONSTRUCTOR(
	oOwner,
	oSource,
	nResourceID,
	nDialogStyle
) CLIPPER
Request Example View Source

Parameters

oOwner (Optional)
Type: Usual
The window that owns the data window. The following window types can be owners: ShellWindow, TopAppWindow, ChildAppWindow, DialogWindow, DataDialog, or another DataWindow. The behavior of the data window is determined by the type of its owner—see the discussion of Adaptive Behavior in the description of this class.
oSource (Optional)
Type: Usual
The ID of the resource that defines the layout of the data window. If not specified, the data window automatically lays itself out when attached to a data server.
nResourceID (Optional)
Type: Usual
The resource ID that specifies the location and size of the sub-data window. Specifying this argument creates the new data window as a sub-data window on its owner data window (only data window owners can have sub-data windows). It should refer to a control defined in the resource entity of the owner data window. If nResourceID is omitted or if oOwner is not a data window, the data window is created as a modal DialogWindow.
nDialogStyle (Optional)
Type: Usual
** missing parameter documentation **
Examples
The following creates a data window and a data server, assigns the server to the window, and then displays the window:
X#
1...
2oDWCust := DataWindow{oShell,"CustomerWindow"}
3oDWCustOrders := DBServer{SELF,"CustOrders",IDW_CUSTORDERS}
4oDWGeneric := DBServer{SELF}
5oDWGeneric:Use(DBServer{cFileName})
6oDWGeneric:Show()
See Also