Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PosNameTypeDescriptionDefault
<1>PromptTextThe prompt caption""
<2>FontFontThe font used to render the promptTahoma, 8 pt., Italic
<3>ColorColorThe color used to render the promptGrayText
<4>Horizontal AlignmentOptionThe horizontal alignment of the prompt within the cellLeft
<5>Vertical AlignmentOptionThe vertical alignment of the prompt within the cellTop
<6>Appear When EmptyBooleanIndicates whether or not the prompt only appears when the cell is empty0
<7>Appear When SelectedBooleanOptionIndicates whether or not how the prompt only appears when the cell is selectedNone

...

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)

...