Click or drag to resize

TextControl Class (Typed)

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

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

The TextControl type exposes the following members.

Constructors
  NameDescription
Public methodTextControl
Create a text control.
Top
Properties
  NameDescription
Public propertyCaption
The string representing the caption of the text control.
(Overrides Caption.)
Public propertyControlFont
The font used to draw the text in the control.
Public propertyControlType (Overrides ControlType.)
Public propertyCurrentText
A string representing the text currently displayed in a text control. For edit controls, including the edit box associated with simple and drop-down combo boxes, it contains the text currently appearing in the edit box. For fixed icon and group box controls, TextControl:CurrentText contains NULL_STRING.
Public propertyLength
A numeric value representing the number of characters in the control.
Public propertyTextColor
The color used to draw the text in the control. (Refer to the Color:Init() method for details on specifying a color object.)
Public propertyTextValue
A string representing the value held in the control.
(Overrides TextValue.)
Top
Functions
  NameDescription
Public methodCreate
Creates the underlying Win32 control
(Overrides Create.)
Public methodDestroy
Provide a method to de-instantiate any TextControl.Destroy object.
(Overrides Destroy.)
Public methodFont
Change the current font of the text control.
Public methodIme
Return and optionally set whether Input Method Editor is enabled for this text control.
Public methodOnHandleCreated (Overrides OnHandleCreated(Object, EventArgs).)
Public methodOnHandleDestroyed (Overrides OnHandleDestroyed(Object, EventArgs).)
Public methodRemoveEditBalloonTip
Removes the current BallonTip from the Edit control that has inherited from this class.
Public methodSetCueBanner(String)
Add a cue banner to the Edit control that has inherited from this class.
Public methodSetCueBanner(String, IntPtr)
Public methodShowEditBalloonTip
Add a BallonTip to the Edit control that has inherited from this class.
Public methodStatic memberwinSendMessage
Top
Remarks
Text controls in dialog windows are destroyed when the window is closed. Therefore, it is recommended that you save the text in a buffer if it is to be used after calling DialogWindow:EndDialog().
Examples
This example changes the color of a button's name to red when the button is clicked:
X#
1METHOD ButtonClick(aControlEvent) CLASS TopAppWindow
2oPB := oControlEvent:Control
3oPB:TextColor := Color{COLORRED}
See Also
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        BaseListBox
        Button
        DateTimePicker
        Edit
        FixedText
        GroupBox
        HotKeyEdit
        HTMLControl
        IPAddress
        ListView
        MonthCalendar
        SysLink
        TabControl
        TreeView