Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language

Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

TCL(Tool Command Language) Scripting

Embedding a window in a tablelist cell

I'm trying to figure out why this code packs a label at the bottom of
the window, instead of in the specified tablelist cell:

  package require tablelist
  tablelist::tablelist .t -columns {0 "First Column" 0 "Another column"}
-stretch all -background white
  pack .t
  .t insert end [list "first row" "another value"]
  .t insert end [list "another row" "bla bla"]

proc makelabel {} {
label .l -text "Test" -bg blue
pack .l


.t cellconfigure end,1 -window [makelabel]

Any ideas?

Kevin Walzer
Code by Kevin

   proc makelabel {tbl row col w} {
     label $w -text "Test" -bg blue
     pack  $w

   .t cellconfigure end,1 -window makelabel

See http://www.nemethi.de/tablelist/tablelist.html

  Gerhard Reithofer
  Tech-EDV Support Forum - http://www.tech-edv.co.at/vcms/

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc