Best or easiest way to make a vertical scrolling area with fields and buttons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Best or easiest way to make a vertical scrolling area with fields and buttons
Hi all,
I have too many fields and buttons on one card and I am wondering.
What is the best/easiest way to make and maintain a vertical scrolling area in my card in which I can place all the Buttons and fields I need ?
Regards,
Paul
I have too many fields and buttons on one card and I am wondering.
What is the best/easiest way to make and maintain a vertical scrolling area in my card in which I can place all the Buttons and fields I need ?
Regards,
Paul
-
- Livecode Opensource Backer
- Posts: 9388
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Best or easiest way to make a vertical scrolling area with fields and buttons
Well, personally I'd just group everything and then set the Vertical scroll to true.
-
-
- Attachments
-
- Scroller Roller.livecode.zip
- Here's the stack.
- (917 Bytes) Downloaded 189 times
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Best or easiest way to make a vertical scrolling area with fields and buttons
Ok, but how do I get objects past the card hight?
PS. Thanks for the tip and the sample!
PS. Thanks for the tip and the sample!
Last edited by mrcoollion on Mon May 25, 2020 2:39 pm, edited 1 time in total.
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Best or easiest way to make a vertical scrolling area with fields and buttons
Found out how to put objects past the card hight (I think).
1) Make group height larger than the card (stack) height.
2) In run mode scroll up.
3) Then edit group and the area you scrolled to will be the area you can edit objects in.
Any other way's ?
1) Make group height larger than the card (stack) height.
2) In run mode scroll up.
3) Then edit group and the area you scrolled to will be the area you can edit objects in.
Any other way's ?
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Best or easiest way to make a vertical scrolling area with fields and buttons
Does your app provide the pointer tool for your users, or are you referring to your own development work while making layouts in the IDE?mrcoollion wrote: ↑Mon May 25, 2020 6:43 pmWell it would be nice if I would have been able to scroll the group in edit mode
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 129
- Joined: Sun Feb 20, 2011 4:26 pm
- Location: Vancouver Island, BC, Canada. ex.UK
- Contact:
Re: Best or easiest way to make a vertical scrolling area with fields and buttons
You could try setting the stack scaleFactor to something like "0.75", then you can temporarily increase the depth of your stack and group for editing. Reset the size of the group and stack before setting the scaleFactor back to 1.
It does work pretty well, but be prepared for some small editing anomalies like dropping controls onto the card puts them in odd positions and you may need a good pair of glasses!
Paul
It does work pretty well, but be prepared for some small editing anomalies like dropping controls onto the card puts them in odd positions and you may need a good pair of glasses!
Paul
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Best or easiest way to make a vertical scrolling area with fields and buttons
If you need a scrolling area of a specific size you can see the group's backsize property:
https://livecode.com/resources/api/#liv ... t/backsize
https://livecode.com/resources/api/#liv ... t/backsize
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 720
- Joined: Thu Sep 11, 2014 1:49 pm
- Location: The Netherlands
Re: Best or easiest way to make a vertical scrolling area with fields and buttons
I am referring to my own development work while making the layouts in the IDE.FourthWorld wrote: ↑Mon May 25, 2020 6:54 pmDoes your app provide the pointer tool for your users, or are you referring to your own development work while making layouts in the IDE?
Thanks Klaus, Paul and Richard for the great tips.
Re: Best or easiest way to make a vertical scrolling area with fields and buttons
Open your message box and use the following command to scroll the group.mrcoollion wrote: ↑Mon May 25, 2020 6:43 pmWell it would be nice if I would have been able to scroll the group in edit mode
Code: Select all
set the vScroll of group "yourGroupName" to 100
Code: Select all
put the formattedHeight of group "yourGroupName" - the height of group "yourGroupName"