Tuesday, May 22, 2001 07:32 AM
You have two choices on this:
- Create your own layout manager to position/size the components
- Use "no layout" for this
For drawing applications, it's often easier to use no layout manager (and would be one of the very few in which you should ever choose to not use a layout manager)
However, if you want to implement a "snap to grid", you could write a "SnapLayout" that looks at each component and moves/resizes them to the closest spacing unit you want to use. That would simplify a good bit of the app.
I recommend that you do not link window resizing to these "chips" resizing -- you should let the user resize the window to have more room to add pieces, not make everything bigger.