Re: [fltk.general] Bargraph object with Fl_Group

2013-03-18 Thread memoryl...@tin.it
>> Each whole page is a group-derived object ; I keep a list of pointers >> to these objects and jumping to another page is easy. >> Just make the current group invisible and make visible another. >> The redraw() caused by the bargraph goes to the current visible "page >> group" ; a typical plant c

Re: [fltk.general] Bargraph object with Fl_Group

2013-03-18 Thread MacArthur, Ian (Selex ES, UK)
> Messages from the plant data driver can arrive at different rates (say > from 200 ms up, depending on what is written in the config file) ; > if I fire a redraw() each time I receive the bargraph level my CPU > utilization for the graphics app goes from 4-5% to 60%, > so I simply redraw() when

Re: [fltk.general] Bargraph object with Fl_Group

2013-03-18 Thread MacArthur, Ian (Selex ES, UK)
> Each whole page is a group-derived object ; I keep a list of pointers > to these objects and jumping to another page is easy. > Just make the current group invisible and make visible another. > The redraw() caused by the bargraph goes to the current visible "page > group" ; a typical plant can h

Re: [fltk.general] Bargraph object with Fl_Group

2013-03-18 Thread memoryl...@tin.it
Albrecht wrote: > http://www.fltk.org/doc-1.3/classFl__Widget.html#ac92191cba5d17ae34bfc346d2126c9f2 > to damage a particular region (like invalidateRect would do). It works ! Now forcing a damage to the bargraph parent() passing to it the coordinates to invalidate. Removed, for testing, the pre

Re: [fltk.general] Bargraph object with Fl_Group

2013-03-18 Thread memoryl...@tin.it
Hi all, thanks for the observations. Ian wrote: > I *think* what I'd do is create a group (probably with a FLAT_BOX type) that > contained just the required widgets - I'd populate this at runtime with > widgets as required based on reading the config file. > The redraw would then be sent to th