Painting problem with Vista



Hello,

I have been breaking my head on the following problem all morning but can't figure out what's wrong.

I have a component that derives from TDBGrid but implements it's own painting function. The problem is that the component does not display the contents but instead only the colored background. This problem only occurs when I compile + run the application on Vista:

Compiling with D2007 on Vista and running on Vista:
The component does not display the contents anymore, but instead
only the colored background.

Compiling with D2007 on Vista and running on Win2000:
Everything OK

Compiling with D2006 on Vista and running on Vista or Win2000:
Everything OK

One thing I noticed was that when the problem occurs, the clipping rectangle of the Canvas is not correctly set but instead has a Top value of 35 instead of 0.

I hope someone can give me a hint on what to look for.

Regards,

Kees Vermeulen
Kever-IT

.



Relevant Pages

  • OleCreatePropertyFrame - Same Code Fails on Vista but not on XP.
    ... I compiled it both on XP and on Vista. ... Clicking on each tab works fine and displays the right stuff on ... GraphEditPlus has no problem displaying the Audio Properties tab in either ... downloading the source and compiling it and testing it myself to see where it ...
    (microsoft.public.win32.programmer.ole)
  • Re: Delphi v5.0 vs 2007
    ... I am scanning this group for info on vista because we have had some weird ... variables behaving as though they were global and units not compiling, ... The vista install was done ... Nicholas said in another post "Delphi 2007 has support for Vista. ...
    (alt.comp.lang.borland-delphi)
  • RE: Hosting Preview Handler In DotNet Application?
    ... Thanks for the reply, I am running it now on a 32-bit os, and its compiling ... UAC is turned off, so is running with full administrator ... is based on x86) application on the same 64-bit version Vista that we were ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Vista Themed Controls
    ... You shouldn't be getting the XP theme in your application forms on Vista. ... the form will be automatically rendered using Windows Aero. ... Are you compiling using Visual Studio 2005? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Desktop Display Problem/UPDATE-WONT START!
    ... Do get the recovery discs from HP or make your own using the HP utility. ... Especially not the Vista Home Edition backup because it doesn't backup the Vista OS, drivers or other software, only your personal files. ... External static isn't very likely to be the cause of your display problem but an internal electrical problem could be. ... the discs would be the next thing to try before giving it up as a warranty ...
    (microsoft.public.windows.vista.hardware_devices)