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