Guillaume,

That is all possible with the stock listbox:

check out the manpages at:
http://www.tclconsortium.org/resources/manpages/

The listbox widget has a command  insert  for (duh) inserting and  delete  for deleting elements.  To display the values stored by variables, just construct your list from those variables.

Now if you need to have editable, scrollable fields, you have to use a textbox or scrolled canvas.  I prefer the canvas because you can embed any widget and use the grid manager to make things tabular.  The down side is that I don't know of any facilities for adding, deleting, selecting rows, elements, etc.  I've had to write my own functions for that.   If you just need to display a list of text values, the listbox is quite robust and you don't need to program anything yourself.

Ciao,
Randy Reichenbach
 
 

Guillaume Laisney wrote:

        Hello !

I'd like to build a nice listbox with VTcl that would allow it's user to
add/delete items inside. Moreover, I'd like these items to be associated with
variables.

Any idea ?
Thank you

Guillaume

---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).

Reply via email to