Prev: tclx on opensuse
Next: How to do 3d line plots
From: tcltkdev on 24 Apr 2007 01:49 How do I programically change a value in a column in a tablelist? Kindly give an example.
From: Bryan Oakley on 24 Apr 2007 12:31 tcltkdev(a)aol.com wrote: > How do I programically change a value in a column in a tablelist? > Kindly give an example. > With the cellconfigure command. It is documented in the tablelist man page: http://www.nemethi.de/tablelist/tablelistWidget.html#cellconfigure ..tablelist cellconfigure 2,3 "this is row 2, column 3" -- Bryan Oakley http://www.tclscripting.com
From: Csaba Nemethi on 24 Apr 2007 14:23 tcltkdev(a)aol.com schrieb: > 1. How do I programatically change a value of a column in a tablelist? > > Example: > > ID No. Last Name First Name > ----------------------------------------------------- > 1234 Smith John > > 0070 Bond James <-- current row > 7890 Bauer Jack > > How do I change one of the following values? > ID No. = 0070 > Last Name = Bond > First Name = "James" to "James Ryan" Use "<widget> cellconfigure <cellIndex> -text <newContents>". > > 2. How to use wcb in tablelist so that "Last Name", "First Name" > columns will be entered in all caps? > > Example: > > ID No. Last Name First Name > ----------------------------------------------------- > 1234 SMITH JOHN > 0070 BOND JAMES RYAN > 7890 BAUER JACK > > Kindly give an example how this is done. > > See the Tablelist demo script "miscWidgets.tcl" for an example of using the Wcb package in the procedure specified as the value of the "-editstartcommand" option. For the "Last Name" and "First Name" columns you should write within the "switch" statement: wcb::callback $w before insert wcb::convStrToUpper This is a ready-to-use solution to your problem. See the Wcb documentation for details. -- Csaba Nemethi http://www.nemethi.de mailto:csaba.nemethi(a)t-online.de
From: tcltkdev on 24 Apr 2007 18:53 In the code fragment below, where can I find codes for corresponding color for "-stripebackground"? .tbl_master_list configure -stripebackground #e0e8f0
From: Bryan Oakley on 25 Apr 2007 10:15
tcltkdev(a)aol.com wrote: > In the code fragment below, where can I find codes for corresponding > color for "-stripebackground"? > > .tbl_master_list configure -stripebackground #e0e8f0 > > I don't know if this answers your question, but you can run tk_chooseColor, pick any color and press OK, and it will return the hex RGB representation of that color (which is all the #e0e8f0 is -- a hex value representing red, green and blue) -- Bryan Oakley http://www.tclscripting.com |