
Colouring a ListIconGadget header
- Fangbeast
- PureBasic Protozoa
- Posts: 4789
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
Sparkie, hope you don't mind another question (especially since I haven't sent the loose women yet) but...Where in that callback could I detect which gadget was requesting the draw?
I have two different windows opening and two different gadgets that need two different colours.
Is it the *pnmh\hwndFrom parameter?
something like:
I tried this earlier and got a "Gadget object not initialised"
I have two different windows opening and two different gadgets that need two different colours.
Is it the *pnmh\hwndFrom parameter?
something like:
Code: Select all
IF *pnmh\hwndFrom = #Gadget_listform_names
FillRect_(*pnmcd\hdc, *pnmcd\rc, form\maincolour) (My main gadget)
Else
FillRect_(*pnmcd\hdc, *pnmcd\rc, form\alternatecolour) (MY second gadget on other window
EndIf
Code: Select all
IF *pnmh\hwndFrom = GadgetId(#Gadget_listform_names)
FillRect_(*pnmcd\hdc, *pnmcd\rc, form\maincolour) (My main gadget)
ElseIf *pnmh\hwndFrom = GadgetId(#Gadget_postcodeform_postcodes)
FillRect_(*pnmcd\hdc, *pnmcd\rc, form\alternatecolour) (MY second gadget on other window
EndIf
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
- Fangbeast
- PureBasic Protozoa
- Posts: 4789
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
That's so true netmaestro. Since I have the graphical skills of a legless hyena and I lost my normal avatar (a terminally smelly hopping rabbit) it was time to find a new one.netmaestro wrote:Looks like you got a free avatar there fangs, It's your lucky day!
Now I have to fix my ^@!$%!%$ web page and put it somewhere.
I hate editing web pages!