int SetFontPopupDefaults (char typefaceName[], int bold, int underline, int strikeOut, int italic, int justification, int textColor, int fontSize);
Specifies the settings to apply to the FontSelectPopup when the end-user clicks the Default button.
This function applies to all attributes that affect the sample text display, even attributes for which the controls have been hidden.
The default values you set with this function apply only to the next call to FontSelectPopup. If you do not call this function before you call FontSelectPopup, the default values have the initial settings values shown in the following table.
Font Pop-Up Defaults | Initial Settings |
typefaceName | VAL_DIALOG_FONT |
bold | 0 |
underline | 0 |
strikeOut | 0 |
italic | 0 |
justification | VAL_LEFT_JUSTIFIED |
textColor | VAL_BLACK |
fontSize | 12 |
LabWindows/CVI maintains a separate set of FontSelectPopup default values for each thread of your program.
Input | ||
Name | Type | Description |
typefaceName | string | Default typeface name, for example, "Courier" for use by FontSelectPopup. |
bold | integer | Default bold setting for use by FontSelectPopup. |
underline | integer | Default underline setting for use by FontSelectPopup. |
strikeOut | integer | Default strikeout setting for use by FontSelectPopup. |
italic | integer | Default italic setting for use by FontSelectPopup. |
justification | integer | Default justification setting for use by FontSelectPopup. |
textColor | integer | Default text color setting for use by FontSelectPopup. The color is specified in RGB format. An RGB value is a 4-byte integer with the hexadecimal format 0x00RRGGBB. RR, GG, and BB are the respective red, green, and blue components of the color value. |
fontSize | integer | Default font size for use by FontSelectPopup. |
Name | Type | Description | ||||
status | integer | Return value indicating whether the function was successful. A negative number indicates that an error occurred.
|