Scrolling Drawing Area



Hello,
 
I have a drawing area within a ScrolledWindow. I want to scroll the drawing area appropriately whenever my mouse pointer moves out of the boundary of the enclosing window. That is, I want to scroll the drawing area such that the user may get to see a coordinate of the darea (if it is not already visible within the window) when the mouse moves out of the main window in the appropriate direction.
 
I just don't know how to go about it. I mean, how do I know whether a point of the drawing area is visible to the user, within the window ?? And, how do I scroll the darea to have the point in the middle of the window ???
 
Hope that you guys will be able to solve this problem of mine........Thanks :-)
 
Sandy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]