Page 2 of 2
Posted: Mon Nov 06, 2006 6:44 pm
by Sparkie
Thanks Fangles, but you can send mine to srod. I can take 'em used but
loose........hmmmm.....I don't think so

Posted: Tue Nov 07, 2006 8:07 am
by Fangbeast
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:
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
I tried this earlier and got a "Gadget object not initialised"
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
Posted: Tue Nov 07, 2006 2:23 pm
by Sparkie
*pnmh\hwndFrom in this case refers the handle of the individual header control for each ListIconGadget. Using
GetParent_(*pnmh\hwndFrom) should point you to the handle/GadgetID() of each ListIconGadget.

Posted: Tue Nov 07, 2006 2:35 pm
by srod
Sorry fangs, my original post left out the GetParent_() etc. My fault!

Posted: Wed Nov 08, 2006 12:40 am
by Fangbeast
Is there any downside to an apprentice asking too many questions of resident wizards? Do I get turned into a frog or a hamster's ear or something worse?
Seriously, you blokes are excellent, thanks for all that help.
/me runs out of the batcave to try some code.
Posted: Wed Nov 08, 2006 3:22 am
by Sparkie
Fangles wrote:Do I get turned into a frog or a hamster's ear or something worse?
How does "BatAss Fangles" sound.

Posted: Wed Nov 08, 2006 4:19 am
by Fangbeast
Sparkie wrote:Fangles wrote:Do I get turned into a frog or a hamster's ear or something worse?
How does "BatAss Fangles" sound. :lol: :P

Oh my aching jaws, i'm laughing too hard to type straight almost and my eyes are wet..
Posted: Wed Nov 08, 2006 4:27 am
by Sparkie
Good...then my day is complete and I can now go to BatSleep.

Posted: Wed Nov 08, 2006 4:48 am
by netmaestro
Looks like you got a free avatar there fangs, It's your lucky day!
Posted: Wed Nov 08, 2006 5:41 am
by Fangbeast
netmaestro wrote:Looks like you got a free avatar there fangs, It's your lucky day!
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.
Now I have to fix my ^@!$%!%$ web page and put it somewhere.
I hate editing web pages!
Posted: Wed Nov 08, 2006 7:38 am
by Dare
Awesome!
Posted: Wed Nov 08, 2006 7:47 am
by Fangbeast
Dare wrote::lol:
Awesome!
The resemblance to me is unbelievable. If I didn't know better, I'd think Sparkie was stalking me to design that picture.