Thread View: comp.os.ms-windows.programmer.tools
3 messages
3 total messages
Started by Brian S. McCarthy
Tue, 15 Dec 1992 18:25
VB option buttons inside frames?
Author: Brian S. McCarthy
Date: Tue, 15 Dec 1992 18:25
Date: Tue, 15 Dec 1992 18:25
30 lines
1647 bytes
1647 bytes
Hi, I'm writing an application in Visual Basic 1.0. I need to have more than one group of option buttons on the form at the same time. The "Microsoft Visual Basic Programmers' Guide" says, on page 129: "Note If you want to create more than one group of option buttons, you must place some of them inside frames or picture boxes. All the option buttons inside any given frame constitute a separate group, as do all the option buttons inside a picture box. When creating a separate group this way, always draw the frame or picture box first, then draw the option buttons." I followed these instructions exactly. When I try to click on any of the option buttons inside my frames or picture boxes, nothing at all happens. What do I need to do to make two or more separate groups of option buttons work? --------------------------------------- Any opinions expressed here are mine alone, and are not those of my employer or anyone else. Brian McCarthy United Technologies Research Center East Hartford, Connecticut (203)727-7638 bsm@utrc.utc.com ---------------------------------------
Re: VB option buttons inside frames?
Author: Don't Judge a book by your cover
Date: Wed, 16 Dec 1992 16:44
Date: Wed, 16 Dec 1992 16:44
33 lines
2263 bytes
2263 bytes
In article <bsm.5.0@utrcv1.res.utc.com>, bsm@utrcv1.res.utc.com (Brian S. McCarthy) writes... >Hi, > >"Note If you want to create more than one group of option buttons, you >must place some of them inside frames or picture boxes. All the option >buttons inside any given frame constitute a separate group, as do all the >option buttons inside a picture box. When creating a separate group this >way, always draw the frame or picture box first, then draw the option >buttons." The reason is because only one option button may contain a value of '1' at any time. You can overcome this by grouping them in separate areas. Therefore each will have a value of 1 in its own area. >I followed these instructions exactly. When I try to click on any of the >option buttons inside my frames or picture boxes, nothing at all happens. You may not be setting them to 1 to start with. Try clicking on any one and click on anpther. It should now change. Each sub-frame will have its own perception of which option is set. > >What do I need to do to make two or more separate groups of option buttons >work? > +---------------------------------------------------------------------------+ |Jon Machtynger (jonm@ingres.com) | |Ingres Technology Centre. Wharfedale Rd, | |Winnersh, Wokingham. Berks UK. (0734)-496525 | +---------------------------------------------------------------------------+ | Ahhh Brisbane, people actually get paid to work there... in the sun with | | all that fresh air and cheap petrol.... Or so ledgend has it | +---------------------------------------------------------------------------+
Re: VB option buttons inside frames?
Author: Galen Raben
Date: Wed, 16 Dec 1992 16:59
Date: Wed, 16 Dec 1992 16:59
18 lines
1430 bytes
1430 bytes
In comp.os.ms-windows.programmer.tools, bsm@utrcv1.res.utc.com (Brian S. McCarthy) writes: >I'm writing an application in Visual Basic 1.0. I need to have more than >one group of option buttons on the form at the same time. The "Microsoft >Visual Basic Programmers' Guide" says, on page 129: >"Note If you want to create more than one group of option buttons, you >must place some of them inside frames or picture boxes. All the option >buttons inside any given frame constitute a separate group, as do all the [...] >I followed these instructions exactly. When I try to click on any of the >option buttons inside my frames or picture boxes, nothing at all happens. Was this at design-time or run-time? The option buttons don't change in design time. If you are having trouble during run-time you might check the "enabled" property of your option buttons, beyond this I dunno - they've always worked for me (even with no code attached)... - Galen -
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads