Quick Find: Search for:

 Total Access Components
Control Tour

Return to Components Home
 

 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

About Box

AVI (Video)

Bitmap Effects

Border
Browse for Folder New!
CD Player
Clipboard
Clock
Common Dialogs
Date Time Picker New!
Digital Display
Enhanced Button
Gauge
Icon Menu
INI File
Marquee
Notes
Popup Menu
Progress Meter
Registry
Resize
Slider
Spin Button
Splitter
System Info
Tab Strip
Text Effects
Timer
Wave
 

 

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:

  1. Determine where on the form to put the border
  2. Place the control on the form at the appropriate position and adjust its size
  3. Set the border properties on the property sheet
  4. 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
  5. Set the Enabled property to False
  6. 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.

 

Questions  l   Web questions: Webmaster   l   Copyright © 2008 FMS, Inc.

Celebrating 21 Years of Software Excellence