How to set the minWidth dynamically?

Tiemo Hollmann TB toolbook at kestner.de
Wed Feb 20 03:55:21 EST 2013


Hi,

I have a resizable stack with resizable objects (fields with variable
textsize).

When the objects are smaller, the stack may be resized to a smaller size, as
if they are bigger, so that they don't overlap. I have the flag, when to
stop making the stack smaller, but I tried different approaches stopping
resizing dynamically without success.

Setting the "resizable of stack" to false if the stack gets too small can't
work, because you can't set it back again to true because the user can't
make it larger anymore. Manipulation the minWidth /minHeight of the stack
doesn't work, because while resizing with mousedown you can't change the
dimension properties of the stack. The are changed, when the user releases
the mouse.

Where is my fault? Which is the right approach?

Thanks

Tiemo

 

 




More information about the use-livecode mailing list