Quick Find: Search for:

 Total Access Components
Control Tour

Return to Components Home
 

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

About Box

AVI (Video)

Bitmap Effects

Border
Browse for Folder New!
CD Player
Clipboard
Clock
Common Dialogs
Date Time Picker New!
Digital Display
Enhanced Button
Gauge
Icon Menu
INI File
Marquee
Notes
Popup Menu
Progress Meter
Registry
Resize
Slider
Spin Button
Splitter
System Info
Tab Strip
Text Effects
Timer
Wave
 

 

Total Access Components Tour: Text Effects

The Text Effects control is a databound control that is used to spice up the display of text on your forms and reports. You can change the angle that text is displayed, and choose various three-D styles.

Rotating Text

The Angle property of the Text Effects control can be set to any value between 0 and 360. Use a value of 90 to create vertical text with the top of the text facing to the left, or 270 to create text with the top of the text on the right. A value of 180 displays the text upside down.

The Value property determines the words displayed in the Text Effects control, and the Text Style property determines the appearance of the words. The appearance can be normal, three-D or shadowed. EffectOffset property determines the “depth” of the three-D effect. Each increment in this property increases the depth of the effect by one pixel.

The Text Effects control has four color properties. The BackColor property determines the color of the background of the control. The ForeColor property determines the color of the text in the Value property. The other two properties, HighlightColor and ShadowColor, are only visible if the TextStyle property of the control is set to Three-D or Shadow.

Note: If you plan to use rotated text, you must specify a TrueType font. Non-TrueType fonts cannot be rotated.

Refreshing the Display

Use the DoPaint method to force an immediate display of the control when you change one or more of its property values. Ordinarily this method is not required. Windows automatically displays the changes as soon as it is given enough processing time. However, if you are rapidly changing the value of one or more properties of the control (for example in a tight programming loop or in response to user input with a Slider control), the DoPaint method ensures that each change is immediately displayed.

Text Effects Properties

Name

Description

Angle

The degrees of rotation for the text .

BackColor

The background color of the control.

EffectOffset

The offset of the text effect.

Font

The font object for setting font properties for the text.

ForeColor

The color of the text.

HighlightColor

The color of the highlighted text.

ShadowColor

The color of the shadowed text.

TextStyle

The effect to apply to the text.

Value

The text displayed in the control.

Text Effects Methods

Name

Description

DoPaint Forces the control to update.

Text Effects Events

Name

Description

Click

Fires when the mouse is clicked over the control.

DblClick

Fires when the mouse is double clicked over the control.

KeyDown

Fires when a key is depressed.

KeyPress

Fires when a key is pressed.

KeyUp

Fires when a key is released.

MouseDown

Fires when a mouse button is depressed over a control.

MouseMove

Fires when the mouse moves over the control.

MouseUp

Fires when a mouse button is released over a control.

Questions  l   Web questions: Webmaster   l   Copyright © 2008 FMS, Inc.

Celebrating 21 Years of Software Excellence