Solved

A couple of bugs???

Posted on 2002-04-25
5
135 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sumNumber challenge 16 109
java ^ examples 8 62
zeroMAx challenge 20 86
My project did see openJDK that I installed. What could be the problem 7 120
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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

12 Experts available now in Live!

Get 1:1 Help Now