home *** CD-ROM | disk | FTP | other *** search
- Path: mn5.swip.net!news
- From: dan.eriksson@vxjkatedral.se (Peter Liljenberg)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Refreshing MX gadgets
- Date: 16 Apr 1996 07:43:41 GMT
- Organization: VΣxj÷ Katedralskola
- Message-ID: <4kvj3d$8r9@mn5.swip.net>
- References: <3169a262@beachyhd.demon.co.uk>
- Reply-To: dan.eriksson@vxjkatedral.se (Peter Liljenberg)
- NNTP-Posting-Host: tty17-53.swipnet.se
- X-Newsreader: WinVN 0.92.2
-
- In article <3169a262@beachyhd.demon.co.uk>, Adam@beachyhd.demon.co.uk says:
- >
- >Hi all,
- >
- >I'm having a few problems with MX type GadTools gadgets.
- >
- >I have two MX gadgets, the second of which must contain different items
- >depending upon which item is selected in the first. When the first item is
- >changed, the list of items in the second is to immediately update to show the
- >items that are now available for it.
- >
- >Now I understand that it's not possible to change the labels for the MX gadget
- >once it has been created, so instead I'm removing the entire gadget list for
- >the window and recreating it with the new labels. This works, *BUT* I can't get
- >it to redraw the changed MX gadget. The imagery stays exactly as it was. If I
- >click on one of the radio buttons, the text for that button will update (and
- >the radio button will appear if it wasn't already visible). But how can I make
- >this happen automatically?
- >
- >I've tried calling GT_RefreshWindow() after recreating the gadgets, and that
- >doesn't work. I've tried calling RefreshGList() (telling it to update only 1
- >gadget, that being my MX gadget -- I assume this doesn't work because GadTools
- >gadgets consist of a number of intuition gadgets?). None of this seems to work.
-
- You must first EraseRect() the window (if you erase the whole window you must use
- RefreshWindowFrame() (sp?)), then RefreshGList() and finally GT_RefreshWindow().
-
- Peter Liljenberg
-