In article <3131D278.41C6@dmu.ac.uk>, Timothy Eves <se1te@dmu.ac.uk> writes:
>tempest@netins.net wrote:
>> 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?
>
>Hmm.. The generic kind is certainly one way of doing that, but that
>would be diffcult. I'm not sure if you can change the displayed label
>by using SetGTAttr(), I can check. The only other OS legal way of doing
>it is to create a new GT gadget and replace the old one with it,
>remeberimg of course to remove the gadget list from the window before
>you go fiddling with any GadTools gadgets.
>
I did find a way to do this one with button_kind. It should be legal
too since it is mentioend in the RomKernalReference in the gadtools
chapter.
>>
>> Also I was wondering how I could make the Button_kind act like a > boolean type gadget.
>
>No, you most certainly can't, not without risking breaking GadTools
>anyway. The RKMs strictly forbid any poking around in a GadTools
>created gadget, except generic_kind.
>Any why? Thats why there are check box GadTools gadgets, and besides
>that would go against the concistency that gadtools was created to help
>produce.
>
Well this is what my need was.. I had rows of button gadgets.. wanted
to click one and have it stay highlighted to show which one I was
currelntly editing. Like MX_KIND but not with small radio buttons, I
wanted button_kind type gadgets that acted like MX_Kind... Select one,
it stays highlighted, slect a different one in the set and all the rest
are un-highlighed.. etc..
I hope the next workbench adds alot to the gadtools.. there is many options
that are just not there it seems..
I plan to make MUI versions of my programs too but many of my customers
don't like MUI so I must maintain both versions to keep everyone happy. I
think MUI will be alot easier to code options I dream up though.