![]() |
| ||
| wxCanvas-Get current coordinates Hi, this is my code: # -*- coding: cp1250 -*-As you can see, its scrolled canvas and i need to get current coordinates of part of canvas which i can see (sory my english). For exapmle: If i run my code, that left up corner is (0,0) and down right corner is (500,500). Thanks! |
| ||
| Re: wxCanvas-Get current coordinates This will give the mouse position within the whole scrolled canvas ... """ |
| ||
| Re: wxCanvas-Get current coordinates Thanks for fast answer, but i need something else. I dont know how to say it in english, so i painted it: http://www.blujacker.wz.cz/coords.jpg |
| ||
| Re: wxCanvas-Get current coordinates Lol, solved... i am really noob. The solution is: up_left_corner=self.canvas.CalcUnscrolledPosition(0, 0) |
| All times are GMT -4. The time now is 3:40 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC