Page 1 of 1

[SOLVED] TextGadget - Chr(38) --> &

Posted: Wed Feb 11, 2009 9:32 pm
by BigB0ss

Code: Select all

TextGadget(0,10,10,200,20,"THIS & THAT & NOTHING") ; <-- Gives "THIS  THAT _NOTHING"
Why?

Posted: Wed Feb 11, 2009 10:26 pm
by Kaeru Gaman
the & in gadget's texts on Windows-OS is for marking the Letter for the Shortcut...

try && for a single ampersand...

Posted: Thu Feb 12, 2009 8:18 pm
by BigB0ss
Thank you very much, I really struggled a long time with this one.

Posted: Fri Feb 13, 2009 8:45 am
by gnozal
You could also use :

Code: Select all

TextGadget(0,10,10,200,20,"THIS & THAT & NOTHING", #SS_NOPREFIX)
(windows only).

Posted: Fri Feb 13, 2009 9:51 am
by Michael Vogel
gnozal wrote:You could also use :

Code: Select all

TextGadget(0,10,10,200,20,"THIS & THAT & NOTHING", #SS_NOPREFIX)
(windows only).
Maybe even the PureBasic IDE will use this flag also (let's wait for version 6.0), then you wont see "xx" but the correct "x&x" in the file tab for a loaded file "x&x.pb" :lol: