You can aid the user in determining what the selection character is for a menu field by highlighting this character. To use character selection, the character selection option FLDCHSELECT must be ON for the form. This is the system default.
Designer: You can change the selection character in the Designer. See the Designer User's Guide for more information. You can also change the selection character in your code, by calling the functions described below. You can make this change at any point after reading the form from the Designer library.
Code: You can change the selection character at any point after defining the menu field.
To change the position or the logical attribute of the selection character for a menu field, use the set field selection character function, sf_selectch():
|
||
|
|
|
|
|
|
|
|
|
Numbering of characters in the field string starts at 0. To turn off character selection for a field, specify NOSELECT for ch_pos.
The following code example defines three menu fields and highlights the selection character (the capitalized character in the field string):
|