home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15878 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.5 KB

  1. Path: sparky!uunet!destroyer!cs.ubc.ca!unixg.ubc.ca!unixg.ubc.ca!haley
  2. From: haley@unixg.ubc.ca (Ross MacGregor)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: How should I reset a TOGGLESELECT gadget?
  5. Date: 15 Nov 92 23:18:16 GMT
  6. Organization: The University of British Columbia
  7. Lines: 24
  8. Message-ID: <haley.721869496@unixg.ubc.ca>
  9. NNTP-Posting-Host: unixg.ubc.ca
  10.  
  11. I'm trying to find the proper way change the state of a TOGGLESELECT 
  12. gadget.  The intuition header file seems to indicated that the
  13. SELECTED flag is read only (can be set only during initialization). 
  14. Is this true? 
  15.  
  16. I have an application that conatains 10 push buttons that will change
  17. each time the user selects a different item.  This will happen frequently
  18. so I don't want to have to remove all the gadgets and add them back again
  19. each time.  
  20.  
  21. But, I guess I'll have to.  Writing to a structure once given to the OS
  22. should be a no-no, now that think about it.  I don't think this is 
  23. stressed enough in documentation, I was playing with gadgets for a
  24. while until I found out you have to remove a gadget before you can change
  25. the gadget text.
  26.  
  27. -- 
  28. Ross MacGregor          | "NT delivers on the promise of preemptive multi- 
  29. haley@unixg.ubc.ca      |  tasking: The user can preempt the system."
  30.                         |    -Jon Udell (BYTE senior tech editor)  :^) 
  31. -- 
  32. Ross MacGregor          | "NT delivers on the promise of preemptive multi- 
  33. haley@unixg.ubc.ca      |  tasking: The user can preempt the system."
  34.                         |    -Jon Udell (BYTE senior tech editor)  :^) 
  35.