[DUG] Preventing form minimise

Ross Levis ross at stationplaylist.com
Wed Nov 14 16:49:08 NZDT 2007


Just disable the Minimize button in the BorderIcons Property in the IDE.

Ross.

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of John Bird
Sent: Wednesday, 14 November 2007 2:29 p.m.
To: 'NZ Borland Developers Group - Delphi List'
Subject: [DUG] Preventing form minimise

Is there any simple way to prevent a form from being minimised other than
setting the border style to bsToolwin etc (which removes the minimise
button, but also removes the ability to resize the window).

This is not the main application window, but a secondary form and I have
found users get confused if they minimise it rather than closing it to get
back to the main form, so I would like to prevent it being minimised....

The form onHide event seems to apply to the window being closed rather than
minimised....

John



More information about the Delphi mailing list