Bob,
> At 4:10 PM +0100 19-04-00, McCollister, Mike wrote:
> >However, my application lets the user select the bit depth
> using a pulldown
> >menu (popup trigger).
> >...
> >I switch back to color mode, not all of the colors are back.
> It is as if the
> >screen redraw does not look at the gadget and window colors.
>
> Hmm. It should just work. When you switch depths, the UI
> normally reloads
> the UI color table from the prefs (which Chrome modifies) or
> from the ROM.
>
> Maybe you could post the actual code?
Bob,
Here is some code that I wrote. Put this in an event loop to handle two
buttons.
// begin code segment here
case ctlSelectEvent:
switch(event->data.ctlEnter.controlID) {
case buttonID_color:
setDepth = 8;
WinScreenMode(winScreenModeSet, NULL, NULL, &setDepth, NULL);
FrmDrawForm(FrmGetActiveForm());
handled = true;
break;
case buttonID_gray:
setDepth = 4;
WinScreenMode(winScreenModeSet, NULL, NULL, &setDepth, NULL);
FrmDrawForm(FrmGetActiveForm());
handled = true;
break;
default:
handled = false;
break;
}
break;
// end code segment here
Thanks,
Mike McCollister
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html