I love David's "hypothetical" hints!!! ;^)
-----Original Message----- From: David Fedor [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 3:24 PM To: Palm Developer Forum Subject: Re: unexpected coordinate system >I am working on my first high res app, and menu.c says unexpected >coordinate system when I open a menu. > >The relevant code in my form open event handler: > >WinScreenMode (winScreenModeSet, NULL, NULL, &depth, NULL); >WinSetCoordinateSystem (kCoordinatesDouble); >win = WinCreateOffscreenWindow(160, 160, screenFormat, &error); >destWin = FrmGetWindowHandle( frmP); > >What am I doing wrong here? Not setting things back to the previous coordinate system before continuing on with your code? You should call WinSetCoordinateSystem again. And I don't remember for 100% sure but I think you should create a double-density window using WinCreateOffscreenWindow (... nativeFormat...) instead of calling WinSetCoordinateSystem. (After all, what if you're on a hypothetical quadruple density system? You don't want double density; you want native density.) The #1 confusion about high density is when people think they make a call to turn it on, and then just turn it off when their app quits. Instead, you should normally operate in whatever density is already set, and only call WinSetCoordinateSystem in very unusual situations where you really care about pixels - which is so rare, most apps (other than animations and drawing apps) wouldn't ever do it. This can be confusing, but it turns out to be very little work once you get the basic concepts down. Most apps don't need to do anything but include higher-density versions of their bitmaps, so think carefully before you start adding code. See the knowledge base articles on high density, not to mention the docs. -David Fedor PalmSource, Inc. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ ------------------------------------------ The information in this transmittal and any attachments are confidential and intended only for the recipient(s) listed above. You are hereby notified that any unauthorized distribution or copying of this transmittal or its attachments is prohibited. If you have received this transmittal in error, please notify invivodata immediately at (831) 438-9550. ------------------------------------------ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
