> Irwin Scollar wrote:
> Subject: Problems while creating/running apps for Vista
> 
> 
> >CubicDesign wrote:
> >
> >Do you mean that XPMan is not compatible with Vista?
> 
> XPMan is for XP only as far as I can determine, although it doesn't
> seem to do any harm under Win2000 or WinNT4.
> 
> A program using it under Vista may show loss of colors in
> buttons/toolbars/dialog boxes and other problems.  Removing XPman
> from the source solves the problem for Vista, but doesn't offer the
> XP look under XP.
> 

I *think* (pretty sure) that the XP manifest works under Vista as well,
and it goes like this: This manifest instructs the operating system to
use COMCTRL32 version 6+ for the application containing the manifest.
Starting with Windows XP this DLL introduces theeming (the nice colorful
buttons). It probably does the same under Vista, I've certainly used it
and my applications look just fine under Vista.

The trouble with lost colors is the same as in XP, also it might apply
to more GUI elements. Theemed GUI components (like buttons) are actually
bitmap-rendered. You can't change colors in a bitmap so that's why
certain things lose color under XP (and probably under Vista too).

If you remove the XP manifest from your applications they will be linked
to the version 5 COMCTRL32 DLL - and that one does the painting "the old
fashioned way". So it gets a chance to use the colors you specified in
Object Inspector for buttons, panels and other elements.

While removing the manifest from the application offer some temporary
relief, they also introduce problems - they make your application look
different then other applications running on the same system. A better
solution would be to disable theeming on a per-control basis, as
required, so one can have a red panel or blue toolbar where required but
have the native XP/Vista look in all other places.

--
Cosmin Prund 
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to