[Done] Color Conversion from old code

You need some new stunning features ? Tell us here.
Klonk
Enthusiast
Enthusiast
Posts: 173
Joined: Tue Jul 13, 2004 2:17 pm

[Done] Color Conversion from old code

Post by Klonk »

Maybe you can just fix the conversion of old code, when addding to form source view:
e.g. pasting

Code: Select all

SetGadgetColor(#Text_39, #PB_Gadget_FrontColor, $FF4F4F)
then switching code/form view twice, results in following code:

Code: Select all

SetGadgetColor(#Text_39, #PB_Gadget_FrontColor,RGB(0,0,79))
Either the Hexnumer should be left alone or changed properly to RGB(255,79,79)
Bye Karl
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: [PB5.11 Bug] Color Conversion from old code

Post by Polo »

Actually there was no code that converted that, luck it didn't crash I would say!
I've added a code to convert the colour which should work properly, well spotted!
Post Reply