Alejandro,

 

Thanks.� I tried again using:

 

set somevar [ComboBox1 cget –text]

set anothervar [ComboBox1 cget –values]

append somevar “ “ $anothervar

ComboBox1 configure –values $somevar

 

I think originally I was getting –values like this “set somevar [ComboBox1 configure –values] which returns something weird like ‘value value value {} {item1 item2 item3}.� Using –values as you suggested works great (as above).� I think I was going crazy trying to use the documented combobox commands which don’t seem to exist (someone correct me please if I’m wrong).� Ahh, the joys of learning new things.

 

Once again thanks,

 

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Birt, Jeffrey
Sent:
Friday, April 23, 2004 10:04 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [vtcl-user] Can't get combo box insert command to work

 

 

Yes, I’ve been able to use –value to put things into the combo box list.  I would like to be able to add to an existing combobox list (which is what the apparently non-existent insert command does).  I’ve tried reading –value into a variable, which returns a list, {item1 item2 item3}, so does this mean one has to parse this returned list and build a new list to save back to –value?

Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058

 

-----Original Message-----
From: Alejandro G. Schujman [mailto:[EMAIL PROTECTED]
Sent:
Friday, April 23, 2004 9:17 AM
To: Birt, Jeffrey
Subject: Re: [vtcl-user] Can't get combo box insert command to work

 

use value to insert a list of lines in the listbox of the combobox

ComboBox1 configure -values {a b c d}

On Fri, 2004-04-23 at
10:41, Birt, Jeffrey wrote:

I would at least like to imagine myself reasonably competent, but I
can't seem to get any thing added to a BWidget combo box after it is
created.  The procedure I'm using is as follows:
 
Global Widget
 
set somevar [ComboBox1 -text]
ComboBox1 insert end $somevar
 
I've even tried 'ComboBox1 list insert end $somevar'
 
Both methods seem to be referenced in /doc/combobox.html.  In looking at
the bWidget combobox code it does not seem to have an 'insert' method,
unless this is inherited from a listbox somehow.
 
Any ideas (or working examples) would be most appreciated.
 
Jeff Birt
Electronics Engineer
Integrated Systems Facility
University of Missouri - Rolla
573.341.6058 
 
 
 
 
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg297
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user



--------------------------------------------------------------------------------

Alejandro G. Schujman
AGS Computaci�n y Sistemas
[EMAIL PROTECTED]
MSN [EMAIL PROTECTED]
0341 4219625
0341 15 5410122
Espa�a 1251 - 1      S2000DBY Rosario
Santa Fe    -    Argentina

 

Reply via email to