For Programmers: Free Programming Magazines  


Home > Archive > Tcl > May 2006 > Re: combobox woes (newbie alert!)









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: combobox woes (newbie alert!)
jonhd

2006-05-24, 4:14 am

Thanks Gerald. I've resolved this by using your suggested code, and by
abandoning development in the VTCL IDE!
FWIW, this is what VTCL generated for the combobox:

ComboBox $site_3_0.com74 \
-entrybg white -takefocus 1 -textvariable "$top\::userList"
vTcl:DefineAlias "$site_3_0.com74" "ComboBox1" vTcl:WidgetProc
"Toplevel1" 1
bindtags $site_3_0.com74 "$site_3_0.com74 BwComboBox $top all"

I.e. it was using -textvariable, rather than -values... In the IDE's
'Attribute Inspector' I tried all the possible entry fields for the
ComboBox widget, that were available, and none (that I could see)
resulted in -values appearing in the generated code.

So, it's back to TextPad and the Tcl/Tk docs!

Cheers, Jon H-D

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com