card with 2048 x 768

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
Es124
Posts: 26
Joined: Sat Apr 30, 2011 3:48 pm

card with 2048 x 768

Post by Es124 » Wed Nov 16, 2011 1:37 pm

Hi,

is it possible to import a card (with size 2048 x 768 with scroll option ) from an other stack into a stack where all the other cards our 1024 x 768 ? The imported card have to remain 2048 x 768 for scrolling.
I try to copy everything from the original card ( 2048 x 768 ) into a new card in the new stack, but the new card can't be locket to the size 2048 x 768, and everything is automatically put into size 1024 x 768 . ( i changed the size to 2048 x 768 but impossible to lock).

Also how do i make a card scrollable ?

thanks
Enno

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

Re: card with 2048 x 768

Post by Klaus » Wed Nov 16, 2011 2:15 pm

Hi Enno,

sory, this is not possible!
The size of a stack defines the card size -> stack size = card size.

BUT you can of course set the stack/card size in a "preopencard" handler to the neccessary size
and "reset" it on "closecard" or something like that.

Cards (windows per se) cannot be scrolled!
The trick is to group ALL objects on a card and set the scrollbars of that group to true. :D
Then add this "resizestack" handler to your stack:

Code: Select all

on resizestack
  set the rect of grp "the one with ALL objects in it" to the rect of this cd
end resizestack
Hope that helps.


Best

Klaus

Post Reply