Recent

Author Topic: To cancel 'maximize' button of form  (Read 10499 times)

asdf

  • Sr. Member
  • ****
  • Posts: 310
To cancel 'maximize' button of form
« on: March 28, 2011, 06:09:56 am »
How can I cancel these two buttons in Form1 ?
Lazarus 1.2.4 / Win 32 / THAILAND

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: To cancel 'maximize' button of form
« Reply #1 on: March 28, 2011, 06:19:17 am »
Through the BorderIcons Form's property.

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: To cancel 'maximize' button of form
« Reply #2 on: March 28, 2011, 10:14:09 am »
Or set BorderStyle to bsSingle. That also makes the form non-resizeable, in case you need that (or not).
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

asdf

  • Sr. Member
  • ****
  • Posts: 310
Re: To cancel 'maximize' button of form
« Reply #3 on: March 28, 2011, 03:54:23 pm »
The button is still visible.
Is there any way to make it invisible ?
Lazarus 1.2.4 / Win 32 / THAILAND

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: To cancel 'maximize' button of form
« Reply #4 on: March 28, 2011, 04:25:10 pm »
The button is still visible.
Is there any way to make it invisible ?

The maximize button can be hidden only if Minimize button is hidden.
As typo said, check the BorderIcons property of the form and disable maximize and minimize buttons
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: To cancel 'maximize' button of form
« Reply #5 on: March 28, 2011, 04:52:35 pm »
Maximize button is hidden with bsSingle, bsDialog.
Minimize button is hiddenwith bsToolWin.
It seems bordericons settings makes no influence.
I am on Linux+Qt.
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/

 

TinyPortal © 2005-2018