Recent

Author Topic: [Solved]Form don't appear on a computer where Lazarus is not installed!!!  (Read 906 times)

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 331
  • Love my Wife, My Kids and Lazarus/Freepascal.
Hi friends.
When i copy my exe file to a different computer, where Lazarus is not installed, one of my forms wouldn't appear,
after these commands:   
form2.show;
form1.hide;

If i run my exefile of my project:
Form2 will show, when I run it in the computer where Lazarus is installed, but not in the computer, where Lazarus is not installed!

Form 2 will not appear!

Anyone understand what's going on?

Thanks in advance

Bob       
« Last Edit: May 01, 2020, 02:31:29 pm by Robert William Blennerhed »
Rob

PascalDragon

  • Hero Member
  • *****
  • Posts: 5938
  • Compiler Developer
Re: Form don't appear on a computer where Lazarus is not installed!!!
« Reply #1 on: April 30, 2020, 12:08:04 pm »
Did you design your application on a multi monitor system? Try to set your form's Position property to poDesktopCenter, poScreenCenter, poWorkAreaCenter or (if it's a secondary form) poMainFormCenter/poOwnerFormCenter.

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 331
  • Love my Wife, My Kids and Lazarus/Freepascal.
Re: Form don't appear on a computer where Lazarus is not installed!!!
« Reply #2 on: April 30, 2020, 12:17:20 pm »
Good suggestions and thanks for the quick reply but, form2  appear outside the mainform, on the right side of the screen in poDesigned mode and will not be in the screen center.

But i will see if this make the form appear to set in to poScreencenter.

/Bob

Rob

Robert W.B.

  • Sr. Member
  • ****
  • Posts: 331
  • Love my Wife, My Kids and Lazarus/Freepascal.
poMainFormCenter is the solution. Thanks
Rob

 

TinyPortal © 2005-2018