Update for new plugin: 26th December

This is the place to discuss anything relating to MobGUI

Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21

Aji
Posts: 18
Joined: Mon Sep 09, 2013 3:43 pm

Re: Update for new plugin: 26th December

Post by Aji » Sun Feb 09, 2014 12:56 am

Hi,

About the point made by pthirkell on Jan 6:

I have a bunch of icons (or other buttons) in my tab bar. In lieu of alt double click, what is the recommended way to get them all distributed nicely across the bottom of my card? I'm using the word "distributed" to mean "spaced evenly apart from each other."

Thanks much. The improvements to MobGUI are very exciting, I'm just trying to catch up.
Aji

splash21
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 369
Joined: Sun Dec 19, 2010 1:10 am
Location: UK
Contact:

Re: Update for new plugin: 26th December

Post by splash21 » Sun Feb 09, 2014 12:20 pm

Thanks for the feedback, Aji. I miss that function for spacing buttons too. I'll have to get it added into the new plugin :)

In the meantime, here's a quick plugin stack that spaces custom controls (groups) inside a group...
ControlSpacer.livecode.zip
(1.52 KiB) Downloaded 312 times
It's was thrown together quickly, so please backup your work before trying! ;)
I added a few icon buttons to my stack, then grouped them together - called the new group "TabGroup". I added some padding to Tabgroup by setting the margins property then resized it to the width of the stack. After selecting TabGroup in edit mode, clicking the 'Space Controls' button in the plugin spaced the tab buttons evenly inside the group.

Hopefully this will work OK for you, but I'll look at getting something more robust added!
LiveCode Development & Training : http://splash21.com

Aji
Posts: 18
Joined: Mon Sep 09, 2013 3:43 pm

Re: Update for new plugin: 26th December

Post by Aji » Tue Feb 11, 2014 3:45 am

Thanks Splash, for explaining the logic and the stack to accomplish it!
Aji

Post Reply

Return to “MobGUI”