Page 1 of 1

problem with winXP

Posted: Mon Apr 16, 2012 2:18 am
by 16562172
Quick question:

Just purchased TeeChart VCL for Delphi 7. I'm running windows 7 64 bit. TeeChart works fine in this environment. I created a small app and loaded it onto another computer (Acer notebook) running winXP SP3. When I run the app, it works OK but winXP initially presents the window off the extreme right of the display. I can see it on the taskbar. I can drag it to the center by grabbing the left edge of the window. Then the app works fine. Also had the same problem on another winXP desktop machine. The app works fine on another win7 desktop machine. I suspect the problem is the difference in screen resolution between the two computers. An ordinary Delphi 7 app that does not include a TeeChart chart works fine on the winXP machines.

Is there a way to get the app to load into the center of the winXP display? Thanks for any help.

Steve Pearce

Re: problem with winXP

Posted: Mon Apr 16, 2012 2:06 pm
by yeray
Hi Steve,

You can try forcing the form to be centred with this:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Self.Position:=poDesktopCenter;
end;

Re: problem with winXP

Posted: Mon Apr 16, 2012 11:59 pm
by 16562172
Yeray:

It worked - thank you very much!

Steve Pearce