PtDivider

I have a PhAB application where I have a pane with a PtDiver at the upper
edge. The Divider has a number of PtText strings in it. Underneath the
divider I have a list of widgets aligned in columns. The widgets
are created dynamically as I do not not know how many to create
at application startup.

My question is: I’d like to adjust the columns of widgets according to
the columns of the divider. I wonder how this is accomplished in the
best way? Of course I can add a callback to the Divider resizing, and
adjust my widgets “by hand (i.e. hand written code)”, but it would
be nice if it could be done more automagically, e.g. by arranging the
widgets in PtGroups in some clever way.
I don’t think a PtList will work since the widgets are a mix of at least
PtText:s and PtEllipses. Each row of widgets are identical.
PtGenList?

Any ideas?

Thanks / Tom

Hi, Tomas!

I solve this problem with resize callback.
But if You create a table with many rows it repaint very slowly.

Tomas HÃgstrÃm wrote:

I have a PhAB application where I have a pane with a PtDiver at the upper
edge. The Divider has a number of PtText strings in it. Underneath the
divider I have a list of widgets aligned in columns. The widgets
are created dynamically as I do not not know how many to create
at application startup.

My question is: I’d like to adjust the columns of widgets according to
the columns of the divider. I wonder how this is accomplished in the
best way? Of course I can add a callback to the Divider resizing, and
adjust my widgets “by hand (i.e. hand written code)”, but it would
be nice if it could be done more automagically, e.g. by arranging the
widgets in PtGroups in some clever way.
I don’t think a PtList will work since the widgets are a mix of at least
PtText:s and PtEllipses. Each row of widgets are identical.
PtGenList?

Any ideas?

Thanks / Tom