ENABLE BUTTON

4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next

version 6.0 (Modified)


ENABLE BUTTON ({*; }object)

ParameterTypeDescription
*If specified, object is an Object Name (String)
If omitted, object is a Variable
objectForm ObjectObject Name (if * is specified), or
Variable (if * is omitted)

Description

The command ENABLE BUTTON enables the form objects specified by object.

An enabled button or object reacts to mouse clicks and shortcuts.

If you specify the optional * parameter, you indicate an object name (a string) in object. If you omit the optional * parameter, you indicate a field or a variable in object. In this case, you specify a field or variable reference (field or variable objects only) instead of a string. For more information about object names, see the section Object Properties.

This command (despite what its name suggests) can be applied to the following types of object:

Button, Default Button, 3D Button, Invisible Button, Highlight Button

Radio Button, 3D Radio Button, Radio Picture

Check Box, 3D Check Box

Pop-up menu, Drop-down List, Combo Box, Menu/Drop-down list

Thermometer, Ruler

Note: It is not practical to use this command with an object that is assigned an automatic action, because 4D changes the state of the control when needed.

Examples

1. This example enables the button bValidate:

   ENABLE BUTTON(bValidate)

2. This example enables all form objects that have names containing "btn":

   ENABLE BUTTON(*;"@btn@")

3. See example for the command BUTTON TEXT.

See Also

BUTTON TEXT, DISABLE BUTTON.


4D - Documentation   Français   English   German   4th Dimension 2003, Command Theme List   4th Dimension 2003, Command Alphabetical List   4th Dimension 2003, Constant Theme List   Back   Previous   Next