FROM : Florian Soenens
DATE : Fri Dec 13 14:47:01 2002
Hello, i'm stuck withthe following:
I have an NSMatrix containing images of about 50x50 pixels.
The NSMatrix is part of a scrollview.
In the mousedown event of the matrix i do some things according to the
position of the mouse, wich i calculated, to select the right image of
the matrix.
This works fine, however, when the matrix has more images than can be
displayed, i have to scroll my scrollview, obviously. When the
scrollview is scrolled, the coordinates seem to be incorrect, thus the
wrong image gets selected.
Is there any way to get the scrollamount of a scrollview so i can
change my calculations, or is there a much simpler way wich i have not
yet discovered?
Thanks in advance,
Flor.
DATE : Fri Dec 13 14:47:01 2002
Hello, i'm stuck withthe following:
I have an NSMatrix containing images of about 50x50 pixels.
The NSMatrix is part of a scrollview.
In the mousedown event of the matrix i do some things according to the
position of the mouse, wich i calculated, to select the right image of
the matrix.
This works fine, however, when the matrix has more images than can be
displayed, i have to scroll my scrollview, obviously. When the
scrollview is scrolled, the coordinates seem to be incorrect, thus the
wrong image gets selected.
Is there any way to get the scrollamount of a scrollview so i can
change my calculations, or is there a much simpler way wich i have not
yet discovered?
Thanks in advance,
Flor.
| Related mails | Author | Date |
|---|---|---|
| Florian Soenens | Dec 13, 14:47 | |
| Steven Noyes | Dec 13, 14:58 | |
| John C. Randolph | Dec 13, 15:10 |






Cocoa mail archive

