PDA

View Full Version : Checkbox and radio button question


Stephen G.
11-01-2008, 02:38 PM
It seems kinda petty, but I was wondering if there was a way to hide the hotspot that appears around the entire text of a checkbox or radio button when it is clicked during runtime. It just doesn't look very professional.
I am almost considering going back the fake button checkbox (see attached).

RizlaUK
11-01-2008, 02:47 PM
I am almost considering going back the fake button checkbox

lol, me too, im having trouble setting radiobutton states in a dialog

i dont think theres any way to hide it, i would like to hide this box on the slider objects too!

Stephen G.
11-01-2008, 02:54 PM
It seems like the only solution is to do it the old fashion way.

Set your attributes on the checkbox to 13 x 13
Then add a label beside your checkbox.

At least this way it looks more professional.

Dermot
11-01-2008, 02:56 PM
These are Windows controls that behave the same way in most programs. Take a look at the Preferences dialog in AMS.

RizlaUK
11-01-2008, 03:00 PM
yeah, i searched long n hard for a way to disable them in VB6 to no aval, just decided to live with it

Dermot
11-01-2008, 03:02 PM
I don't think there is anything unprofessional about it, it's just meant to indicate which control has the focus. I have been designing software for many years and I never heard anyone complain about it or say my apps were unprofessional because of it. Your fake checkbox button will look a lot less professional on Vista for example because it will not take on the Vista look or behave like other checkboxes in other programs.

Dermot
11-01-2008, 03:06 PM
lol, me too, im having trouble setting radiobutton states in a dialog
What's not working? I tested this before and did not have any problems.

reteset
11-01-2008, 03:20 PM
it is "focus rect"
it appears when an object gets focus which can get focus
it is a standard on Windows OS
it is appears for show to user which object gets focus
it can be removed via subclassing the contol
but it requires more programing effort

Stephen G.
11-01-2008, 03:22 PM
Dermot

Earlier I mentioned a solution for using the NEW AMS 7 checkboxes.
By setting the size to 13 x 13 in attributes and adding a label beside your checkbox. This eliminates the annoying hotspot visible to the user when it is clicked.

Overall it looks more professional, you agree?

By the way, customers don't complain about software not looking professional, just its functionallity. The look of the software determines whether they believe YOU are professional or not. I have worked in marketing for over 2 decades, appearance is very important if you plan on building a business.:o

RizlaUK
11-01-2008, 03:28 PM
What's not working?

i posted an example in suggestions, radiobutton states can not be set on a dialog, in my project im trying to set them from a listbox on select event and its not working, so i made that quick example and it fails from a winbutton as well, plz, check the example, if it works for you im ripping vista out of my machine and putting xp in as i'v had nothing but problems with the dam thing since i got it!

I don't think there is anything unprofessional about it

me either, i just want to set the states!, lol

it can be removed via subclassing the contol
but it requires more programing effort

yes, i found a lot of info saying the same thing, but no code or examples for PB or VB6

Dermot
11-01-2008, 03:33 PM
Dermot

Earlier I mentioned a solution for using the NEW AMS 7 checkboxes.
By setting the size to 13 x 13 in attributes and adding a label beside your checkbox. This eliminates the annoying hotspot visible to the user when it is clicked.

Overall it looks more professional, you agree?

By the way, customers don't complain about software not looking professional, just its functionallity. The look of the software determines whether they believe YOU are professional or not. I have worked in marketing for over 2 decades, appearance is very important if you plan on building a business.:o
When you said the "old fashioned way" I assumed you meant using an AMS button like you said earlier. You are correct, if you use a label you can get rid of it, but then if you want the user to be able to click the label to check or uncheck, you have to write extra code, and they will expect to be able to just click the label because that's how all their other programs work. I still say there is nothing unprofessional about it especially when pretty all software behaves the same. Before IR introduce these new objects in version 7, I always found the fake ones very unprofessional because the behaved differently than in other programs.

Dermot
11-01-2008, 03:42 PM
i posted an example in suggestions, radiobutton states can not be set on a dialog, in my project im trying to set them from a listbox on select event and its not working, so i made that quick example and it fails from a winbutton as well, plz, check the example, if it works for you im ripping vista out of my machine and putting xp in as i'v had nothing but problems with the dam thing since i got it!
There is a problem setting the checked state to true. Setting it to false works fine. There also seems to be a problem using Page.SetRadioValue(). I know this worked fine in earlier testing.

Stephen G.
11-01-2008, 03:44 PM
Dermot

I don't think you understood what I was saying.
I posted a sample project so you could see the difference.

Dermot
11-01-2008, 03:49 PM
I understood perfectly. In your example I can click the label of the first box to check and uncheck it but I can't for the second one. You would have to add code to the label to change the state.

Dermot
11-01-2008, 04:04 PM
Disregard my post about Page.SetRadioValue(). I should have used DialogEx.SetRadioValue() which works fine. I still find myself making that mistake when working with dialogs.