Reference: MSEgui/TFrame

From Free Pascal wiki
Jump to navigationJump to search

TFrame

work in progress

The visual appearance of a widget is specified by the properties Face and Frame. Face concerns the widget itself, Frame the appearance around it.

Reference

Hierarchy

Properties

Caption

At some widgets the Caption of the frame is a "add on", at TCheckBox it's a essential part of the widget:

msegui frame captionon.png


With CaptionDist, CaptionOffset and CaptionsPos you can specify the exact position of the Caption (at TCaptionPos the pic shows only some examples):

msegui frame captiondist.png

msegui frame captionpos.png


captionposty = (cp_center,cp_rightbottom,cp_right,cp_rightcenter,cp_righttop,
                 cp_topright,cp_top,cp_topcenter,cp_topleft,
                 cp_lefttop,cp_left,cp_leftcenter,cp_leftbottom,
                 cp_bottomleft,cp_bottom,cp_bottomcenter,cp_bottomright
                 );

property Caption: msestring
property CaptionDist: integer default 0;  
property CaptionOffset: integer default 0; 
property CaptionPos: captionposty; 
property Font: TOptionalFont;

FrameImage

With the property FrameImage you can paint individual frames by using a TImageList. In the imalge list their are used 8 consecutive images. The images for the edges will be stretched as needed - this will look very strange, if this images are not suitable (look TFace.Frameimage).

Usually you will use very small pictures, see the following picture:

msegui frame frameimage2.png

property FrameImage_list: timagelist;
    // imagenr 0 = topleft, 1 = left, 2 = bottomleft, 3 = bottom,
    // 4 = bottomright 5 = right, 6 = topright, 7 = top
property FrameImage_offset: integer default 0;

Methods

Events

known issues

issues of the class

issues of this documentation