Default card size

Phil Davis revdev at pdslabs.net
Wed Jul 19 15:39:23 EDT 2006


Hi Robert,

Try this in a button on a different stack:

on mouseUp
   answer file "Pick the problem stack:"
   if it = empty then exit mouseUp

   lock messages
   go stack it
   unlock messages
end mouseUp


If this makes your problem go away, it means there's code somewhere that is 
setting the size of your stack at 'open' time.


Another thought: Does the problem stack have a menubar, and you're running on a 
Mac? If both things are true, you might save the rest of your hair by adding a 
line of code in the preOpenStack handler that sets the height of your stack.

food for thought...

Phil Davis




Robert Sneidar wrote:
> No actually, all the cards in my stack have the same size. Different 
> substacks have different size cards. My problem is in one stack, I set 
> the card size, save the stack, but it always reverts to the previous 
> size. I want to "set it and forget it" so to speak.
> 
> Bob Sneidar
> IT Manager
> Logos Management
> Calvary Chapel CM
> 
>> Robert Sneidar wrote:
>>> I have a problem that has been plaguing me. When I change the size of a
>>> card, I want Revolution to remember that when I save the stack, but it
>>> doesn't! It always reverts to some previous size I never even set it to.
>>> It makes me crazy! How do I set the default size of a card so that it
>>> always opens to that size? I already do it via scripts, but I would like
>>> to avoid that if possible as I am going to have a LOT of different card
>>> sizes in my app and I don't want to script every one of them. Thanks.
>>
>> If you mean that you want every card in a single stack to be a different
>> size, then no can do. Setting the size of a card effectively sets the
>> stack size as well, since all the cards in a stack must be the same size.
>>
>> You'll either have to script each card to change the stack size on the
>> fly, or rethink your approach. Note that most people consider a
>> constantly-changing window size to be irritating, so it is generally a
>> good idea to avoid shifting the dimensions of the window whenever
>> possible. If you have some cards that can be logically grouped by size
>> (such as layouts for printing, for example) these can often go into
>> their own substack.
>>
>> --Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>> HyperActive Software           |     http://www.hyperactivesw.com
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list