Specifies different format options for a control. Available at design time and run time.
[Form.]Control.SpecialEffect = nExpr |
Return Value
- nExpr
-
For a PageFrame control, Container object, or Control object, the settings for the SpecialEffect property are as follows:
Setting Description 0
Raised. The control appears to be raised from the form.
1
Sunken. The control appears to be set into the form.
2
Flat.
For all other controls, the settings for the SpecialEffect property are as follows:Note: For a PageFrame control, SpecialEffect is available only if the Tabs Property is set to false (.F.). Also, the BorderColor property for a PageFrame applies only when nExpr is set to 2 (Flat). Setting Description 0
(Default for all controls and objects except the Container object.) 3D. Border of control is raised to simulate a 3-dimensional look.
1
Plain. Control appears without a 3-dimensional border.
2
Hot tracking. Provides mouseover effect for specific controls.
Note: If the Height property is set to a value too small, the 3D setting has no effect. Hot tracking is supported on the following controls: ListBox, ComboBox, Spinner, TextBox, EditBox, CommandButton, CheckBox, OptionButton. Hot tracking for CheckBox or OptionButton controls is only supported if Style = 2 (graphical). Hot tracking is supported for CommandButtons only when Style <> 1 (invisible). The following table describes hot tracking support. Control Default Mouseover effect Listbox
Plain
3D
ComboBox
Plain
3D
Spinner
Plain
3D
TextBox
Plain
3D
EditBox
Plain
3D
CommandButton
Plain in normal position
3D
CheckBox
Plain
None
OptionButton
Plain in normal position
3D
Remarks
Applies To: CheckBox | ComboBox | CommandButton | CommandGroup | Container Object | Control Object | EditBox | ListBox | OptionButton | OptionGroup | PageFrame | Shape | Spinner | TextBox