Recent

Author Topic: [Solved] Let Form stay in front  (Read 5171 times)

T-bear

  • Full Member
  • ***
  • Posts: 160
[Solved] Let Form stay in front
« on: April 15, 2011, 06:50:48 pm »
Hi,
Is it possible to let a form stay in the front even if you click another Form?
Thanks!  :D
« Last Edit: April 15, 2011, 06:58:15 pm by T-bear »

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: Let Form stay in front
« Reply #1 on: April 15, 2011, 06:55:25 pm »
Form Style: fsStayOnTop in the Object inspector somewhere

T-bear

  • Full Member
  • ***
  • Posts: 160
Re: Let Form stay in front
« Reply #2 on: April 15, 2011, 06:58:02 pm »
Thanks!

Zoran

  • Hero Member
  • *****
  • Posts: 1988
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Let Form stay in front
« Reply #3 on: April 15, 2011, 08:27:36 pm »
FormStyle property "fsStayOnTop" means that form will stay on top of other forms in the same application.
If you want your form to stay on top globally, then you should set it to "fsSystemStayOnTop".

In Lazarus_0.9.30_release_notes article, you can find this:

Quote
TCustomForm.FormStyle added fsSystemStayOnTop.Meaning is same as with fsStayOnTop except that fsStayOnTop is form on app top, so when application deactivates fsStayOnTop is not on top of other application(s), fsSystemStayOnTop is always on top.
« Last Edit: April 15, 2011, 08:32:05 pm by Zoran »
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

 

TinyPortal © 2005-2018