FixedText Class |
|
Namespace: VO
The FixedText type exposes the following members.
| Name | Description | |
|---|---|---|
| Dispatch |
Provide the prototype dispatcher for events within the system when the control has focus; routing various events to their appropriate event handlers. (Overrides Dispatch(Usual).) | |
| SetDrawStyle |
Set the alignment style for the text in a FixedText object.
| |
| SetStandardStyle |
Set the alignment style for the text in a FixedText object.
|
| Name | Description | |
|---|---|---|
| lDrawThemeBackground | ||
| lUseDrawText |
| The text in a FixedText object can be changed by assigning TextControl:TextValue. In such a case, it may be necessary to resize the FixedText object because the size of the control dictates the clipping region for the displayed text. |
| As of Visual Obejcts version 2.7 the FixedText control supports the DrawText and Transparent options. These are on by default. If the old behaviour is required, set the EXPORTed variable lUseDrawText to FALSE. It is TRUE by default. If WinXP Themes are enabled and you want to stop the drawing of the theme behind the FixedText control, set the EXPORTed variable lDrawThemeBackground to FALSE. It is TRUE by default. |
1CLASS MyWindow INHERIT TopAppWindow 2HIDDEN MyFT AS OBJECT 3METHOD Init() CLASS MyWindow 4p := Point{10,10} 5d := Dimension{10,10} 6MyFT:= FixedText{SELF,1,p,d,"The text"} 7SELF:Show() 8MyFT:Show()
1RESOURCE IDD_ABOUT DIALOG 20, 20, 160, 80 2STYLE WS_POPUP | WS_DLGFRAME 3BEGIN 4LTEXT "Left justified" -1, 8, 8, 120, 12 5CTEXT "Centered" -1, 8, 24, 120, 12 6RTEXT "Right justified" -1, 8, 36, 120, 12 7DEFPUSHBUTTON "OK" IDB_OK, 64, 60, 32, 14, WS_GROUP 8END