Blitz (87/144)

From:David McMinn
Date:22 May 2001 at 11:57:59
Subject:Re: gadgets

Hi amorel

> Is there a way to make a gadtools button pressed continuously. Thus if you
> press it it stays pressed("blue") until you press it again, where it becomes
> normal("grey") again.

Yes, you just need to set the correct flag in the gadget structure after
you have created it. Oh, and you'll need to use pointers :). I think you
need to do this:

GTButton ....
*g.Gadget = GTGadPtr(...)
*g\Activation = *g\Activation | #GACT_TOGGLESELECT

You might also need to set the gadget to be immediate (you can set that
with a flag in the GTButton command).



|) /\ \/ ][ |) |\/| c |\/| ][ |\| |\| | dave@blitz-2000.co.uk
http://members.nbci.com/david_mcminn | ICQ=16827694
Tom...you're a dick!
- Soap, Lock Stock & 2 Smoking Barrels

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie