Establishes whether a cell's button is enabled or disabled.
Usage
Set_Property(OLECtrlEntID, "OLE.CellButtonEnabled[field; record]", Boolean)
Values
[True | False]
Default: True
Indices
Index | Description |
---|---|
field | Index to an existing field |
record | Index to an existing record |
Remarks
The CellButtonEnabled property provides a way to enable or disable a button cell. Set this to TRUE to enable or FALSE to disable. By default, buttons are enabled and are not affected by the value of the CellProtection property. In order to ensure the button looks disabled, set custom disabled colors in the CellType property.
This property is only valid for cell's whose CellType property has been set to "Push Button."
Example
// Disable all buttons in the first column Set_Property(@Window:".OLE_EDITTABLE", "OLE.CellButtonEnabled[1; All]", 0) // Enabled all buttons Set_Property(@Window:".OLE_EDITTABLE", "OLE.CellButtonEnabled[All; All]", 1)