Skip to main content

containers with FlowLayout

1 reply [Last post]
Joined: 2007-12-08
Points: 0

I'm trying to create two Containers with FlowLayout.
container #1 contains 5 labels: label1, label2, label3, label4, label5
container #2 contains 5 labels: label6, label7, label8, label9, label0

the problem is that the containers don't do the "wrapping" feature of flowlayout,
instead the labels form a long line which gets beyond the forms boundaries.

how can I fix this?


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2008-10-14
Points: 0

your problem seems to be the same like mine

I think the label does not form a long line, instead the parent container cannot determine the correct height. so the labels will be drawn at the correct position but in a region which isn't available because the parent container does only have the height for one row.

unfortunately I does not have a perfect solution, just a work-around which passed my first little tests, don't know if it works correct in all situations. I've posted the code in the thread mentioned above. maybe you can use it. Nevertheless it would be nice if you could post your progress in solving this problem, e.g. posting if you find a bug in my work-around.