home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 16260 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.1 KB

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