Related Functions

Changing the Characters Displayed in the Radio Button

For PCDOS and OS/2 systems, the default ON character is a large dot (hex value 07); for terminal based systems, the default ON character is an asterisk (hex value 2A). The default OFF character is a space (hex value 20). You can change these defaults.

Designer: You can change the default radio button characters for an individual field using the Designer. See the Designer User's Guide for more information. You can also change the characters for a radio button group in code by calling sf_radch() at any time after you have read the form from the Designer library.

Code: You can change these defaults by calling the function sf_radch():

sf_radch(select_ch, noselect_ch, dfldp, dfmp)

UCHAR select_ch;        /* Character to display when button selected    */

UCHAR noselect_ch;    /* Character to display when not selected        */

DFIELDPTR dfldp;        /* Pointer to radio button group            */

DFORMPTR dfmp;        /* Pointer to data form                    */

where select_ch is the character to use when the radio button is selected; noselect_ch is the character to use when the radio button is not selected, dfldp is a pointer to any field in the radio button group, and dfmp is a pointer to the data form. sf_radch() changes the character used for all buttons in that group.


Home Contents Previous Next