zenpoy
20th April 2011 17:36 UTC
icon for radiobutton control
Hi,
I'm trying to put an icon for a radiobutton control - between the button and the text. So what I tried was to enter a few spaces at the beginning of the text and add an icon. The problem is that the icon is behind the button and the text. How can I resolve this?
Thanks,
Jonathan
Afrow UK
20th April 2011 22:56 UTC
Problem with standard radio buttons is you can't set a transparent background (you can try though; it may work on Vista/7 but not on XP). You will have to use a static text instead next to the radio button (and give it an onClick event to check the radio button).
Stu
zenpoy
21st April 2011 18:00 UTC
Thanks! It worked: I used label and put in its user data the handle of the radio and assigned an onClick which invokes a click for the appropriate radio.