Re: Emptying a ComboBox List

From: Teodoro SANKARO <teo_sankaro_at_hotmail.com>
Date: Fri, 10 Mar 2006 05:56:08 -0700
To: "prima_at_prima.eu.org" <prima_at_prima.eu.org>

On Wed, 08 Mar 2006 15:45:47 -0700, lanas <lanas_at_securenet.net> wrote:

> I'm trying to put new items in a Combo Box widget but instead
> of having only the new items, they accumulate.
>
> I maintain an array and I use that array to fill the Combo Box:

Try Prima::Tie to associate an array with a List's items. From the
synopsis:

   use Prima::Tie;

   tie @items, 'Prima::Tie::items', $widget;

   tie @some_property, 'Prima::Tie::Array', $widget, 'some_property';

   tie $text, 'Prima::Tie::text', $widget;

   tie $some_property, 'Prima::Tie::Scalar', $widget, 'some_property';
 
Received on Fri 10 Mar 2006 - 13:56:19 CET

This archive was generated by hypermail 2.2.0 : Wed 27 Mar 2013 - 10:40:22 CET