With to use this in my source, but the cursor does not move to the calculated point. StartVectorDrawing(CanvasVectorOutput(1)) Has anyone of you an idea how to solve my problem? I calculated it with the GadgetX and GadgetY values as addition and much more trials, but did not find a solution. If I move the mouse inside the scrollareagadget the cursor stays alway anywher outside the scrollaraegadget. If I use SetMousePos_() the mouse never is placed inside the scrollarea-gadget, it jumps around outside the scrollarea. Problem is to place the mouse inside the ScrollareaGadget at the calculated point. No problem to calculate this pixel center, the Procedure to calculate the centered mouseposition from the actual mouseposition is ready and functional! All Values in the debugwindow are ok. When I move the mouse over the picture I want the mousecursor to jump always into the center of each zoomed pixel. In Textile we call it a pointpapergrid! Grid is only visible with zoom 5 and higher! Over the Bitmap there is a black grid 1 pixel wide to seperate the pixels more visible and each 10 * 10 zoomed pixels the gridline is two pixels big. I show a zoomed Bitmap in this ScrollArea/Canvas.Įach BMP-pixel is zoomed to f.e. In a MainWindow there is a ScrollArea with a Canvas with an image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |