[Beginner] Help me understand the Geometry manager.

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
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

[Beginner] Help me understand the Geometry manager.

Post by shawnblc » Fri Oct 11, 2013 11:36 pm

I've been working on a little OSX application and I keep losing items on the right hand of the screen. I thought I had it figured out until just a few minutes ago. It was working as expected when adjusting the screen by dragging it, but hit the full window and lost everything for the 100th time.

The the images & controls, I've been going to the property inspector -> geometry -> selected the radio button that says Position selected object -> then tag it below with an anchor to the right side of the screen.

Can someone explain this and perhaps try and get this through my head? And what's the best way to get my images and controls back?

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Re: [Beginner] Help me understand the Geometry manager.

Post by shawnblc » Sat Oct 12, 2013 12:34 am

Just found this little gem here, and gonna give it a whirl!
http://forums.runrev.com/phpBB2/viewtop ... =8&t=14859

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: [Beginner] Help me understand the Geometry manager.

Post by dunbarx » Sat Oct 12, 2013 1:24 am

You have not "lost" the controls, right? You just orphaned them offscreen when you resized smaller..

Er, right?

I have never used the geometry manager, though I fooled around with it long ago and could not get it to work for me. But know that you can trap the "reSizeStack" message and adjust the locs of your missing objects as required.

But if you do get the manager to do this all on its own. please write back with a report.

Craig Newman

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: [Beginner] Help me understand the Geometry manager.

Post by Simon » Sat Oct 12, 2013 1:45 am

I'm with Craig.
The built in Geometry Manager is weird, I couldn't get it to work the way I thought it should.

Glad you found that script :)
Seems to work.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Re: [Beginner] Help me understand the Geometry manager.

Post by shawnblc » Sat Oct 12, 2013 4:04 am

Simon wrote:I'm with Craig.
The built in Geometry Manager is weird, I couldn't get it to work the way I thought it should.

Glad you found that script :)
Seems to work.

Simon
Simon,

I gave the script a whirl, and it distorts my images (that were imported as controls). Any input?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: [Beginner] Help me understand the Geometry manager.

Post by Simon » Sat Oct 12, 2013 5:18 am

Yeah, as I said if the aspect ratio is not constant then images will get distorted.
There is a lesson:
http://lessons.runrev.com/s/lessons/m/4 ... e-an-image
If you can combine that code with the one in the post, you could get correct aspect ratio.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply