Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26212

FWH 17.04: BtnBmp: Symbol Fonts as bitmaps

$
0
0
We know the fonts "Segoe MDL2 Assets" on Windows 10, "Segoe UI Symbol" on Windows 8 onwards and "WingDings" on all versions of Windows provide images. Using these fonts in the place of bitmaps on Buttons involves additional programming. You may build and run fwh\samples\uisymbols.prg to view all the images displayed for different characters by Segoe MDL2 Assets, Segoe UI Symbol, WingDings, WingDings 2 and WingDings3. We can use this to pick up the character we need to display the image we want. To use a character as bitmap, simply mention the ASC value of the character as the FILE or RESOURCE while defining BtnBmp or ButtonBmp. Example for Segoe fonts: [code=fw:1p7cvjnu][/code:1p7cvjnu] On Windows 10, the character will be displayed using Segoe MDL2 Assets font. On others, Segoe UI Symbol font is used, if available. If this font also is not available nothing is displayed. WingDing fonts: While specifying the ASC value, please add 0x10000, 0x20000 or 0x30000 to the asc value for WingDings, WingDings 2, WingDings 3 fonts respectively. This added value indicates to the library which font is to be used. WingDing fonts work on all OS from Windows XP onwards. Sample using Segoe Fonts: [code=fw:1p7cvjnu][/code:1p7cvjnu] [url=https://imageshack.com/i/poSwDuerp:1p7cvjnu][img:1p7cvjnu]http://imagizer.imageshack.us/v2/xq90/924/SwDuer.png[/img:1p7cvjnu][/url:1p7cvjnu] Sample using WingDing fonts: [code=fw:1p7cvjnu][/code:1p7cvjnu] [url=https://imageshack.com/i/pn0Vfuj3j:1p7cvjnu][img:1p7cvjnu]http://imagizer.imageshack.us/v2/xq90/923/0Vfuj3.jpg[/img:1p7cvjnu][/url:1p7cvjnu]

Viewing all articles
Browse latest Browse all 26212

Trending Articles