Newbie Question - Card Size

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Newbie Question - Card Size

Post by warrenk »

How do I lock the card size so the user can't increase it? I thought it would be in the card properties...but can't locate it.

Thanks for any help!
Warren
BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Post by BvG »

the card size is defined by the stack size, and can't be set manually. Most likely you want the stack properties maxWidth and minWidth (same for height). Also look for the resizable property of the stack.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark »

Hi Warren,

You probably want to look up the entry for the resizable property in the docs. Note that this is not a card but a stack property.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Post by warrenk »

Thanks for pointing me in the right direction. I used the resizable property and this works great!


Warren
Post Reply