Fluid Layout By Custom Polygon Shapes
-
Like we have FlowLayoutPanel, where controls can automatically get laid out according to their sizes and sequence, I have a requirement of a fluid layout. In a rectangle or area (say 500w X 100h), there are some fixed small controls. lets say a rectangle control of (100w X 30h) is fixed at point (0 top , 150 left) Now, I need to fill this bigger rectangle with small shaped controls with constant areas but variable widths. Height can be maximum wherever possible. The controls not adjacent to fixed control will be rectangles So, no problems. The controls adjacent to fixed controls will need to take polygon shape of variable heights to fit in the balance space. Any logic already existing? Any approaches? And yes, this is for winforms.
-
Like we have FlowLayoutPanel, where controls can automatically get laid out according to their sizes and sequence, I have a requirement of a fluid layout. In a rectangle or area (say 500w X 100h), there are some fixed small controls. lets say a rectangle control of (100w X 30h) is fixed at point (0 top , 150 left) Now, I need to fill this bigger rectangle with small shaped controls with constant areas but variable widths. Height can be maximum wherever possible. The controls not adjacent to fixed control will be rectangles So, no problems. The controls adjacent to fixed controls will need to take polygon shape of variable heights to fit in the balance space. Any logic already existing? Any approaches? And yes, this is for winforms.
Som Shekhar wrote:
Any logic already existing?
AFAIK it doesn't exsist. Maybe 3rd party control would have it.
Som Shekhar wrote:
Any approaches?
I Would use OnResize event and programaticly calculate the behaver
-
Som Shekhar wrote:
Any logic already existing?
AFAIK it doesn't exsist. Maybe 3rd party control would have it.
Som Shekhar wrote:
Any approaches?
I Would use OnResize event and programaticly calculate the behaver
Saksida Bojan wrote:
AFAIK
Yes, "AFAIK" applies to me too. I just hoped that others may have some experience or thoughts.