Xbasic

UI_GET_FONT Function

Syntax

OutputString as C = ui_get_font([C title [,C font [,L styles [,L generate_expression [,C tables ]]]]])

Arguments

OutputString

The font name, point size, and style (if selected).

title

Optional. Default = "Select Font". The title of the dialog box.

font

Optional. The initial font selection.

styles

Logical

generate_expression

Logical

tables

Character

Description

Prompt the user for a font. Returns the font name selected. If Styles = .t. then prompts for text style.

Discussion

The UI_GET_FONT() function displays a font and point size selection dialog box with a preview window.

Example

? ui_get_font("Select a Font","Arial")
= "Broadway BT,10"

Limitations

Desktop applications only.

See Also