Re: Automatic object resizing on card changes

2011-11-04 Thread John Brozycki
A big thanks to BvG and Mark for your replies. Not only did BvG provide the "quick and dirty" answer: on opencard revUpdateGeometry end opencard ...but both BvG and Mark provided sample code code for handling resizing on your own. Thanks! I really appreciate it, guys! -John On Nov 4, 2011

Re: Automatic object resizing on card changes

2011-11-04 Thread Mark Schonewille
Hi John, This really depends on the situation. Here's a very simple example: on resizeStack put the rect if this cd into myRect add 16 to item 1 of myRect add 16 to item 2 of myRect subtract 16 from item 3 of myRect subtract 16 from item 4 of myRect set the rect of fld 1 to myRect end

Re: Automatic object resizing on card changes

2011-11-04 Thread Björnke von Gierke
on opencard revUpdateGeometry end opencard Note: it is generally saver to write your own resize handlers. The geometry manger will sooner or later mess up, and strew your objects into random locations (negative or huge numbers, offscreen, huge mess!). I suggest to instead write your own res

Automatic object resizing on card changes

2011-11-04 Thread John Brozycki
Hello, Given a resizable stack with, say, two cards that both have objects that have their geometry set to scale on resize (like a text field) what is the best way to get objects on card 2 to automatically resize when card one is resized and then a button is selected to go to card 2? It doesn'