Menu

#18 rudimentary graphics in blt::hiertable

open
nobody
None
5
2005-05-17
2005-05-17
Genia
No

Run:
wish8.4 test.tcl

Now resize the window and make "Name" column
smaller. The right side of the widget is colored in black
instead of white and in some cases it is not colored at
all, leaving chaotic picture.

Is this a known issue? Do you have some workaround
or patch?
Thanks in advance,
Genia

The test case itest.tcl s the following:

package require BLT
package require BWidget

image create bitmap Bitmap::none -data {
#define none_width 1
#define none_height 1
static unsigned char none_bits[] = {0x00 };
}

pack [ScrolledWindow .sw] -fill both -expand 1
set tree [blt::tree create .tree]
set table [blt::hiertable [.sw getframe].t\ -hideroot 1 -linewidth 0 -height 1 -width 1\ -borderwidth 1 -highlightthickness 0 -separator .\ -resizecursor sb_h_double_arrow -tree $tree\ -selectmode multiple -relief flat -background white]
.sw setwidget $table

$table column insert end value -text "Value" -edit 0\ -command [list list] -justify right -weight 0

set title [lindex [$table column names] 0]

$table entry configure root -icons Bitmap::none
$table column configure $title -text "Name"

$table delete root
$table insert -at root end kuku -label kuku

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.