Well OK, but in the case of the Palm V and IIIx (I think) the display
behaves differently than previous devices when using grayscale (2-bit) mode.
Let me be more specific.  My application, ExpensePlus, which uses grayscale
bitmaps extensively, looks horrible on the V because of this difference in
the display.  What appears to happen is that when I call ScrDisplayMode(),
the user preference for contrast is forgotten, and a system default (which
looks really bad) is employed instead.   It also appears that the palette
used for 2-bit mode is different on the V vs. the III.  Is there a way to
select the shade of gray for each of the 4 "colors"?  I did see a hack
posted on this list for doing this, but if there's a "better" way of doing
it please let me know.

So I need a way to 1) detect that I'm running on a device that behaves this
way (the Palm III works just fine, I don't know about the IIIx since I don't
have one), and 2) I also need a way to fetch the user preference for
contrast and then a way to reset it after ScrDisplayMode() is called.  I
know that ScrDisplayMode() resets the display, this is ok, I just need to be
able to make things look right for the user.  Bottom line is I need to know
something about the device I'm running on and how the display behaves on
that particular device.

David, I've sent in requests for help on this to devsupp but have only
received back the automatic reply.  Questions seem to get answered faster in
the list than through proper channels.. do you know how I can fetch the
contrast preference and reset it after the display has been reset?

Ron Flax
Flax Consulting Group
<http://www.flaxgroup.com>


> -----Original Message-----
> Date: 15 Mar 1999 12:59:36 -0800
> From: David Fedor <[EMAIL PROTECTED]>
> Subject: Re: Detecting hardware
>
> In general, you shouldn't ever say "Am I on a Palm V device" or whatever.
> You should be asking the question "does this have a software contrast
> control button".  That way you're not limiting yourself to only working
> correctly on current products.

Reply via email to