home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1555 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: mn5.swip.net!usenet
  2. From: roland.bengtsson@mbox3.swipnet.se (Roland Bengtsson)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: stringgadgets
  5. Date: 20 Jan 1996 20:20:50 GMT
  6. Organization: -
  7. Message-ID: <1610.6593T1254T1564@mbox3.swipnet.se>
  8. NNTP-Posting-Host: dialup103-073.swipnet.se
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  10.  
  11. I have a displayproblem with stringgadgets.
  12.  
  13. I have 2 gadgetslists, 1  is GadTools and 1 is the old Intuition-type.
  14. The reason I use the old type is mainly that I want to get rid of the Gadgetborder.
  15.  
  16. But I have to run 1 redrawing for each gadgetlist.
  17. (there's many gadgets in the list).
  18.  
  19. How do I add the 2 gadgetlists to 1 and then update it?
  20.  
  21. /* updatefunction. Not at all fontsensitive! */
  22.  
  23. void updgads(struct Gadget *gd)
  24. {
  25.     SetAPen(rp,0);
  26.     RectFill(rp, offx, offy, 639 - MywinWnd->BorderRight, 255 - MywinWnd->BorderBottom);
  27.     AddGList(MywinWnd,gd,~0,~0,NULL);
  28.     RefreshWindowFrame(MywinWnd);
  29.     RefreshGList(gd,MywinWnd,NULL,-1);
  30.     GT_RefreshWindow(MywinWnd,NULL);
  31. }
  32.  
  33.  
  34. I tried to do AddGlist on each list but this doesn't work well. It was even slower.
  35. As it is now it looks a bit flashy on a 68000, it's an invoice program that will
  36. run on another Amiga.
  37.  
  38. Any help or hint is very appreciated!
  39.  
  40. -- 
  41.                               \|/
  42. Thor 2.22                     @ @
  43. +--------------------------oOO-(_)-OOo----------+
  44. |Amigaowner  |                                  |
  45. |since 1988  |                                  |
  46. |    _       |Fidonet> 2:203/802.6              |
  47. | _ //       |                                  |
  48. | \X/        |Falkenberg, Westcoast of Sweden   |
  49. |A3000/10MB  |                                  |
  50. |280HD/28.8  |Please write where YOU live!      |
  51. |GVP Spectrum|                                  |
  52. |AFSPro      |Amiga-Programmer in C             |
  53. +------------+----------------------------------+
  54. AMIGA - Multimedia, Preemptive Multitasking
  55. Plug'n'Play since 1985.
  56. PGP-key Available
  57.  
  58. --
  59.  
  60.