Re: Tablelist visible rows
- From: nemethi <csaba.nemethi@xxxxxxxxxxx>
- Date: Mon, 13 Jun 2011 12:03:02 +0200
Am 13.06.2011 10:41, schrieb Julian H J Loaring:
Does anyone know how to determine the number of visible rows currently
displayed in a Tablelist (or listbox for that matter) ? The -height
option sets the desired height in lines (rows) but does not reflect
the actual number lines on show.
kind regards
Julian H J Loaring
Same method for tablelist and listbox widgets:
set topRow [$tbl index @0,0]
set btmRow [$tbl index @0,[winfo height $tbl]]
set visibleCount [expr $btmRow - $topRow + 1]
--
Csaba Nemethi http://www.nemethi.de mailto:csaba.nemethi@xxxxxxxxxxx
.
- Follow-Ups:
- Re: Tablelist visible rows
- From: Julian H J Loaring
- Re: Tablelist visible rows
- References:
- Tablelist visible rows
- From: Julian H J Loaring
- Tablelist visible rows
- Prev by Date: Re: Problem with expr and/or () vs {} vs []
- Next by Date: Re: How to use/understand <Expose> events on MS Windows
- Previous by thread: Tablelist visible rows
- Next by thread: Re: Tablelist visible rows
- Index(es):
Relevant Pages
|