Re: Unwanted tablelist scrolling during cellconfigure
- From: Csaba Nemethi <csaba.nemethi@xxxxxxxxxxx>
- Date: Thu, 02 Mar 2006 23:29:40 +0100
neuronstorm@xxxxxxxxx schrieb:
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
I haven't been able to reproduce your problem. I am also somewhat surprised to hear that the topmost row in the window gets partially obscured. I don't understand how this could happen, because Tablelist uses a text widget for displaying the items, and a text widget can only adjust the vertical view by lines, not by pixels (as of Tk 8.4.12). For this reason, only the last row in the window can get partially obscured.
Are you sure that this example script works as described in your first posting?
Could anybody else reproduce the problem?
Best regards,
Csaba
--
Csaba Nemethi http://www.nemethi.de mailto:csaba.nemethi@xxxxxxxxxxx
.
- Follow-Ups:
- Re: Unwanted tablelist scrolling during cellconfigure
- From: neuronstorm@xxxxxxxxx
- Re: Unwanted tablelist scrolling during cellconfigure
- References:
- Unwanted tablelist scrolling during cellconfigure
- From: neuronstorm@xxxxxxxxx
- Unwanted tablelist scrolling during cellconfigure
- Prev by Date: Re: last element in string
- Next by Date: Re: Checksum
- Previous by thread: Re: Unwanted tablelist scrolling during cellconfigure
- Next by thread: Re: Unwanted tablelist scrolling during cellconfigure
- Index(es):
Relevant Pages
|