J
Jerry Spence1
I'm just wondering if there are any clever mathematicians out there.
My VB2005 program consists of a number of panels on a form. Here's the
rules:
The number of panels will be variable
The screen size is fixed
You can change the size of each panel, but it's aspect ratio must always be
1.3:1 (each panel hols a photo) and each panel should end up the same size.
I need an algarithm to determine the best way of arranging these panels on
my form. This is identical to the microsoft arrange panels in a tile format
if I was using an MDI form - which I am not.
Anyone any idea how to do it? This has been bugging me for ages.
Thanks
-Jerry
My VB2005 program consists of a number of panels on a form. Here's the
rules:
The number of panels will be variable
The screen size is fixed
You can change the size of each panel, but it's aspect ratio must always be
1.3:1 (each panel hols a photo) and each panel should end up the same size.
I need an algarithm to determine the best way of arranging these panels on
my form. This is identical to the microsoft arrange panels in a tile format
if I was using an MDI form - which I am not.
Anyone any idea how to do it? This has been bugging me for ages.
Thanks
-Jerry