home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!sifon!CC.UMontreal.CA!hachec
- From: hachec@ERE.UMontreal.CA (Hache Christina)
- Newsgroups: comp.sys.amiga.programmer
- Subject: GadTools and a simple boolean gadget.
- Message-ID: <1992Nov23.202948.20652@cc.umontreal.ca>
- Date: 23 Nov 92 20:29:48 GMT
- Sender: news@cc.umontreal.ca (Administration de Cnews)
- Organization: Universite de Montreal
- Lines: 17
-
- I am trying to setup a gadget with some text in it like:
-
- +-----+
- | 100 |
- +-----+
-
- I want it to be boolean. So, when the user clicks on it, the gadget rendering
- goes down and stays down (with a blue inverse). I have it sort of working but
- it acts un-professional. When the user clicks on the gadget, its "selected"
- rendering is drawn, followed by the unselected rendering. At which point my
- code acts on the IDCMP_GADGETUP message which RemoveGadget(), changes the
- GFLG_SELECTED bit and AddGadget() followed by RefreshGadget(). This causes
- an annoying flash. I am using a BUTTON_KIND gadget.
-
- Could someone please give me an idea as to how to do this. What about using
- a GENERIC_KIND gadget (although this looks like a pain and a lot of work to
- setup and use).
-