Page 1 of 1

making checkboxes and radio buttons bigger

Posted: Wed Jul 23, 2014 3:26 pm
by benghere
Is there any way to make the native checkbox and radio buttons bigger ? When they get onto a phone screen they are really tiny and I need them bigger for people with disabilities.
Thanks
Ben

Re: making checkboxes and radio buttons bigger

Posted: Wed Jul 23, 2014 4:05 pm
by jmburnod
Hi Ben,
Is there any way to make the native checkbox and radio buttons bigger ?
Yes, You can have a checkbox or radiobutton with the dimension as you want.

I do that like this:
1. Build an group as icon
2. Import snapshot of this group for the icon image
3.Change the look of group for hiliteicon
4.Import snapshot this group for the hiliteicon
5. Create a new button type checkbox or radiobutton
6.Define the icon and hiliteicon of the new btn

Best regards
Jean-Marc

Re: making checkboxes and radio buttons bigger

Posted: Wed Jul 23, 2014 8:02 pm
by benghere
Thank you Jea-Marc. I am not sure how to create a new button type but I will try to search and let you know.

Re: making checkboxes and radio buttons bigger

Posted: Wed Jul 23, 2014 8:55 pm
by dunbarx
Hi.

Jean-Marc did not mean to create a new button class, merely to create a new radio or checkbox button. All the other gadgetry he mentioned will fill that new button, resized as you need.

The reason for all this is that the these two buttons styles can be larger, in other words, their rect can be larger, but the "working" part stays the same size. You have to assemble a composite group of controls to do what you ask.

Craig Newman

Re: making checkboxes and radio buttons bigger

Posted: Thu Jul 24, 2014 2:02 am
by Simon
Here you go:
checkbox.png
checkbox.png (927 Bytes) Viewed 10303 times
checkbox_empty.png
checkbox_empty.png (1.01 KiB) Viewed 10303 times
Just take your radio or checkbox buttons and set their icons to those 2 images.
empty to icon
checkbox to highlite
resize the button to fit :)

Simon

Re: making checkboxes and radio buttons bigger

Posted: Sat Jul 26, 2014 5:33 am
by benghere
Thank you. Appreciate the answers.

Re: making checkboxes and radio buttons bigger

Posted: Thu Jul 21, 2016 9:26 pm
by DavJans
This is great, but I ran into a snag while trying to use this.

if the check box is disabled (locked so that it cant be changed) It only shows "Icon" weather it is hilited or not.

Is there a way to get around this?

Re: making checkboxes and radio buttons bigger

Posted: Fri Jul 22, 2016 10:47 am
by jmburnod
Hi Devjans,
You can use something like that:

Code: Select all

--•• ena/dis control
on enaControl pControlID --,pHilite
   enable control id pControlID
   set the blendlevel of control id pControlID to 0
   -- set hilite to customprop uMyHilite
   set the hilite of control id pControlID to (the uMyHilite of control id pControlID)
end enaControl

on disControl pControlID --,pHilite
   disable control id pControlID
   set the blendlevel of control id pControlID to 50
   -- store hilite of btn into customprop
   set the uMyHilite of control id pControlID to (the hilite of control id pControlID)
   set the hilite of control id pControlID to false
end disControl
Best regards
Jean-Marc

Re: making checkboxes and radio buttons bigger

Posted: Sat Oct 08, 2016 11:07 am
by residuegoring424
jmburnod wrote:Hi Ben,
Is there any way to make the native checkbox and radio buttons bigger ?
Yes, You can have a checkbox or radiobutton with the dimension as you want.

I do that like this:
1. Build an group as icons
2. Import snapshot of this group for the icon image
3.Change the look of group for hiliteicon
4.Import snapshot this group for the hiliteicon
5. Create a new button type checkbox or radiobutton
6.Define the icon and hiliteicon of the new btn

Best regards
Jean-Marc
Thanks, fixed my issue.

Re: making checkboxes and radio buttons bigger

Posted: Sat Oct 08, 2016 12:00 pm
by zaxos
Just in case you want to use custom made checkboxes.

Re: making checkboxes and radio buttons bigger

Posted: Mon Oct 10, 2016 9:55 am
by jad albert
jmburnod wrote:Hi Ben,
Is there any way to make the native checkbox and radio buttons bigger ?
Yes, You can have a checkbox or radiobutton with the dimension as you want.

I do that like this:
1. Build an group as icon
2. Import snapshot of this group for the icon image
3.Change the look of group for hiliteicon
4.Import snapshot this group for the hiliteicon
5. Create a new button type checkbox or radiobutton
6.Define the icon and hiliteicon of the new btn

Best regards
Jean-Marc
I have followed you instructions but i am unable to get it done. Would you please share some alternate way that is easy to do.

Re: making checkboxes and radio buttons bigger

Posted: Mon Oct 10, 2016 10:33 am
by jmburnod
Hi Jad Albert

To cook a btn with hilite you need two images
One for icon and one for hiliteicon.
You can create an image using "import snapshot" from a control
I use group because you can drawing an image with controls (fields, images, grcs).

Please try this (pseudo code)
Create a grc oval "MyGrc01" opaque 48X48, white
Create a grc oval "MyGrc02" opaque 24X24, blue
set the loc of grc "MyGrc02" to the loc of grc "MyGrc01"
select grc "MyGrc01" and grc "MyGrc02"
group (object menu or toolbar)
rename this group to "grMygroup"
set the opaque of group "grMygroup" to false
import snapshot from group "grMygroup"

You created the image which you can use like icon for your btn

set the icon of btn bMyButton to the short id of last image

Same way for the hiliteicon

Best regards
Jean-Marc

Re: making checkboxes and radio buttons bigger

Posted: Fri Oct 14, 2016 10:34 pm
by jad albert
jmburnod wrote:Hi Jad Albert

To cook a btn with hilite you need two images
One for icon and one for hiliteicon.
You can create an image using "import snapshot" from a control
I use group because you can drawing an image with controls (fields, images, grcs).

Please try this (pseudo code)
Create a grc oval "MyGrc01" opaque 48X48, white
Create a grc oval "MyGrc02" opaque 24X24, blue
set the loc of grc "MyGrc02" to the loc of grc "MyGrc01"
select grc "MyGrc01" and grc "MyGrc02"
group (object menu or toolbar)
rename this group to "grMygroup"
set the opaque of group "grMygroup" to false
import snapshot from group "grMygroup"

You created the image which you can use like icon for your btn

set the icon of btn bMyButton to the short id of last image

Same way for the hiliteicon

Best regards
Jean-Marc
Thank you so much!