Total Access Components Tour: Border
The Border control lets you create rectangular frames with a variety of
styles: standard, three-D, shadowed, and rounded.

Using the Border Control
There are six basic steps involved in using the Border custom control:
- Determine where on the form to put the border
- Place the control on the form at the appropriate position and adjust
its size
- Set the border properties on the property sheet
- Issue the Change to Picture command by right-clicking on the Border
control and selecting the FMS Border Control Object|Change To Picture
menu item
- Set the Enabled property to False
- Select Format|Send to Back
Change To Picture
Since it is unlikely your application needs to programmatically change
the properties of a Border control at runtime, you should use the Access
Change To Image operation on the Border controls you use. This results in
a more efficient form that loads faster and uses less memory.
When you issue the Change To Image command, the Border controls uses
the current Windows Color Depth setting. This means that if your Windows
settings are set to 256 colors, the Border control is converted to a
256-color bitmap. If that 256-color bitmap is then displayed on a system
set to 16-color mode, it is not display accurately. Because of this, you
should set your system to 16-color mode before converting controls to
pictures.
Border Properties
|
Name |
Description |
| BackColor
|
The color of the bevel
control’s background. |
| BevelWidth
|
The width of the Bevel
in pixels. |
| BorderColor |
The color of the
border. |
| CurveHeight
|
The amount of y
curvature for rounded rectangle. |
| CurveWidth
|
The amount of x
curvature for rounded rectangle. |
| EffectStyle
|
The style of the
border. |
| HighlightColor
|
The color of the
highlight. |
| ShadowColor
|
The color of the
shadow. |
Border 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. |
|