home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13304 < prev    next >
Encoding:
Text File  |  1992-09-12  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!munnari.oz.au!metro!extro.ucc.su.OZ.AU!willw
  3. From: willw@extro.ucc.su.OZ.AU (William Waring)
  4. Subject: Re: Refreshing GADTools LISTVIEW
  5. Message-ID: <1992Sep13.045302.16373@ucc.su.OZ.AU>
  6. Keywords: gadtools
  7. Sender: news@ucc.su.OZ.AU
  8. Nntp-Posting-Host: extro.ucc.su.oz.au
  9. Organization: /etc/organization
  10. References: <1992Sep12.095834.17057@DIALix.oz.au>
  11. Date: Sun, 13 Sep 1992 04:53:02 GMT
  12. Lines: 23
  13.  
  14. You call the gadtools.library function GT_RefreshWindow() with two arguments
  15. 1. A pointer to the window to refresh (struct Window *)
  16. 2. A NULL. The second field is not used yet (I think it's a pointer to a 
  17.    requester structure).
  18.  
  19. That will re-draw the borders of your Listview.
  20.  
  21. If you mean to refresh the actual text in a listview, You must detach your
  22. linked list from the listview first by calling
  23. GT_SetGadgetAttrs(Pointer-to-listview-gadget,Pointer-to-window,NULL,GTLV_Labels
  24.           ,~0,TAG_DONE);
  25. then modify the list, then re-attach it to the listview by calling
  26. GT_SetGadgetAttrs(Pointer-to-listview-gadget,Pointer-to-window,NULL,GTLV_Labels
  27.           ,Pointer-to-list,TAG_DONE);
  28.  
  29.  
  30.  
  31.  
  32. -- 
  33. --
  34. Well I guess I'd better say something witty...
  35. --
  36. Anyone can hold the helm when the sea is calm.
  37.