bgiGetSelectedFontBold

Returns 1 if bold style was selected in the last font dialog, 0 otherwise. Takes no parameters. Returns the value of global variable requestedFontBold.

BGI GUI

Parameters & Returns

Parameters

This function takes no parameters.

Returns

Int

Quick Summary

Returns 1 if bold style was selected in the last font dialog, 0 otherwise. Takes no parameters. Returns the value of global variable requestedFontBold.

Technical Exegesis...

Returns 1 if bold style was selected in the last font dialog, 0 otherwise. Returns the value of global variable requestedFontBold. This value is set by bgiOpenFontDialog() based on LOGFONT.lfWeight (1 if lfWeight >= FW_BOLD, 0 otherwise). Default value is 0.

This function retrieves the bold state from the most recently used font dialog. The requestedFontBold global is updated when bgiOpenFontDialog() completes successfully. Font weight is converted to simple boolean: FW_BOLD or heavier = 1, lighter = 0.

Example

Example.bam
; No example implemented yet