Click or drag to resize

DataWindow Methods

X#

The DataWindow type exposes the following members.

Functions
  NameDescription
Public methodActivate
Provide a method that is invoked when this window is activated.
(Overrides Activate(Usual).)
Public methodAppend
Append a blank record to the data server connected to this data window and position the window on this new record.
Public methodButtonClick
Provide a method that is invoked when a check box, push button, or radio button is clicked with the mouse.
(Overrides ButtonClick(Usual).)
Public methodCancel
Discard all information entered in this data window and close the window.
Public methodCanvasErase
Erase the current canvas area of this data window and repaint it using either the background brush or the system's default background color.
(Overrides CanvasErase.)
Public methodChangeFont
Change the font used by this datawindow.
Public methodCheckStatus
Test the information currently displayed in the controls in this data window to see if it passes all validation rules defined to the connected server.
Public methodClear
Clear the current selection in this data window.
Public methodClearRelations
Clear all relations defined to this data window's server.
Public methodClose
Invoked just as the data window is about to close.
(Overrides Close(Usual).)
Public methodCommit
Force all pending updates to this data window's server to be permanently written to disk.
Public methodControlFocusChange
Provide a method that is invoked when the input focus changes to or from a control.
Public methodCopy
Copy the current selection in this data window to the clipboard.
Public methodCut
Delete the current selection in this data window and copy it to the clipboard.
Public methodDeActivate
Provide a method that is invoked when this window is deactivated.
(Overrides DeActivate(Usual).)
Public methodDeactivateAllOLEObjects (Overrides DeactivateAllOLEObjects(Usual).)
Public methodDelete
Delete the current record in the attached server and update the window based on the change.
Public methodDeleteValidated
Delete the current record in the attached server only if it passes its validation rules and update the window based on the change.
Public methodDestroy
Free memory resources allocated for a window and its derived objects.
(Overrides Destroy.)
Public methodDisableConditionalControls
Disable those controls in this data window that have been registered with RegisterConditionalControls().
Public methodDispatch
Provide the dispatcher for events within the system when the window has focus; routing various events to their appropriate event handlers.
(Overrides Dispatch(Usual).)
Public methodDraw
Display a Draw object on this data window.
(Overrides Draw(Usual).)
Public methodEditChange
Provide a method that is invoked when the text in an edit control is changed.
(Overrides EditChange(Usual).)
Public methodEnableConditionalControls
Enable those controls that have been registered with RegisterConditionalControls().
Public methodEnableDragDropClient
Public methodEnableStatusBar
Enable/disable a status bar in an application window.
(Overrides EnableStatusBar(Usual).)
Public methodEnableToolTips
Enable or disable the tooltips for a window. Note that assigning a value to Control:ToolTipText automatically enables the tooltip's display on the parent window.
(Overrides EnableToolTips(Usual).)
Public methodError
Provide a method for handling error conditions raised during data window processing.
Public methodExpose
Provide a method that is invoked whenever part of the data window needs repainting.
(Overrides Expose(Usual).)
Public methodFIELDGET
Retrieve the current value of the indicated control in this data window (and the data server field associated with this control, if any).
Public methodFIELDPUT
Set the value of the control in this data window (and the data server field associated with this control, if any).
Public methodCode exampleFocusChange
Provide a method that is invoked when the input focus changes from the current data window to another window (or vice versa).
(Overrides FocusChange(Usual).)
Public methodGetAllChildren
Obtain an array of all X# children objects of the window.
(Overrides GetAllChildren.)
Public methodGoBottom
Position the data server connected to this data window on the last logical record and update the window based on the change.
Public methodGoTo
Position the data server connected to this data window on a specified record number and update the window based on the change.
Public methodGoTop
Position the data server connected to this data window on the first logical record and update the window based on the change.
Public methodHelpRequest
Provide a method that is invoked when the user requests help from the application using one of the available context-sensitive help mechanisms.
(Overrides HelpRequest(Usual).)
Public methodHide
Hide this data window so it is not visible.
(Overrides Hide.)
Public methodHorizontalScroll
Provide a method that is invoked when a horizontal scroll bar is scrolled.
(Overrides HorizontalScroll(Usual).)
Public methodHorizontalSlide
Provide a method that is invoked when a horizontal slider's thumb is dragged either by the mouse or the keyboard.
(Overrides HorizontalSlide(Usual).)
Public methodHorizontalSpin
Provide a method that is invoked when a horizontal spinner is spun.
(Overrides HorizontalSpin(Usual).)
Public methodInsertObject
Use the standard Insert Object dialog to insert an OLE object into the focused OLEObject of the data window.
Public methodLineTo
Draw a line on this data window (using the current pen) from the current pen position to a specified point.
(Overrides LineTo(Usual).)
Public methodListBoxClick
Provide a method that is invoked when an item in a list box owned by this data window is double-clicked.
(Overrides ListBoxClick(Usual).)
Public methodListBoxSelect
Provide a method that is invoked when an item in a list box owned by this data window is clicked.
(Overrides ListBoxSelect(Usual).)
Public methodMouseButtonDown
Provide a method that is invoked when the mouse pointer is positioned over the window and a mouse button is clicked.
(Overrides MouseButtonDown(Usual).)
Public methodMoveTo
Move the current pen to a point on the data window's canvas area.
(Overrides MoveTo(Usual).)
Public methodNotify
An event handler that reflects events that have occurred in the server connected to this data window.
Important! Notify() is automatically called by the server, and should normally not be called by application code.
Public methodOK
Accept all information entered in this data window and close the window.
Public methodCode exampleOLEInPlaceActivate
Called whenever a child OLE object is about to be "inplace" activated.
(Overrides OLEInPlaceActivate.)
Public methodCode exampleOLEInPlaceDeactivate
Called whenever a child OLE object is about to be "inplace" deactivated.
(Overrides OLEInPlaceDeactivate.)
Public methodPaintBoundingBox
Paint a rectangular area in the data window using a specified painting method.
(Overrides PaintBoundingBox(Usual, Usual).)
Public methodPaste
Replace the current selection in this data window with the contents of the clipboard.
Public methodPasteSpecial
Use the standard Paste Special dialog to insert an OLE object into the focused OLEObject of the data window.
Public methodPreValidate
Called after any status change in this data window to allow controls and menu commands to be enabled/disabled based on the current validation status.
Public methodQueryClose
Provide a method that is invoked just before the data window closes to confirm if the application really wants to close the window.
(Overrides QueryClose(Usual).)
Public methodRegisterConditionalControls
Register a control in this data window as being subject to validation status and hence automatically dimmed whenever the window is in an invalid state.
Public methodRePaint
Send an ExposeEvent to repaint the data window's canvas area.
(Overrides RePaint.)
Public methodRepaintBoundingBox
Repaint a rectangular area in the data window.
(Overrides RepaintBoundingBox(Usual).)
Public methodResize
Provide a method that is invoked when the data window changes size.
(Overrides Resize(Usual).)
Public methodSeek
Search for a value in the data server connected to this data window based on a controlling search order and update the window based on the change.
Public methodSetAlignStartSize
Sets the start size of the form window. In general, this size is set with the first assign to OwnerAlignment but it can be useful when trying to control the sizes for yourself.
(Overrides SetAlignStartSize(Usual).)
Public methodCode exampleSetRelation
Set a relation from the data server connected to this data window to the data server of another, creating an owner-child relationship between the two servers and the two windows.
Public methodCode exampleSetSelectiveRelation
Set a selective relation from this window to the child window, or actually from the server of this window to the server of the other window. A selective relation is one that limits operations on the child server to those records that match the relation condition.
Public methodShow
Display a window.
(Overrides Show(Usual).)
Public methodSkip
Move forward or backward in the server by a specified number of records.
Public methodSkipNext
Move to the next record (identical to Skip(1)).
Public methodSkipPrevious
Move to the previous record (identical to Skip(-1)).
Public methodStatusOK
Indicate the current validation status of the window through a return code and by setting the DataWindow:Status property.
Public methodTextPrint
Display a given string on the data window at a specified location using the current font and the current pen color.
(Overrides TextPrint(Usual, Usual).)
Public methodToolBarHeightChanged
Provide a method that is invoked when the height of the window's toolbar is changed.
(Overrides ToolBarHeightChanged(Usual).)
Public methodUndo
Undo recent changes made in this data window.
Public methodUndoAll
Undo all changes made in this data window since the last record movement or Commit() operation.
Public methodUpdateActiveObject
Update the toolbars of any in-place active OLE objects.
Public methodUse
Connect the data window to a data server in a client-server relationship.
Public methodVerticalScroll
Provide a method that is invoked when a vertical scroll bar is scrolled.
(Overrides VerticalScroll(Usual).)
Public methodVerticalSlide
Provide a method that is invoked when a vertical slider's thumb is dragged either by the mouse or the keyboard.
(Overrides VerticalSlide(Usual).)
Public methodVerticalSpin
Provide a method that is invoked when a vertical spinner is spun.
(Overrides VerticalSpin(Usual).)
Public methodViewAs
Specify the view mode of the data window, as browse view or form view.
Public methodViewForm
Select form view for the data window.
Public methodViewTable
Select browse view for the data window.
Top
See Also