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

Re: [XaraXtreme-dev] GetRect() doesn't do what you think it does



Hi Alex.

That is how I suspected it should work. Thanks! In other words, GetRect() always returns the rect relative to the parent coordinate system.

Alex Bligh wrote:

Beware: GetRect() doesn't do what you think it does. It returns screen
coordinates if you call it from a wxTopLevelWindow, but coordinates
relative to the parent if from another window (aaargghhh).

Alex



--
================================
Mark Loumbert, CEO, Brave Orange
http://www.photoshaman.com