Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

treectrl and item bbox

10 views
Skip to first unread message

Googie

unread,
Aug 27, 2006, 4:11:01 PM8/27/06
to
Hi,

I'm trying to place [entry] widget on treectrl cell (it's configured to
work as a datagrid) and I get its (the cell) coordinates by:

set geom [$tree item bbox $item_id $column_id]

when I use it:

place $frame_widget \
-x [lindex $geom 0] \
-y [lindex $geom 1] \
-width [expr {[lindex $geom 2]-[lindex $geom 0]}] \
-height [expr {[lindex $geom 3]-[lindex $geom 1]}]

I can see, that my frame widget is placed about 2 pixels on the right
from the correct position and about 2 pixels down from the correct
position.

What is the reason and what is the solution?

Thanks for help!

--
Pozdrawiam (Greetings)!
Googie

0 new messages