Click or drag to resize

Control Class (Typed)

X#
Provide the base class from which all X# controls are subclassed.
Inheritance Hierarchy
Object
  VObject
    Control
      More...

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
[TypesChangedAttribute]
 CLASS Control INHERIT VObject,  IMPLEMENTS IGuiObject, 
	ITimer
Request Example View Source

The Control type exposes the following members.

Constructors
  NameDescription
Public methodControl
Construct a control.
Top
Properties
  NameDescription
Public propertyBackground
The brush used for painting the background of the control. For example, in a single line edit control, the background is the color behind the text in the edit control.
Public propertyCaption
A string representing the caption of the control (i.e., the static text identifying the control)
Public propertyContextMenu
A menu object representing the local pop-up menu for a control.
Public propertyControlID
A number between 1 and 8000 representing the unique ID of a control
Public propertyControlType
Public propertyEventReturnValue
Public propertyFieldSpec
Public propertyHasFocus
Public propertyHyperLabel
The hyperlabel connected to the control.
Public propertyIsHidden
Public propertyModified
A logical value that is set to TRUE when a standard edit control or editable combo box is in the process of being modified.
Public propertyName
A string representing the name of the control.
Public propertyNameSym
A symbol representing the name of the control.
Public propertyOrigin
A point representing the location of a control on its owner window, in canvas coordinates.
Public propertyOwner
The owner window of a control.
Public propertyOwnerAlignment
Constant representing how the window will be aligned within its owner window.
Public propertyParent
Public propertyReadOnly
Is the control readonly ?
Public propertyServer
The server object that currently connected to this control. If no server is connected, the value is NIL.
Public propertySize
A dimension representing the size of a control.
Public propertyStatus
A hyperlabel indicating the status of the control after a validation attempt or other action.
Public propertySWFControl
Public propertyCode exampleTextValue
A string representing the value held in the control.
Public propertyToolTipText
String value representing the tooltip text used when the user moves the mouse pointer over the control.
Public propertyUseHLForToolTip
Logical value determining whether the descriptive text of a control's Hyperlabel should be used as the tooltip text.
Public propertyCode exampleValue
The value held in the control, in whatever data type the control holds.
Public propertyValueChanged
Top
Functions
  NameDescription
Public methodActivate
Provide a method that is invoked when the control has focus and a window is activated.

Public methodAddChild
Public methodAsString
Public methodBringToFront
Public methodCreate
Creates the underlying Win32 control
Public methodCreateWindowEx
Public methodDeactivate
Provide a method that is invoked when the control has focus and a window is deactivated.

Public methodDefault
Call the default windows procedure for a control and set the EventReturnValue.
Public methodDestroy
Provide a method to de-instantiate any Control object.
(Overrides Destroy.)
Public methodDisable
Disable a control (until a subsequent call to Control:Enable()).
Public methodDisableTheme
Disable the WinXP theme for a control.
Public methodDispatch
Provide the prototype dispatcher for events within the system when the control has focus; routing various events to their appropriate event handlers.

Public methodDrop
Public methodEnable
Enable a control that was previously disabled.
Public methodExpose
Provide a method that is invoked when the control has focus and whenever part of the window needs repainting.

Public methodFocusChange
Provide a method that is invoked when the control has focus and the input focus changes from the current control to another (or vice versa).

Public methodHandle
Return the handle for a control.
Public methodHasBorder
Check if a border has been set for the control
Public methodHasStyle
Check if a style value has been set for the control
Public methodHide
Hide a control so it is not visible (until a subsequent call to Control:Show()).
Public methodHorizontalScroll
Provide a method that is invoked when the control has focus and a horizontal scroll bar is scrolled.

Public methodIsEnabled
Report if this control is currently enabled.
Public methodIsReadOnly
Report if this control is currently readonly.
Public methodIsVisible
Report if this control is visible (completely or partially) or hidden.
Public methodKeyDown
Provide a method that is invoked when the control has focus and a key on the keyboard is pressed.

Public methodKeyUp
Provide a method that is invoked when the control has focus and a key on the keyboard is released.

Public methodLinkDF
Connect a control to a data field in a data server.
Public methodMenuInit
Provide a method that is invoked when a pop-up menu owned by the control is about to pop up.
Public methodMenuSelect
Provide a method that is invoked when an item on a menu owned by the control is highlighted.
Public methodMouseButtonDoubleClick
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is double-clicked.

Public methodMouseButtonDown
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is clicked.

Public methodMouseButtonUp
Provide a method that is invoked when the control has focus, the mouse pointer is positioned over the window, and a mouse button is released.
Public methodMouseDrag
Provide a method that is invoked when the control has focus and a mouse with one or more buttons clicked is moved in the window.
Public methodMouseMove
Provide a method that is invoked when the control has focus and the mouse is moved in the control.
Public methodMove
Provide a method that is invoked when the control has focus and the control is moved (either by the user or by the application).
Public methodOnControlCreated
Public methodOnHandleCreated
Public methodOnHandleDestroyed
Public methodOverRide
This is a compatibility method that is no longer used or needed.
Public methodStatic memberOwnerAlignmentHandledByWinForms
Public methodPaintBackGround
Public methodPerformValidations
Perform all the validations defined to this control's field specification (for example, required, maximum and minimum digits, maximum and minimum value, validation rule) and return the result of the test.
Public methodRegisterTimer
Register a timer method to be invoked for the control.
Public methodRePaint
Send an ExposeEvent to repaint the control
Public methodResize
Provide a method that is invoked when the control has focus and the control changes size.
Public methodRestoreUpdate
Resume all drawing updates for a control (after Control:SuspendUpdate() is called).
Public methodSendToBack
Public methodSetExStyle
Set the exstyle for the control.
Public methodSetFocus
Pass input focus to a control, thereby directing all mouse and keyboard input to the control.
Public methodSetStyle
Set the style for the control.
Public methodShow
Display a control so it is visible.
Public methodShowToolTip
Public methodSuspendUpdate
Temporarily suspend all drawing updates for a control; drawing resumes with a call to Control:RestoreUpdate().
Public methodTimer
Provide a method to be invoked at specific intervals defined when the timer is registered though the RegisterTimer() method.
Public methodValidateControl
This method validates if the control has been created and when not then it triggers the control creation
Public methodVerticalScroll
Provide a method that is invoked when the control has focus and a vertical scroll bar is scrolled.
Top
Globals and Defines
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
Control is the base class for a major system class hierarchy. Controls provide an easy mechanism for user I/O. They are self-contained and notify their respective owners when the user takes some action (such as pressing a button or entering text). Controls on dialog windows created from resource entity templates are shown automatically when the dialog window is shown. However, if the application wishes to manipulate a control, it must register the control by creating a system object of the appropriate type. Controls must appear in an owner window. They also need to know where to appear. There are two basic ways you can specify where; one is by placing the control using the Window Editor. In this case, X# generates a resource to represent the control. When you construct the control in your program, you pass to the constructor the ID of the resource as its second argument. The other way is to place the controls dynamically, in which case, you pass the position and size of the control as the third and fourth arguments (the first argument is always the owner and the second argument is always the resource ID). Even when you place the control dynamically, you pass in a unique ID as the second argument.
See Also
Inheritance Hierarchy
Object
  VObject
    Control
      AnimationControl
      CustomControl
      DataBrowser
      FixedImage
      MultiMediaContainer
      ProgressBar
      ScrollBar
      Spinner
      SplitView
      StatusBar
      TextControl
      ToolBar