What property allows user to enlarge/move objects

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
trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

What property allows user to enlarge/move objects

Post by trags3 » Sat Apr 26, 2014 7:44 pm

How can I allow the end user to enlarge a card or move a card on a touchscreen device?

Tom

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: What property allows user to enlarge/move objects

Post by Dixie » Sat Apr 26, 2014 8:09 pm

I think that the practical way to do it would be to scroll a group that contains your controls...

trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

Re: What property allows user to enlarge/move objects

Post by trags3 » Mon May 05, 2014 3:32 pm

Dixie wrote:I think that the practical way to do it would be to scroll a group that contains your controls...
Dixie, Thanks. What I was looking for was the pinch gesture; however I have tried the "scroll a group" approach as I think this is a good approach.
I haven't been able to make it work yet.
I assume that the group size needs to be larger than the stack size.
My controls are label and small text entry fields to input things like price cost etc names addresses etc
It is a standalone app for android.
I downloaded an example file from a LC lesson called "Scrolling-Group.rev
I tested it on my phone and it works perfectly.
When I copy the scripts from the example to my test file .... no scrolling. I think there is a problem getting the size of my group to be larger than the window.
Ideas?
Thanks
Tom

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

Re: What property allows user to enlarge/move objects

Post by Simon » Mon May 05, 2014 9:38 pm

Hi Tom,
Actually it's the groups content that scrolls not the group. You lock the size and position of the group to the size of your card and the group controls the scrolling action.

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

trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

Re: What property allows user to enlarge/move objects

Post by trags3 » Tue May 06, 2014 4:58 pm

I was able to figure this out. I used the LC lesson "How do I scroll a card that is taller or wider than the window? " The problem I had was that I didn't have an image that I was trying to scroll.
Trying to equate the input fields that I am using to the image example just wasn't working. The light went on when I realized I could import an image, place my other controls on the image, group them together and then follow the example in the lesson.
Works like a Champ. The image can be a real picture or just a plain background. I know there is probably a better way but this method works for me! :D

Thanks for the help.

Tom

Post Reply