home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4337 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: sourcery.han.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <0099E783.C4ED2DAC@netins.net>
  4. From: "Olaf Barthel" <olsen@sourcery.han.de>
  5. Date: Tue, 27 Feb 1996 11:41:40 +0100
  6. X-NewsReader: IntuiNews 1.3a (7.9.95)
  7. Subject: Re: GadTools Question.
  8. Message-ID: <13213669@sourcery.han.de>
  9.  
  10. In Article <0099E783.C4ED2DAC@netins.net>, tempest <tempest@netins.net> wrote:
  11. >
  12. > I have a question.. using gadtools button_kind gadget.
  13. >
  14. > How can one go about Updating the text inside the gadget after the window
  15. > and gadget are open.  I have some definable gadgets and I want to be
  16. > able to display the new gadget text on the button without having to open
  17. > the window over again.  How can I just update it?  Maybe using gerneric_kind?
  18. > instead.. Please if someone could tell me how to do this.
  19.  
  20.    If you really want to use BUTTON_KIND, you need to remove the entire
  21. gadget list, dispose of it and rebuild it with the new label in place.
  22. The alternative is to create a GENERIC_KIND gadget and a custom BOOPSI
  23. image class to supply the button imagery and the label. With this solution
  24. you are free to change the label after the gadget has been added.
  25.  
  26. > Also I was wondering how I could make the Button_kind act like a boolean
  27. > type gadget.  Click it once and it  stays highlighted to show it is on,
  28. > click it again and it is no longer highlighted..
  29.  
  30.    Such a type of button was not defined in the Amiga user interface specs.
  31. It has no defined meaning. If you want a button which visible changes its
  32. state use a CYCLE_KIND or CHECKBOX_KIND object.
  33.  
  34. --
  35. Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
  36.  Net: olsen@sourcery.han.de
  37.