Geometry control looses control after field resized

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
sbswensen
Posts: 3
Joined: Mon Sep 08, 2008 3:40 pm

Geometry control looses control after field resized

Post by sbswensen » Mon Nov 17, 2008 5:55 am

I set up a card with geometry management controlling the card resizing and there is a button on this card that lets you change the size of a field in order to hide or show other fields on the card. Then when I resize the card the geometry manager reverts to the size of the field before it was resized.

Is there an easy way to update the geometry info so that I do not have to take control away from the geometry manager.

Appreciate the help..
Severin
Thanks
Severin Swensen

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Mon Nov 17, 2008 9:03 am

If you're doing your own resizing, you may be interested in the 'revCacheGeometry' and 'revUpdateGeometry' commands.

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

sbswensen
Posts: 3
Joined: Mon Sep 08, 2008 3:40 pm

Post by sbswensen » Fri Nov 21, 2008 6:38 am

Just a quick note for future readers I added the following code after I resized a control in a button handler.

revCacheGeometry
send resizeControl

Thanks to Janschenkel for helping out.
Thanks
Severin Swensen

Post Reply