The TGlyphButton class creates a button with a bitmap in addition to text.
Using standard OWLNext glyphs
To use standard OWLNext glyph buttons:
- When linking to static OWLNext libraries, it is needed to include <owl/glyphbtn.rc> in the application resource file.
- When linking to dynamic OWLNext libraries, <owl/glyphbtn.rc> is not needed, as it is already included in OWLNext dlls
This code can handle both cases:
#if !defined(_OWLDLL)
#include <owl/glyphbtn.rc>
#endif
Using custom glyphs
To use custom glyphs for the buttons:
- Add <owl/glyphbtn.rh> to the application resource file.
- Add the glyphs in the resource file: