Delphi program has problems with Vista & Aero in fullscreen

Posted on 2007-03-22
Last Modified: 2008-01-09
I have problems with my application under Vista and Aero in Fullscreen.

On the mainwindow I have a panel PanelA with two labels (LabelA and LabelB)
(I have many of these panels, but the problem appears also when I use only one)
I have a drawbox with an OnMouseMove event which is filling the LabelB with the mouse position.

So I run within of OnMouseMove the following code

a)  LabelB.Caption := MousePosX;
b)  LabelB.Left  := LabelA.Left + LabelA.Width;
c)  LabelB.Width := PanelA.Width - LabelB.Left - LabelA.Left;

This worked fine with all Windows versions till now. Also Vista (with no Aero) has no problems with it. But if I use Aero and the application is in fullscreen mode then I have the problem that the mainmenu of the mainwindows is flickering like crazy. It looks so whether the Mainform is redrawing itself again and again.
I do not have a developer environment on Vista - so I cannot test more detailed.

The machine has an onboad ATI Radeon Xpress 1100 which is Aero certified. It has the current ATI driver installed.

The problem does not appear while I use only b) OR c) !

Any idea what could be the reason? Is this a driver problem or a problem with Aero or ...?

Btw I use BDS 2006.

Question by:Treppenmeister
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
LVL 18

Accepted Solution

Johnjces earned 500 total points
ID: 18771851
My first question would be, are you using any of the code provided on the net that enables the glassing interface and all the Aero desktop stuff?

There is a unit called uVistaFuncs.pas which may help you with this problem.

also another unit, very similar, called VistaReady.pas and it is available off the BDN developers pages. 


for the unit.



Author Comment

ID: 18772400
I did not use any code from the net.
Does this mean that all delphi applications without tools like VistaReady won't work properly with Aero?

LVL 18

Expert Comment

ID: 18772855
Yes sir! It sure does.

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 18

Expert Comment

ID: 18772858
Also, make sure you have a good Vista Manifest compiled in especially if your application does any file write.

LVL 18

Expert Comment

ID: 18779880
Did this help you or help solve your problem?

Author Comment

ID: 18791184
I didn't have the time yet - was only reading the websites. But I doubt that this could help (or Vista is behaving very weird).
LVL 18

Expert Comment

ID: 19057362
Did any of this help you? If not, please let us know. If so please accept one, or ask that your question be deleted and get refund of points.

Author Comment

ID: 19186165
I am sorry to say that nothing really helped. I redesigned some forms to avoid the problem. Perhaps it has also somthing to do with the graphics driver. In my opinion the problems appear when there are laying several components on each other or overlaying.  Then the 'glass'-property is behaving weird.

But you tried to help and your links were a general help to me. So I decided to appreciate your help.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question