Re: SimpleList redraw/refresh

On Sun, 2004-07-11 at 13:05, Jens Wilke wrote:
On Sunday 11 July 2004 18:09, Juergen Zahrer wrote:

or have i to redraw/refresh the hole window ( but how? )

Nein, just repeat 
@{$categories->{data}} = @hosts;

you can treat $categories->{data} as a perl array reference and do
anything that you would normally do to a perl array reference to it. the
only thing to watch out for is replacing the reference, i.e. don't do
        $categories->{data} = \ data;
because you'll lose the tie magic that is SimpleList.

have a look at examples/ in the Gtk2 perl source for a
through run through of this stuff. there so much going on it can be hard
to wade through, but it should exemplify most anything you'd want to do.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]