Transparent icon in ListIcon when colours are used?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Transparent icon in ListIcon when colours are used?

Post by Fangbeast »

Is there a possibility of having an icon in the ListIconGadget having a transparent background when lndividual line colours are used? At the moment, if I use the pb colour commands, the icon background is white and I'd like to change that if possible.

Thank you.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Transparent icon in ListIcon when colours are used?

Post by PB »

:?: My icons in ListIconGadgets have transparent backgrounds. I just set their
background color to "transparent" in my icon editor before saving them. Is that
what you mean?
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Transparent icon in ListIcon when colours are used?

Post by Fangbeast »

PB wrote::?: My icons in ListIconGadgets have transparent backgrounds. I just set their
background color to "transparent" in my icon editor before saving them. Is that
what you mean?
Not quite. I also save them with transparent backgrounds when editing them.

But, when you use the PB gadget colour commands to colour each line in a ListIconGadget individually (or set all the background the same colour), the icon background is white, not transparent to the colour that you set the line or entire background to.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

That doesn't happen here.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Transparent icon in ListIcon when colours are used?

Post by PB »

I need an example, because I don't know what you mean. :oops:
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Okay, with the differences in screens, cards, desktops etc, I am not surprised this happens. I am running XP in classic mode (I.e. No skinning)

Here is the screen shot. Notice the white border under the list itemicons on the left? I'm using standard PureBasic colouring commands for the gadget and I have verified that the icon background is transparent.


http://www.penguinbyte.com/apps/pbwebst ... screen.PNG
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Post Reply