Unwanted tablelist scrolling during cellconfigure
- From: "neuronstorm@xxxxxxxxx" <neuronstorm@xxxxxxxxx>
- Date: 2 Mar 2006 09:04:00 -0800
I'm using Csaba Nemethi's tablelist 4.2 widget (on windows) and it's
working nicely except for one small annoyance.
When a row is partially visible under the title row, then when the
-text property of a cell in that row is set using cellconfigure - the
row 'helpfully' jumps into view i.e the textbox scrolls down a touch.
This can can cause some pretty annoying jumping about depending on how
your table is sized and if you want to use the 'see' command when
adding new entries.
I'd really prefer that the table didn't scroll at all unless I
explicitly call the 'see' command, or the user scrolls.
This automatic jumping when data is changed doesn't seem to happen for
other properties such as the cell's background colour.
It also doesn't happen for a partially visible row at the bottom of the
table
Does anyone know a way around this issue?
To reproduce.
#in a wish console:
package require tablelist
tablelist::tablelist .table -columns {0 "title"} -stretch all
pack .table -side top -fill both -expand 1
..table insert end row0
..table insert end row1
..table insert end row2
..table insert end row3
#now use your mouse to stretch the bottom of the toplevel window so
that just the very bottom of the text "row3" is slightly obscured
..table see end
#At this point the very top of "row0" should be obscured
..table cellconfigure 0,0 -text "sometext"
#The above command makes the list jump down a touch to make "sometext"
completely visible - this is what I don't want!
..table see end ;#re-obscure the top of row 0
..table cellconfigure 0,0 -bg yellow
#notice that setting this property doesn't cause the jump.
Cheers,
Julian
.
- Follow-Ups:
- Re: Unwanted tablelist scrolling during cellconfigure
- From: Csaba Nemethi
- Re: Unwanted tablelist scrolling during cellconfigure
- From: neuronstorm@xxxxxxxxx
- Re: Unwanted tablelist scrolling during cellconfigure
- Prev by Date: Re: dynamic variables generation
- Next by Date: tcom error 0x800401e3 when trying to connect with IE
- Previous by thread: "edit separator" in text widget undo/redo mecanism
- Next by thread: Re: Unwanted tablelist scrolling during cellconfigure
- Index(es):
Relevant Pages
|