Use Radio Buttons Independently of one another
-
Hi I'm busy with an app that interfaces with the Parallel Port. I want to create a graphic sort of display on my form that looks similar to the actual layout of the DB-25 connector. I thought of using Radio Button to either display the input condition, or to toggle the condition of the outputs (Data Pins) Is there a way to make these buttons independent of each other (i.e. so that clicking one of them does not turn the others off) I though I may be able able to use something like e.handled in the 'Click Event', to prevent the others from tuning off when I click one of them, but no such luck. Basically I want to be able to set or clear any combination of these buttons for the output pins, and also control the appearance of them depending on the port's input conditions. Any other way I can do this? I could use panels, and toggle the pin and the color when clicked, but don't like the rectangles.
-
Hi I'm busy with an app that interfaces with the Parallel Port. I want to create a graphic sort of display on my form that looks similar to the actual layout of the DB-25 connector. I thought of using Radio Button to either display the input condition, or to toggle the condition of the outputs (Data Pins) Is there a way to make these buttons independent of each other (i.e. so that clicking one of them does not turn the others off) I though I may be able able to use something like e.handled in the 'Click Event', to prevent the others from tuning off when I click one of them, but no such luck. Basically I want to be able to set or clear any combination of these buttons for the output pins, and also control the appearance of them depending on the port's input conditions. Any other way I can do this? I could use panels, and toggle the pin and the color when clicked, but don't like the rectangles.
RadioButtons work together, unless you put them in different Containers; keeping them apart is the primary purpose of the GroupBox. :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
RadioButtons work together, unless you put them in different Containers; keeping them apart is the primary purpose of the GroupBox. :)
Luc Pattyn [My Articles] [Forum Guidelines]
Hi Yep I get that, what I'm asking is: If I can do something to make them independent OR What else can I use that will look SIMILAR...
-
Hi Yep I get that, what I'm asking is: If I can do something to make them independent OR What else can I use that will look SIMILAR...
if you have two radiobuttons rb1 and rb2 both on panel0, you could create two more panels (panel1 and panel2), put rb1 on panel1, put rb2 on panel2, put both panel1 and panel2 on panel0, and arrange it such that it looks exactly as before. rb1 and rb2 now should word independently (you better have more RadioButtons then!) :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
if you have two radiobuttons rb1 and rb2 both on panel0, you could create two more panels (panel1 and panel2), put rb1 on panel1, put rb2 on panel2, put both panel1 and panel2 on panel0, and arrange it such that it looks exactly as before. rb1 and rb2 now should word independently (you better have more RadioButtons then!) :)
Luc Pattyn [My Articles] [Forum Guidelines]
Hi Luc That makes them independent... But you cannot toggle them anymore since there is now only one. Basically I want it to LOOK like a Radio Button, and FUNCTION like a check box
-
Hi Luc That makes them independent... But you cannot toggle them anymore since there is now only one. Basically I want it to LOOK like a Radio Button, and FUNCTION like a check box
Set AutoCheck to false and implement a click handler to toggle the checked status.
I'm largely language agnostic
After a while they all bug me :doh:
-
Hi I'm busy with an app that interfaces with the Parallel Port. I want to create a graphic sort of display on my form that looks similar to the actual layout of the DB-25 connector. I thought of using Radio Button to either display the input condition, or to toggle the condition of the outputs (Data Pins) Is there a way to make these buttons independent of each other (i.e. so that clicking one of them does not turn the others off) I though I may be able able to use something like e.handled in the 'Click Event', to prevent the others from tuning off when I click one of them, but no such luck. Basically I want to be able to set or clear any combination of these buttons for the output pins, and also control the appearance of them depending on the port's input conditions. Any other way I can do this? I could use panels, and toggle the pin and the color when clicked, but don't like the rectangles.
-
It's generally a bad idea to make an interface look like it should work in one way, and make it actually work in a completely different way. You can for example use images to show the status.
--- single minded; short sighted; long gone;
I agree; conventions exist for a reason.
Luc Pattyn [My Articles] [Forum Guidelines]
-
It's generally a bad idea to make an interface look like it should work in one way, and make it actually work in a completely different way. You can for example use images to show the status.
--- single minded; short sighted; long gone;
I too agree
Regards, Satips.:rose: Don't walk in front of me, I may not follow; Don't walk behind me, I may not lead; Walk beside me, and just be my friend. - Albert Camus
-
It's generally a bad idea to make an interface look like it should work in one way, and make it actually work in a completely different way. You can for example use images to show the status.
--- single minded; short sighted; long gone;
-
It's generally a bad idea to make an interface look like it should work in one way, and make it actually work in a completely different way. You can for example use images to show the status.
--- single minded; short sighted; long gone;
Hi Ok Point taken, but I tried using little square panels and it just looks like scrap. That is the ONLY reason I wanted to use something like a radio button - I want something that looks NICE, and also looks like the pins on the connector that I can arrange in the same way as the DB-25 connector for the parallel port. As far as functionality, all I need is to be able to set the pin when the object is clicked, and I need to be able to toggle the colour to indicate the logic state of the pin I guess even 'circular panels' would be ok.
-
Set AutoCheck to false and implement a click handler to toggle the checked status.
I'm largely language agnostic
After a while they all bug me :doh:
Thank You SOOOOO Much!!!!!!! Everyone has offered lots of reasons why not to use Radio buttons, but no solution. AutoCheck to false does exactly what I want it to do Thanks again
-
Hi Ok Point taken, but I tried using little square panels and it just looks like scrap. That is the ONLY reason I wanted to use something like a radio button - I want something that looks NICE, and also looks like the pins on the connector that I can arrange in the same way as the DB-25 connector for the parallel port. As far as functionality, all I need is to be able to set the pin when the object is clicked, and I need to be able to toggle the colour to indicate the logic state of the pin I guess even 'circular panels' would be ok.
have you tried developing your own checkbox that overrieds the paint event and replaces it with your circular functionality, i think that's what you need to do.
Posted by The ANZAC : "WWBD, What Would Buffy Do?" : "I don't know man, she's stronger than me"