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