Can I alter the size of a radio Button

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dazza the stag
Posts: 44
Joined: Sat May 17, 2014 1:48 pm

Can I alter the size of a radio Button

Post by dazza the stag » Tue Jun 03, 2014 7:31 pm

When I try and enlarge a Radio Button it simply enlarges the box around the button rather than the button itself. Is there another way to do it or are they a fixed size ? As they are really tiny at the standard size on an iPhone

Dazza

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Can I alter the size of a radio Button

Post by Klaus » Tue Jun 03, 2014 7:44 pm

Hi Dazza,

no you can't enlarge the build-in raido buttons.
But you can use custom icons!

Create 2 images, one for each "state" of the radiobutton
and set the buttons icon property to the image ids.

Works and looks great :D


Best

Klaus

dazza the stag
Posts: 44
Joined: Sat May 17, 2014 1:48 pm

Re: Can I alter the size of a radio Button

Post by dazza the stag » Tue Jun 03, 2014 10:29 pm

Thanks Klaus

Im nearly there - created two png files and imported them onto a card, resized them to the same size as the button and then gone to the icons and buttons menu to add the two images to the button. All looks good - I seem to be missing one last step in that when I copy the button ( which I should be able to do looking at another forum thread ) and I go to a different card where I want to place the button, when I paste it all i get is a square ( The button should be round - red and green for on and off. Even when i go back to the card where I resized the two original png files the two png images have returned to their original size, which is bigger than my button and hence why it then just looks like a coloured square.

There must be something I need to do after resizing the png files to stop them returning to their original sizes when i move off the card - what am i missing ?

Dazza

dazza the stag
Posts: 44
Joined: Sat May 17, 2014 1:48 pm

Re: Can I alter the size of a radio Button

Post by dazza the stag » Tue Jun 03, 2014 10:52 pm

I think i found it - something to do with the box about lock size and position - sounds obvious when I type it now lol

Thanks for your help...again...all seems to work now

Post Reply