GridBagLayout Equiv?

wyrd

Well-known member
Joined
Aug 23, 2002
Messages
1,408
Location
California
Odd question but in Java theres a layout manager which is called GridBagLayout. It pretty much works like an HTML table to put it in simplistic terms.

If anyone is even remotely familiar with it, is there any sort of equivelent in VB.NET? I know they have Anchoring and Docking now.

Sort of hard to explain what Im talking about, but here we go..

Imagine two buttons at the bottom of a form, both taking of 50% of the forms width. If you remove a button, the remaining button will automatically fill 100% of the forms width. If you add a button, theyll all take up 33.3333% (or whatever it is) of the forms width. If you add a 4th theyll all take up 25% of the forms width. When Im talking adding and removing I mean dynamically as the program is actually running.

Is there anything that will allow me to do this? Maybe a funky combination of anchor and docking? Im hoping for an easy solution so I dont have to actually program it out (as you once had to do for most controls before they made it easy with anchoring and docking, heh).
 
I belive youll have to program this functionality yourself, although sometimes you can achieve similar effects with inventive use of panels and docking/anchoring.
 
Back
Top