Solved

A couple of bugs???

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 100
windows 10 how make picture as desktop background 2 62
ShiftLeft challenge 21 82
withoutTen challenge 14 122
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 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