Recent

Author Topic: Form size  (Read 5175 times)

Zath

  • Sr. Member
  • ****
  • Posts: 391
Form size
« on: June 17, 2013, 01:30:03 am »
How do I fix the form size to my design size ?
Is there a non expandable bordersize style setting or am I required to set min / max width and height to stop a user resizing a form at run time ?

Thanks

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Form size
« Reply #1 on: June 17, 2013, 01:35:48 am »
set BorderStyleto bsDialog or bsToolWindow
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: Form size
« Reply #2 on: June 17, 2013, 01:45:29 am »
You can also set the property Constraints.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Zath

  • Sr. Member
  • ****
  • Posts: 391
Re: Form size
« Reply #3 on: June 17, 2013, 01:48:51 am »
set BorderStyleto bsDialog or bsToolWindow

The dialog option seems to work but you only get the x close icon and no minimize even though the settings say it should be on.
After using Dialog, then ToolWindow (same minimize border icon missing) the form stretches to my screen size on run.

Weird.

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Form size
« Reply #4 on: June 17, 2013, 01:52:09 am »
true various border styles support various abilities if you want to for example bsdialog does not support minimize, maximize, restore at all if you want to support everything a bssizeable does then just use the constrains as blaazen suggests.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Zoran

  • Hero Member
  • *****
  • Posts: 1948
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Form size
« Reply #5 on: June 17, 2013, 10:23:38 am »
set BorderStyleto bsDialog or bsToolWindow

The dialog option seems to work but you only get the x close icon and no minimize even though the settings say it should be on.
After using Dialog, then ToolWindow (same minimize border icon missing) the form stretches to my screen size on run.

Weird.

Try bsSingle.
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

 

TinyPortal © 2005-2018