[Gambas-user] changing the picture in a columnview item

Fabien Bodard gambas.fr at ...626...
Mon Feb 15 16:34:24 CET 2010


 MachineView[thekey].Picture = Picture["waiting.png"]

2010/2/15 Joshua Higgins <joshiggins at ...1601...>:
> Hi list,
>
> I'm creating a columnview item to show status, like this:
>
> MachineView.Add("192.168.0.1", "router", Picture.Load("waiting.png"))
> ...
> MachineView.Item[4] = "Waiting"
>
> But then changing it later on as a status update comes in like this:
>
>  MachineView[thekey][4] = "Online"
>
> My question is, how can I change the picture that I originally created this
> item with? I want to change it to either online.png or offline.png
>
> Thanks.
>
> --
> joshua higgins
>>>>>>>------
> ------------------------------------------------------------------------------
> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
> http://p.sf.net/sfu/solaris-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list