oops - ListModelView protocol
authorClaus Gittinger <cg@exept.de>
Wed, 20 Sep 2006 15:30:26 +0200
changeset 3398 d5c915fe3d92
parent 3397 cd20f51edc25
child 3399 c350a2e3efee
oops - ListModelView protocol
ListView.st
--- a/ListView.st	Mon Sep 18 22:17:59 2006 +0200
+++ b/ListView.st	Wed Sep 20 15:30:26 2006 +0200
@@ -2826,6 +2826,15 @@
      - works for fix-height fonts only"
 
     ^ ((visLineNr - 1) * fontHeight) + textStartTop
+!
+
+yVisibleToLineNr:yVisible
+    |vL|
+
+    vL := self visibleLineOfY:yVisible.
+    ^ self visibleLineToListLine:vL
+
+    "Created: / 20-09-2006 / 15:29:12 / cg"
 ! !
 
 !ListView methodsFor:'queries'!
@@ -4483,5 +4492,5 @@
 !ListView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/ListView.st,v 1.311 2006-08-22 10:15:26 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/ListView.st,v 1.312 2006-09-20 13:30:26 cg Exp $'
 ! !