Page History
...
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Prompt | Text | The prompt caption | "" |
<2> | Font | Font | The font used to render the prompt | Tahoma, 8 pt., Italic |
<3> | Color | Color | The color userd used to render the prompt | GrayText |
<4> | Horizontal Alignment | Option | The horizontal alignment of the prompt within the cell | Left |
<5> | Vertical Alignment | Option | The vertical alignment of the prompt within the cell | Top |
<6> | Appear When Empty | Boolean | Indicates whether or not the prompt only appears when the cell is empty | 0 |
<7> | Appear When Selected | BooleanOption | Indicates whether or not how the prompt only appears when the cell is selected | None |
...
This flag can be used to control when the prompt should appear. The prompt is always visible by default, but if many cells use prompts, your table can begin to look cluttered. Use this field to limit when the prompt should appear. Set this field to "Row", "Col", "Both", or "None". Setting this field to "Row" will show the prompt only when the cell's row is selected. Setting this field to "Col" will show the prompt only when the cell's column is selected. Setting it to "Both" will show the prompt only when the cell itself is selected. The default setting is "None", which means the prompt will appear all the time for that cell.
Example
Code Block |
---|
// Add a prompt that will appear in the top left corner of a field
Prompt = ""
Prompt<1> = "Name"
Prompt<2> = "Arial":@SVM:7:@SVM:700:@SVM:0 ;// Smaller Bold Font
Prompt<3> = "GrayText" ;// Lighten the prompt
Prompt<7> = "Row" ;// Only appear when the row is selected
Set_Property(@Window:".OLE_EDITTABLE", "OLE.CellPrompt[1;All]", Prompt) |
...