Recent

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

WickedDum

  • Full Member
  • ***
  • Posts: 211
[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: 14373
  • Sensorship about opinions does not belong here.
Re: Window (form) location
« Reply #1 on: October 02, 2016, 10:32:10 am »
form.position := poDeskTopCenter;
form.BorderStyle := bsDialog;
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

WickedDum

  • Full Member
  • ***
  • Posts: 211
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

 

TinyPortal © 2005-2018