Page 1 of 1

Spacing evenly controls

Posted: Sat Sep 26, 2015 12:13 pm
by kolia
Hello,
During design phase, lets take radio button as an example, I want to have them evenly spaced. I could not find such a feature. Does it exist?
In the same spirit, is there a magnetic grid feature to help to design a nice interface?
Thank you
Nicolas

Re: Spacing evenly controls

Posted: Sat Sep 26, 2015 1:11 pm
by bn
Hi Nicolas,
During design phase, lets take radio button as an example, I want to have them evenly spaced. I could not find such a feature. Does it exist?
open the Properties Inspector and then select e.g. your radio buttons by shift-clicking or selection-dragging them. Usually the Properties Inspector changes to "Align Objects" . If not select Align Objects from option menu

alignMultipleObjects.png
there you can align a lot of parameters, The red circle lets you align horizontally even spaced.
In the same spirit, is there a magnetic grid feature to help to design a nice interface?
go to Preferences -> Appearance -> Grid spacing. The default is 2, change it to what you like for your spacing. In the View Menu you can turn the Grid spacing on and off.

if you want a visual feedback about your Grid Spacing have a look at
http://livecodeshare.runrev.com/stack/757/GridDrawer

You put this stack into your Plugins Folder in Documents-> My Livecode and restart

Then you open "GridDrawer" from Menu Development -> Plugins.

Once it opens you click-drag GridDrawer from the Plugin to your card, where you are currently working. It draws a Grid as visual feedback. Once you are done you dismiss GridDrawer from your card by clicking into the "x" and it is deleted.

Kind regards
Bernd

Edit: after you put the stack into the Plugins folder restart Livecode, not the computer.

Re: Spacing evenly controls

Posted: Sat Sep 26, 2015 1:12 pm
by kolia
Very nice, thank you!
Nicolas