Aligning Controls Revert Back

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
cenglish
Posts: 34
Joined: Wed May 11, 2011 6:44 pm

Aligning Controls Revert Back

Post by cenglish » Mon Dec 19, 2011 9:55 pm

I am currently using MobGUI with LiveCode for developing an iPad application. I am using MobGUI only for scrolling fields, all of my buttons, text fields are from LiveCode itself. For some reason, whenever I go to align fields, buttons, etc, they align, but as soon as I click off, they revert back to the location/size they were before. I am completely baffled. I am not wanting to align these controls or fields through scripting, I'm simply just trying to align a few objects up on my app. However, if I select one individual control, I can move it wherever I want and it will stay there. Even if I move one to where I want it, and select the other and change it's vertical loc to match that of the other control, I get the same results, it just reverts back as soon as I click off of it. So right now, I am having to move objects pixel by pixel to get them aligned how I want. Very frustrating. I've also tried aligning them, and locking their location, but that doesn't work either. Any feedback would be greatly appreciated.



Running LiveCode 5.0.2
Lion OS X
MobGUI 0.28


EDIT: The same thing goes for trying to fit content of a field, for instance putting a paragraph into a variable, putting that variable into a text field, then trying to use the inspector to fit the content of that field. I also have issues with a field not resizing to fit the content of a field when the text changes (keeps one size and never changes no matter what is put into it, don't have it's lockLoc on in the inspector either)

Peregrine
Posts: 53
Joined: Sun Jan 10, 2010 10:33 pm
Contact:

Re: Aligning Controls Revert Back

Post by Peregrine » Wed Jan 11, 2012 5:14 pm

Did you figure this out? I'm having some similar issues with MobGUI, and am wondering if you resolved this or found a workaround.
Charles Buchwald
xTalk coding since 1990
Developer of lcResTool and lcMover and other developer tools
https://charlesbuchwald.com

FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: Aligning Controls Revert Back

Post by FireWorx » Wed Jan 11, 2012 8:40 pm

I haven't had much luck with mobgui. Why don't you zip your stack to back it up and then choose select all on your card and double click on those items to bring up the "multiple objects" box and select the "size and position" tab then choose "lock size and position" . I know that not having your objects size and position locked can raise heck with mobGui.

If you still have issues you may end up doing what I do. Just hard code it. I haven't got my moneys worth from mobGui and I have tried and failed to use it on 3 projects. Sorry hope this helps.
Dave

Peregrine
Posts: 53
Joined: Sun Jan 10, 2010 10:33 pm
Contact:

Re: Aligning Controls Revert Back

Post by Peregrine » Thu Jan 12, 2012 4:32 am

Thanks for the advice... I may resort to that in the future.

For now, I found the answer in the MOBGui support docs: docId=16
In a nutshell, follow the sequence: change "status bar" checkbox, change "no autogeometry", change "status bar" checkbox, change "no autogeometry". The docs explain why it works... and it worked for me.

Now if I could just figure out why some cards in my stack are sized for the status bar, and some are not.... :-)
Charles Buchwald
xTalk coding since 1990
Developer of lcResTool and lcMover and other developer tools
https://charlesbuchwald.com

cenglish
Posts: 34
Joined: Wed May 11, 2011 6:44 pm

Re: Aligning Controls Revert Back

Post by cenglish » Mon Feb 06, 2012 6:21 pm

Yea, I must say I haven't really been able to use Mobgui as much as I would like. The only thing I ever use it for now is just the scrolling fields, which still aren't as perfect as I would like. I did find that about checking the auto geometry boxes on seems to fix it. But I too, am having the same issue with some cards adjusting their size for the status bar and some aren't with no clue how to adjust. For now, I've been able to have all my cards working correctly (knock on wood). But I have had that issue where I open my stack and it offsets everything and I look at the size and it's off by 2-4 pixels, once I change it back, everything goes back to normal.

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Aligning Controls Revert Back

Post by Jellicle » Tue Feb 07, 2012 3:11 am

I remove the geometry from every object on my cards, including non-MobGUI objects, whenever I use MobGUI. I do that by right-clicking on the objects while MobGUI is open. Unless you need the geometry features for resizing and re-positioning objects for orientation etc, I'd recommend doing the same. It's an awesome product but it needs better documentation of it's specific features, and some documentation the context in which it works.

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

Post Reply