:: Forum >> Version 2 >>

How do I make a stateful button and group of stateful radio buttons?

Hi,

I was trying to figure out how to make a stateful button, that fixes its DOWN or UP state. is it built-in or I need to modify your classes?

Also that would be nice to have a group of those buttons acting like a group of radio buttons.

thanks,
andrew.
Andrew
Monday, December 19, 2005
anyone knows how to do this ?
Andrew
Monday, December 19, 2005
Sounds like you just want normal radio buttons. examples/new/controls.html has an example.
LostInSpace
Monday, December 19, 2005
Andrew,

the existing checkbox and radio templates are essentially the same generic toggle template with different styles applied. I guess it is possible to make just another style which will look and behave like a toggle (stateful) button.

I suggest you look at the current button and checkbox controls in Firefox DOM Inspector - you will see the internal elements and CSS classes attached to them. After that making toggle button style might be not that difficult.
Alex (ActiveWidgets)
Monday, December 19, 2005
Radio buttons might work for him but I think that in his app buttons might actually 'look' better. I know what it is he is looking for but have not yet tried to create on in AW. Created many in Delphi, but I don't think that's going to help :) If I create one for my application I'll post the code here.
Jim Hunter
Monday, December 19, 2005
yes, those are basically for the left-hand menu. I will have three buttons that have to stay pressed when user presses them and bring up different panels with some content on the right. Pretty much the same way TABS control content, but the only differense is that those buttons are located in other place and look completely different.

I will try to look into radio buttons template, but it looks like there must be done a lot of changes to make it work like I want.

anyway, thanks for help :)
Andrew
Monday, December 19, 2005
Any luck with this. I would also like to do exactly what you are asking about.
Bob
Sunday, January 1, 2006



This topic is archived.

Back to support forum

Forum search