Click or drag to resize

ControlWindow Class (Typed)

X#
Create a control as part of the Window hierarchy, thereby allowing the behavior of the control to be customized using event handlers.
Inheritance Hierarchy
Object
  VObject
    EventContext
      Window
        ControlWindow
          EditWindow

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
Syntax
 CLASS ControlWindow INHERIT Window
Request Example View Source

The ControlWindow type exposes the following members.

Constructors
  NameDescription
Public methodControlWindow
Initializes a new instance of the ControlWindow class
Top
Properties
  NameDescription
Public propertyControl
The control on which the control window is based.
Public propertyControlID
A number between 1 and 8000 representing the unique ID of the control on which the control window is based.
Public propertyCode exampleHyperLabel
The hyperlabel connected to the control on which the control window is based.
(Overrides HyperLabel.)
Public propertyModified
A logical value indicating whether the control on which the control window is based has been changed by the user since it was last set.
Public propertyOrigin
A point representing the position of a control window on its owner window, in canvas coordinates.
(Overrides Origin.)
Public propertySize
A dimension representing the size of a control window.
(Overrides Size.)
Top
Functions
  NameDescription
Public methodDestroy
Free memory resources allocated for a ControlWindow object and its derived objects.
(Overrides Destroy.)
Public methodDisable
Disable a control window, including its associated control (until a subsequent call to ControlWindow:Enable()).
(Overrides Disable.)
Public methodEnable
Enable a control window that was previously disabled.
(Overrides Enable.)
Public methodHide
Hide a control window and its associated control so it is not visible (until a subsequent call to ControlWindow:Show()).
(Overrides Hide.)
Public methodOverride
This is a compatibility method that is no longer used or needed.
(Overrides Override.)
Public methodSetFocus
Pass input focus to a control window, thereby directing all mouse and keyboard input to its associated control.
(Overrides SetFocus.)
Public methodShow
Top
Remarks
When a control is created as part of the Window hierarchy, it can trap events. For example, you might want to customize the appearance of controls (like changing the background and foreground colors) or modify their default key handling. Manipulating a control via the ControlWindow class requires more overhead than those created by the subclasses of Control. Therefore, it is recommended that control windows be used only where special handling is needed (for example, to override the handling of certain events or call some window method on a control).
See Also