bgiOpenFontDialog

Displays a Windows Font Selection dialog and returns selected font as name,size string. Takes window (Int). Returns "name,size" string on success, empty string if user cancels or window not found.

BGI GUI

Parameters & Returns

Parameters

window Int

Returns

String

Quick Summary

Displays a Windows Font Selection dialog and returns selected font as name,size string. Takes window (Int). Returns "name,size" string on success, empty string if user cancels or window not found.

Technical Exegesis...

Displays a Windows Font Selection dialog and returns selected font as name,size string. Searches gizmoMap for window ID to get parent HWND. Creates LOGFONT structure initialized with current requestedFont* globals (name, size, bold, italic, underline, strikeout). Creates CHOOSEFONT structure with CF_SCREENFONTS | CF_EFFECTS | CF_INITTOLOGFONTSTRUCT flags, sets initial color from requestedRed/Green/Blue. Calls ChooseFont() to show dialog.

Example

Example.bam
; No example implemented yet