I wish to add text lines to a ListIconGadget, some of which need to contain the Euro symbol. I though Chr(128) would work, but it does not display correctly. How can I resolve this?
I use PureBasic 3.93 running under Windows ME.
Euro symbol
Euro symbol
Anthony Jordan
Thanks everyone for your help, but nothing you've suggested is working for me.
I've tried altering my ListIconGadget font, for example using:
But whichever font I use (even the inappropriate Symbol font, as above), the ListIconGadget text is totally unchanged each time with the Euro symbol always displaying as a short, fat vertical bar. I've checked that the FontId is non-zero as it should be.
I've tried Chr(128) and AltGr E and AltGr 4 within text strings, but to no avail.
Trond, you say "just hard-coding the € works for me". But did you actually try it out in a ListIconGadget in report mode? This is the context I'm needing to use.
I would welcome any small snippet of PB code generating a ListIconGadget containing text having the Euro symbol within it. Then at least I would have something known to work. Can anyone help me there?
I've tried altering my ListIconGadget font, for example using:
Code: Select all
SetGadgetFont(#MyGadget, LoadFont(#PB_Any,"Symbol",10))
I've tried Chr(128) and AltGr E and AltGr 4 within text strings, but to no avail.
Trond, you say "just hard-coding the € works for me". But did you actually try it out in a ListIconGadget in report mode? This is the context I'm needing to use.
I would welcome any small snippet of PB code generating a ListIconGadget containing text having the Euro symbol within it. Then at least I would have something known to work. Can anyone help me there?
Anthony Jordan
#PB_Any and LoadFont doesn't work here either. Try this...akj wrote:But whichever font I use (even the inappropriate Symbol font, as above), the ListIconGadget text is totally unchanged ...
Code: Select all
SetGadgetFont(#MyGadget, LoadFont(0,"Arial",10))
What goes around comes around.
PB 5.21 LTS (x86) - Windows 8.1
PB 5.21 LTS (x86) - Windows 8.1