home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!beachyhd.demon.co.uk
- From: Adam@beachyhd.demon.co.uk
- Newsgroups: comp.sys.amiga.programmer
- Subject: Refreshing MX gadgets
- Date: 08 Apr 96 17:33:54 GMT
- Organization: Beachy Head - UK
- Message-ID: <3169a262@beachyhd.demon.co.uk>
- X-NNTP-Posting-Host: beachyhd.demon.co.uk
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-GateSoftware: AmiGate 1.6 (13.11.95)
- MMDF-Warning: Parse error in original version of preceding line at relay-2.mail.demon.net
- X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!beachyhd.demon.co.uk
-
- 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.
-
- Can /anyone/ help me to get this to work?
-
- Thanks!
-
-
- #include <stdio.h>/*Adam Dawes,ad32@brighton.ac.uk,Adam Dawes@2:441/93.5*/
- int main(){char d[]="DEICEHIBEAHAJBJBJAJIAEFFHAHJAHJAHJHJIECHAHKGHFGHCGII"
- ,s[]=" /-)| \\_",*p=d,c;s[5]=10;while (*p){c=*p++^=64;if(c<5)for(;c>0;c--)
- putchar(*s);else putchar(*(s+c-4));}return(0);}/*C sig by Adam Dawes '95*/
-
-