PHab screen flicker

Hi,

I’m trying to display a table (6 columns by 20 rows) of data and
update its contents every 1 sec without screen flicker. I’m currently
using 6 PtList widgets because I need to change the background colors,
font, and general look of each cell. I have tried using a
PtDBContainer with the PtList’s as its children but that seems to slow
down the scrollbar.


Any help would be greatly appreciated.

Tim Williams

Why don’t you create 120 PtText widgets and use a group to lay them out as a
table?
This should give you less flickering.
Markus


“Tim Williams” <trw1eng@one.net> wrote in message
news:39c7584e.61739836@news.one.net

Hi,

I’m trying to display a table (6 columns by 20 rows) of data and
update its contents every 1 sec without screen flicker. I’m currently
using 6 PtList widgets because I need to change the background colors,
font, and general look of each cell. I have tried using a
PtDBContainer with the PtList’s as its children but that seems to slow
down the scrollbar.


Any help would be greatly appreciated.

Tim Williams

You also can use for PtList the function PtListReplaceItemPos or one from
that family.

Or - for pure display tables - use one PtLabel field per column (not PtText)
with identical heights and sprintf the contents divided by “\n” (newline).
Works really fine but disallowes interaction with the user like marking an
entry or s.th. like that.

/martin

Tim Williams <trw1eng@one.net> schrieb in im Newsbeitrag:
39c7584e.61739836@news.one.net

Hi,

I’m trying to display a table (6 columns by 20 rows) of data and
update its contents every 1 sec without screen flicker. I’m currently
using 6 PtList widgets because I need to change the background colors,
font, and general look of each cell. I have tried using a
PtDBContainer with the PtList’s as its children but that seems to slow
down the scrollbar.


Any help would be greatly appreciated.

Tim Williams