bgiOpenFontDialog

Category: BGI GUI

Syntax:

bgiOpenFontDialog:String(window:Int)


Parameters

Returns

String



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.

View detailed documentation online



Example

;No example implemented yet



On the Web

Returns at once, because a browser can't wait for an answer. The answer arrives as an event: BGI_EVENT_COMMAND_CLICK with ID BGI_EVENT_ID_FONTDIALOG ($117), source = the window, bgiGetEventData() = 1 for OK or 0 for Cancel, bgiGetEventExtra() = "Face,Size". The bgiGetSelectedFont* functions hold the choice. See BGI on the web.


BambooBasic © 2026 Michael Denathorn