Page 1 of 1

vertical scrollbar and horizontal scroll bar in card

Posted: Mon Sep 14, 2015 7:51 am
by shalu
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

Re: vertical scrollbar and horizontal scroll bar in card

Posted: Mon Sep 14, 2015 8:09 am
by Simon
Hi Shalu,
It's no problem, here is the lesson;
http://lessons.runrev.com/m/4071/l/4442 ... chitecture

Simon

Re: vertical scrollbar and horizontal scroll bar in card

Posted: Mon Sep 14, 2015 10:44 am
by richmond62
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

Re: vertical scrollbar and horizontal scroll bar in card

Posted: Mon Sep 14, 2015 12:50 pm
by shalu
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

Re: vertical scrollbar and horizontal scroll bar in card

Posted: Mon Sep 14, 2015 1:22 pm
by Klaus
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