ce4LessUser
asked on
Large Radio Buttons
I have a site where people take tests, answering questions by clicking on the button.
Does anyone know of a control that will display larger (much larger) radio buttons or squares (checkboxes that behave like radio buttons)?
I'd be most happy with a .NET control solution but would also be ineterested in a jQuery or Ajax solution.
We occasionally get complaints from customers that it's hard to click on the buttons and I personally am starting to have difficulty clicking on them sometimes.
Does anyone know of a control that will display larger (much larger) radio buttons or squares (checkboxes that behave like radio buttons)?
I'd be most happy with a .NET control solution but would also be ineterested in a jQuery or Ajax solution.
We occasionally get complaints from customers that it's hard to click on the buttons and I personally am starting to have difficulty clicking on them sometimes.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello, ce4LessUser,
Please see the following snippet for an idea. For scale factors s other than 2, you will need to adjust the size of the TranslateTransform.
Cheers,
Randy
Please see the following snippet for an idea. For scale factors s other than 2, you will need to adjust the size of the TranslateTransform.
Cheers,
Randy
Public Class LargeRadioButton
Inherits RadioButton
Protected Overrides Sub onpaint(ByVal pevent As System.Windows.Forms.PaintEventArgs)
Dim sngScale As Single = 2.0
pevent.Graphics.Clear(Me.BackColor)
pevent.Graphics.TranslateTransform(0, -CSng(Me.Height / 2))
pevent.Graphics.ScaleTransform(sngScale, sngScale)
MyBase.OnPaint(pevent)
End Sub
Public Overrides Property AutoSize() As Boolean
Get
Return False
End Get
Set(ByVal value As Boolean)
MyBase.AutoSize = False
End Set
End Property
Public Sub New()
MyBase.New()
Me.UseCompatibleTextRendering = True
End Sub
End Class
ASKER
This was a good solution. I wanted the buttons to get bigger but this is good too.
ASKER
Any ideas?