Solved

A couple of bugs???

Posted on 2002-04-25
5
158 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro to save highlighted rows as a separate file 5 46
viewing source code from eclipse 13 110
format the code in java 6 109
how to split multiple lines delimiter : 8 119
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 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