* * *

Author Topic: [SOLVED] Window (form) location  (Read 612 times)

WickedDum

  • Full Member
  • ***
  • Posts: 209
[SOLVED] Window (form) location
« on: October 02, 2016, 09:56:57 am »
I am working on a window (form) that I want to stay in the middle of the computer screen but not Full Screen (maximized).  I do not want the user to be able to increase the size of the window, either.

How do I do that?

Thanks!
« Last Edit: October 03, 2016, 09:23:01 pm by WickedDum »
Practice Safe Computing!!

Intel i5-4460K @ 3.2GHz | Win8.1 64-bit | FPC: v3.0 | Lazarus:  v1.6.0

Thaddy

  • Hero Member
  • *****
  • Posts: 3053
Re: Window (form) location
« Reply #1 on: October 02, 2016, 10:32:10 am »
form.position := poDeskTopCenter;
form.BorderStyle := bsDialog;

WickedDum

  • Full Member
  • ***
  • Posts: 209
Re: Window (form) location
« Reply #2 on: October 03, 2016, 09:22:46 pm »
Thanks, Thaddy!!

That will do it!   :)

(Didn't know there was "form." object.)
Practice Safe Computing!!

Intel i5-4460K @ 3.2GHz | Win8.1 64-bit | FPC: v3.0 | Lazarus:  v1.6.0

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus