By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,590 Members | 635 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,590 IT Pros & Developers. It's quick & easy.

looking for an algorithm for layout

P: n/a
Hi,

I am looking for algorithms to layout rectangles underneath each other in a
sidebar. All rectangles have different heights as well as an ankor point.
The rectangle can have scrollbars, but should be as large as possible and as
close to the ankor as possible.

Any known algorithms for such a problem in the field of computer science?

Best regards
Max

PS: not sure if this is the best group to ask, but I did not find an
algorithm newsgroup
Jun 12 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Max Odendahl wrote:
Hi,

I am looking for algorithms to layout rectangles underneath each other in a
sidebar. All rectangles have different heights as well as an ankor point.
The rectangle can have scrollbars, but should be as large as possible and as
close to the ankor as possible.
You need to provide a clearer explanation of the problem.
Best regards
Max

PS: not sure if this is the best group to ask, but I did not find an
algorithm newsgroup
Try comp.programming
Jun 12 '07 #2

P: n/a
On 12 Juni, 10:50, "Max Odendahl" <maximilian.odend...@rwth-aachen.de>
wrote:
Hi,

I am looking for algorithms to layout rectangles underneath each other ina
sidebar. All rectangles have different heights as well as an ankor point.
The rectangle can have scrollbars, but should be as large as possible andas
close to the ankor as possible.

Any known algorithms for such a problem in the field of computer science?
Just a guess, but it seems like you are trying to layout some controls
in a GUI. Unless there's some good reason to do the layout yourself
you should see if there isn't one (or more) layouts available in the
framework you are using to create the GUI.

--
Erik Wikström

Jun 12 '07 #3

P: n/a
Hi,
I am looking for algorithms to layout rectangles underneath each other in
a sidebar. All rectangles have different heights as well as an ankor
point. The rectangle can have scrollbars, but should be as large as
possible and as close to the ankor as possible.

Any known algorithms for such a problem in the field of computer science?
As an example, I am talking about sth like the layout of the comment
functionality in word processors.

Regards
Max

Jun 12 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.