home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / tools / 1717 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  2.2 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!staff.tc.umn.edu!kimmel
  2. From: kimmel@staff.tc.umn.edu (Eric Kimmel)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Re: Borland's RESource manager
  5. Message-ID: <1992Dec16.045716.29318@news2.cis.umn.edu>
  6. Date: 16 Dec 92 04:57:16 GMT
  7. References: <Bz7woH.M49@news.cso.uiuc.edu>
  8. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  9. Organization: University of Minnesota
  10. Lines: 32
  11. Nntp-Posting-Host: staff.tc.umn.edu
  12.  
  13. In article <Bz7woH.M49@news.cso.uiuc.edu> duff@cs.uiuc.edu writes:
  14. >I began making my first .RES file using the Toolkit last night, and I
  15. >finished the "pretty" part of making it, but I'm having trouble understanding
  16. >how to make one set of Radio buttons allow the user to ONLY choose ONE
  17. >of five buttons.  What I mean to say is, I have five buttons, GROUPED,
  18. >and I want the user to be able to choose one of them and have ONLY that one
  19. >highlighted.  Do I have to do that from my calling program, or
  20. >can I set that up in the .RES ?
  21. >
  22. >Also, I have another set of radio buttons that I want to be able to
  23. >have the user choose any or ALL of them, depending on preferences.
  24. >The same question applies to this: can I do this in .res or in my .cpp?
  25. >
  26. >Thanks for the help, and don't splat me because I don't know what I'm doing.
  27. >
  28. I could never get it to work right either.  What I do is to edit the 
  29. resource as text and put all the radio buttons on consecutive lines and
  30. then put some other resource after that (like a CTEXT).  The effectively
  31. groups your radio buttons (make sure they are all set to be auto-radio
  32. buttons as well).  If you have more than one group of them, just make sure
  33. you have a non-radio button resource inbetween the groups.
  34.  
  35. This is probably not the most elegant way of doing it, but it works...
  36.  
  37. -Rick
  38. >
  39. >-------------------------------------------------------------------------------
  40. >| Michael Duff                | "Thank you for bringing up such a painful     | 
  41. >| ACM membership coord.       |  subject.  While you're at it, why don't you  |
  42. >| U. of Illinois- U/Champaign |  give me a nice paper cut and pour lemon      |
  43. >| duff@cs.uiuc.edu            |  juice on it."        - Miracle Max           |
  44. >-------------------------------------------------------------------------------
  45.