Navigation:  Reference > Form Objects >

TShape

Print this Topic Previous pageReturn to chapter overviewNext page

 

This object will allow you to draw a simple shape on the form.  It can be used in the same manner as the TBevel, to put a box around an object or group of objects.  Other than that, it has no other purpose.  The icon for this object is on the Additional page.

 

PALETTE ICON & EXAMPLE

 

 

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

 

Cursor

 

Behavior

 

Enabled

Visible

 

Hint

 

Hint

ParentShowHint

ShowHint

 

Misc

 

Name

Tag

 

Other

 

Anchors

BrushThis is the color and style used for the background.  Both the colors (clScrollBar to clWhite) and styles (bsSolid to bsDiagCross) are defined in COMPILERCONSTANTS.TXT.  These properties can be modified at runtime by referring to the property as 'Brush.Style' or 'Brush.Color'.

Constraints

PenThis is the color, mode, style and width of the border around the shape.  The colors (clScrollBar to clWhite), modes (pmBlack to pmNotXor) and styles (psSolid to psInsideFrame) are defined in COMPILERCONSTANTS.TXT.  These properties can be modified at runtime by referring to the property as 'Pen.Style', 'Pen.Color' or 'Pen.Mode'.  Pen.Width is an integer value that specifies the size of the border in pixels.  The default value is 1.

 

ShapeThis property determines the type of shape to be displayed on the form.  The options are:  rectangle (stRectangle), square (stSquare - the default value), round rectangle (stRoundRect - a rectangle with rounded corners), round square (stRoundSquare - a square with rounded corners), ellipse (stEllipse - a flattened circle) and circle (stCircle).  These values are defined in COMPILERCONSTANTS.TXT and can be modified at runtime.

 

Position

 

Align

Height

Left

Top

Width

 

COMMENTS

This object will always appear behind any other objects you put on the form, except other TShapes.

 

EVENTS

There are no events for this object.

 

 

 


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