Prompt_Button_Mode - cCJGridColumn
Determines how and if a prompt button will appear within a grid cell
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer Prompt_Button_Mode
| Access Type | Syntax |
|---|---|
| Read Access: | Get Prompt_Button_Mode to IntegerVariable |
| Write Access: | Set Prompt_Button_Mode to IntegerVariable/Value |
Description
This property determines how and if prompt button objects are added to a grid cell.
| Constant | Meaning |
|---|---|
| PB_PromptOff | The prompt button object is not displayed. |
| PB_PromptOn | The prompt button object is displayed and the message prompt is sent when the button is pressed. |
| PB_PromptAuto | The prompt button object is displayed automatically if a prompt object exists. This is determined at run time. If the prompt_object property is non-zero, a prompt button is displayed. This is the default value for the cDbCJGridColumn class. |
Note that the status of the prompt can be changed at any time. The following example, when added below the Entry_Item code of a cDbCJGrid, would toggle the prompt button on and off.
Procedure TogglePromptButton
Set Prompt_Button_Mode to PB_PromptOn
Set Prompt_Button_Mode to PB_PromptOff
End_Procedure
pbShowNonActiveInPlaceButton specifies whether to show in-place buttons (Combo, Expand, Spin) at all times or just in cells being edited.