formZ SDK | 5.0 API Reference | System | Runtime Library (FZRT) | User Interface

# fzrt_menu_create_font_menu

Description

This will create a new menu that is filled with the names of fonts installed on the . If a valid font name is passed in the default_font parameter, the menu_sel result parameter will contain the menu index of that font.

Plugin Prototype

fzrt_error_td fzrt_menu_create_font_menu(

fzrt_menu_ptr * | menu,
char * | default_font,
short * | menu_sel )

Parameters

menu [Result]

pointer to menu pointer, receives newly create menu

default_font [Input, Optional]

pointer to c string that has default font name

menu_sel [Result, Optional]

pointer to short in that has menu index of default font name

Returns

FZRT_NOERR if successful, error ID otherwise.

Availability

5.0.0.0

Function Set

fz_fzrt_ui_fset

Defined in

fzrt_api.h