Geometry question
Posted: Wed Nov 30, 2016 5:19 pm
This is probably a very simple question, but I can't seem to get it right. I've created a few stacks in the past and now I'm creating a stack in which I want to resize some fields and controls or change their positions when the stack size changes (when the user resizes the stack window). I'm using the Geometry Manager for this. It works really well for most controls. However, I find this hard to implement although I imagine the solution may be simple:
I have 2 fields side by side. Let's say field A on the left is 200 pixels wide and field B on the right is 200 pixels wide too.
Now, if I resize the width of the stack by 100 pixels, I want field A to be resized by 50 points, field B to be moved 50 points to the right and then resized by 50 points too. I've tried various things in the Geometry Manager but no luck; the fact that the User Guide is empty doesn't help either. May be I should sleep on it one night and experiment a bit more tomorrow or try to get it right using a resizeStack script. Any input much appreciated.
I have 2 fields side by side. Let's say field A on the left is 200 pixels wide and field B on the right is 200 pixels wide too.
Now, if I resize the width of the stack by 100 pixels, I want field A to be resized by 50 points, field B to be moved 50 points to the right and then resized by 50 points too. I've tried various things in the Geometry Manager but no luck; the fact that the User Guide is empty doesn't help either. May be I should sleep on it one night and experiment a bit more tomorrow or try to get it right using a resizeStack script. Any input much appreciated.