Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

MenuItem.SetFontName

Sets the font name to use.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Menu 5.1 Yes Yes No No No

MBS( "MenuItem.SetFontName"; item; FontName { ; FontSize } )

(old name: MenuItem.ApplyFont)

Parameters

Parameter Description Example value
item The reference to the menu item. Please create one with MenuItem.CreateMenuItem or MenuItem.CreateSeparator. $item
FontName The font name to use. "Arial"
FontSize Optional
The font size to use. Use 0 for default system font size.
9

Result

Returns OK or error.

Description

Sets the font name to use.
Leave empty for system font.

Examples

Create a menu entry with specific font:

Set Variable [$item; Value:MBS("MenuItem.CreateMenuItem"; "With Comic Sans Font")]
Set Variable [$r; Value:MBS("MenuItem.SetFontName"; $item; "Comic Sans MS"; 13)]
Set Variable [$r; Value:MBS("Menu.AddItem"; $menu; $item)]

See also


MenuItem.SetFontColor   -   MenuItem.SetFontSize

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins