Navigation:  Reference > Form Objects >

TRunnungText

Print this Topic Previous pageReturn to chapter overviewNext page

 

This object TRunningText is a Label with some additional special effects. This object will allow you to put a fixed string on the form. The icon for this object is on the enhanced page.

 

PALETTE  ICON

 

Description

This object is an analog of a marque when text is scrolled in some defined direction.

 

PROPERTIES

The following are the properties that apply to this object.  Some are defined in Common Properties and are linked to their appropriate page.

 

Appearance

 

Alignment

 

CaptionThis is the text that will appear on the form.  It is any standard string and can be modified at runtime.

 

Color

Cursor

ParentColor

 

TransparentIf you want to put a label on a TImage you can check this option (set to .True.) and only the text will appear instead of both the text and the background color.

 

       NOTE:  To get an object to appear on top of an image you must right click on the label and then choose the Bring To Front option before you move the label to the image, or, it will go behind the image.

 

Behavior

 

Enabled

Visible

 

Font

 

Font

ParentFont

 

Hint

 

Hint

ParentShowHint

ShowHint

 

Misc

 

Name

PopupMenu

Tag

 

Other

 

Anchors

Constraints

 

ActiveScrolling will be started when you set Active .true.

 

             Continuous          If you want to scroll a text continuously.

       

              Direct               This is direction in which text will be scrolled (diLeftToRight,diRightToLeft, diTopToBottom, diBottomToTop)

 

LayoutYou can set where the caption will be displayed within the label box.  The options are:  tlTop (display at the top of the box), tlBottom (display at the bottom of the box) and tlCenter (display at the center of the box).  The default value is tlTop, however, when you first create a TLabel object the box will be created the size of the caption.  So, this option has little effect unless you change the size of the label box on the form.

 

NumRepeat         Number of time to repeat.

 

             Speed                 Speed for scrolling.

 

                StyleLabel          3D-style which is used for text displaying (slNormal, slLowered, slRaised)

Position

Align

AutoSize

Height

Left

Top

Width

 

EVENTS

This object has a single event that is called if your user clicks on the object.  This event looks to your program for a special label.  It is made up of the object Name, a period (.) and the Event name (Click).  The full event name would be ObjectName.Click:.  You would not return a value from the program, just a simple RET is all that is required.  So, the user clicks on the object, if the event label exists the routine is called, you return from the routine, and the user has control again.

 

NOTE:  You can have multiple objects call the same routine by 'stacking' the event labels on top of each other.  For example, if you had two buttons you wanted to call the same event, you could do the following:

 

btnFirstButton.click:

btnSecondButton.click:

 //event routine code would go here.

 ret

 

The labels are not part of the code executed.  They are just place keepers and tell the program where to go.

 

See Also : Tlabel TAngleLabel TrxLabel

 

 

 


Page url: http://www.cassoftware.com/tas/manual/trunningtext.htm