Problem: 1664953

Title: Problems tearing off menus

Received: Jun 24 1997 5:09PM


When you try to tear off a TTearOffMenuView, it won't tear off on the left side of the menu. You can only tear it off if you move the cursor off the right or bottom edge of the menu.
There are places in TTearOffMenuView and TTearOffTracker where local points are compared with regions that use global coordinates (fTearOffTrackingRegion and fTearOffWindowOutline). For example, nextPoint and previousPoint in TTearOffTracker::TrackMouse are in local (menu view) coordinates, and are mixed with global coordinates. Also I don't think the LocalToGlobal calls in TTearOffMenuView::GetTearOffTrackingRegion do the right thing.