FrameColor
From Real Software Documentation
Method
The currently selected color for outlining objects, as set by the operating system.
Syntax
result=FrameColor
| Part | Type | Description |
|---|---|---|
| result | Color | The color used for drawing the outline of a RectControl. |
Notes
This value is useful when you are using Canvas controls to create custom controls. When drawing objects, use this color for the object’s frame. ListBoxes, for example, use this color to draw the dark frame around the ListBox.
This value can be changed by the user, so you should access this value in your Paint Event handler rather than storing the value.
Example
This example uses the system FrameColor to draw the bottom and right of this object. The code is in the Paint event of the Canvas.
Const White = &cffffff
g.forecolor=white
g.drawline 1,1,canvas1.width,1
g.drawline 1,canvas1.height-1,1,1
g.forecolor=FrameColor
g.drawline canvas1.width-1,2,canvas1.width-1,canvas1.height
g.drawline 1,canvas1.height-1,canvas1.width,canvas1.height-1
//fill in using the system Fill color
g.ForeColor=FillColor
g.fillrect 2,2,canvas1.width-3,canvas1.height-3
g.forecolor=white
g.drawline 1,1,canvas1.width,1
g.drawline 1,canvas1.height-1,1,1
g.forecolor=FrameColor
g.drawline canvas1.width-1,2,canvas1.width-1,canvas1.height
g.drawline 1,canvas1.height-1,canvas1.width,canvas1.height-1
//fill in using the system Fill color
g.ForeColor=FillColor
g.fillrect 2,2,canvas1.width-3,canvas1.height-3
See Also
DarkBevelColor, DarkTingeColor, DisabledTextColor, FillColor, HighlightColor, LightBevelColor, LightTingeColor, TextColor functions; Color data type.
