bmx-ng / maxgui.mod

BlitzMax MaxGUI modules port.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProxyGadget - HyperLink - SetFont

degac opened this issue · comments

commented

using SetFont() on a HyperLink gadget results in changing ALL the hyperlinks created (fntDefault is for the Class not for the single object)

Suggested solution:

Field fntDefault:TGuiFont, fntHoverDefault:TGuiFont

in Method Create()

fntDefault = LookupGuiFont( GUIFONT_SYSTEM, 0, 0 )
fntHoverDefault = LookupGuiFont( GUIFONT_SYSTEM, 0, FONT_UNDERLINE )

removing of course any reference to Global vars