TRANSPARENT TextGadget Flag...

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by LJ.

TextGadget(#Gadget, x, y, Width, Heigth, Text$ [, Flags])


#PB_Text_BKCOLOR: The text background color (R,G,B)
#PB_Text_COLOR: The text color (R,G,B)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tinman.
Originally posted by LJ

#PB_Text_BKCOLOR: The text background color (R,G,B)
#PB_Text_COLOR: The text color (R,G,B)
How do you propose you store the RGB values in the flags?

--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.62, external editor)
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by LJ.



TextGadget(#Gadget, x, y, Width, Heigth, Text$ [, Flags])
#PB_Text_BKCOLOR: The text background color (R,G,B)
#PB_Text_COLOR: The text color (R,G,B)

COLOR = RGB(Red, Green, Blue)
TextGadget(#Gadget, x, y, Width, Heigth, Text$, #PB_Text_BKCOLOR(COLOR))
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

AFAIK Constants cannot dynamically take parameters
for such a fuction i bellieve it would be better for a
commmand in the form of SetGadgetColor(#gadget,Color,BAck/FrontColor)

(like someone has post a custom way to do it some time ago)

Christos
Post Reply