Solved

A couple of bugs???

Posted on 2002-04-25
5
127 Views
Last Modified: 2013-11-20
1. Why a radio button cannot have a member variable associated with it?
2. Why does "border" property on a static label control make it look just like "sunken" propery, only deeper?
0
Comment
Question by:Lescha
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:mblat
ID: 6969011
1. Because of the intended purpose of radio buttons.  They are intended to be used in groups. (more that one).  So you can assign variable to group of radio buttons.
   If you need something that can be turned on/off - that is job for check boxes.

2.  Honestly - no idea.  May be again - that was intended to be that way?
0
 
LVL 1

Author Comment

by:Lescha
ID: 6969551
1. How do I do that? Assign one variable to an array of radio buttons, that is?

2. I don't think so... Let's wait for someone to step with another idea, okay?
0
 
LVL 4

Accepted Solution

by:
mblat earned 50 total points
ID: 6969639
To assign var. to array of radio buttons:

Buttons have to be in sequencial tab order.
First button needs to have "Group" property set.

Then when you go to class wizard "Add variable tab" it's show up there and you create var. for it.  Var. will indicate id of selected radio button in this group.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6970016
>>2. Why does "border" property on a static label control
>>  make it look just like "sunken" propery, only deeper?

It was intended to look that way.  The 'Border' used to be just a black rectangle drawn on the then-standard white dialog background.  Then with Ctl3d, and eventually the 'Win-95 3D look' MS had the idea of making these old settings (such as border) have some sexy look in the context of a dialog box that has a grey background.  Then when geay backgrounds became the norm, the 'Sunken' bit was added because it had a meaning.

-- Dan
0
 
LVL 1

Author Comment

by:Lescha
ID: 6970681
Thank you both - and thanks Dan for the history insight! (Not being cynical - it really was interesting!)

I accepted mblat's answer because it explained something I really needed to know - something that is simple in VB and Borland, but not VC.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now