Re: [Gambas-user] ScrollView properties

2011-06-27 Thread M. Cs.
Thanks! It works. 2011/6/26, tobias : > hi, > > to be more exact. you should use: > PRINT Mouse.ScreenX - PictureBox1.ScreenX > this will give the position of the mouse relative to PictureBox1's 0,0 > which is the same as your pictures 0,0 > > regards, > tobi > > --

Re: [Gambas-user] ScrollView properties

2011-06-26 Thread tobias
hi, to be more exact. you should use: PRINT Mouse.ScreenX - PictureBox1.ScreenX this will give the position of the mouse relative to PictureBox1's 0,0 which is the same as your pictures 0,0 regards, tobi -- All of the d

Re: [Gambas-user] ScrollView properties

2011-06-26 Thread tobias
hi, i am really tired today so i think that's the reason why i don't understand entirely what you want but i think i know... you have a big picture in a ScrollView which is scrolled somewhere and you want to track the mouse position relatively to 0,0 on your picture, right? i thought about this

[Gambas-user] ScrollView properties

2011-06-26 Thread M. Cs.
How can get the the minimum and maximum value of scrolling position of a ScrollView? The task I'd like to solve is to open a picture which is put into a PictureBox inside a ScrollView. My problem is how to get the right X and Y coordinates under the mouse pointer, but related to the (0,0) coordina