vertical scrollbar and horizontal scroll bar in card

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
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

vertical scrollbar and horizontal scroll bar in card

Post by shalu » Mon Sep 14, 2015 7:51 am

Hi

I am beginner in LiveCode, I have card it's contain lots controls and groups of controls, so that I am trided to insert a vertical scrollbar and horizontal scroll bar in my card, can any one help me to insert scrollbars in my card :roll:

Thanks
Shalu
--
Thanks
Shalu S

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

Re: vertical scrollbar and horizontal scroll bar in card

Post by Simon » Mon Sep 14, 2015 8:09 am

Hi Shalu,
It's no problem, here is the lesson;
http://lessons.runrev.com/m/4071/l/4442 ... chitecture

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10100
Joined: Fri Feb 19, 2010 10:17 am

Re: vertical scrollbar and horizontal scroll bar in card

Post by richmond62 » Mon Sep 14, 2015 10:44 am

Well, you cannot actually have a scrolling card as such, but you can GROUP everything on your card into one GROUP,
and via the Properties palette give it Vertical and Horizontal scrollbars:
gwoop.gif
Attachments
Super Grouper.livecode.zip
Stack to demonstrate scrollbars
(223.06 KiB) Downloaded 237 times

shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

Re: vertical scrollbar and horizontal scroll bar in card

Post by shalu » Mon Sep 14, 2015 12:50 pm

Hi richmond,

Thank you for your reply, The way of your coding is good, can you please tell about how I can resize the Scrollbars, when I resize the stack. :roll:

Thanks
Shalu
--
Thanks
Shalu S

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: vertical scrollbar and horizontal scroll bar in card

Post by Klaus » Mon Sep 14, 2015 1:22 pm

HI shalu,

you don't want to resize the scrollbars, you want to resize the GROUP!

Put this into the card script of the card with that group:

Code: Select all

on resizestack
  set the rect of grp "everythig in one group" to the rect of this cd
end resizestack
Best

Klaus

Post Reply