![]() |
AW: How to prevent window title bar height changes when app is maximized
thank you everyone.
I followed your valuable suggestions and somehow made it work.. It just works, however since we are capturing maximize action manually and setting the form size to desktop width and height, i cannot enable or display restore button. is there a way to show restore button after the form has been expanded to cover the screen? Is there a way to preven the form not to get expanded beyond task bar area? Currently the form gets expanded and goes under taskbar causing some of the elements to be hidden..
Code:
procedure TForm1.WMSyscommand(var Msg: TWmSysCommand);
begin case (Msg.cmdtype and $FFF0) of SC_MINIMIZE: begin // ... end; SC_RESTORE: begin // ... end; SC_MAXIMIZE: begin ShowMessage('ha Maximize'); Form1.Width := screen.Width; Form1.Height := screen.Height; Form1.Left := 0; Form1.Top := 0; exit; // use exit if you want to cancel maximize end; end; inherited; |
AW: How to prevent window title bar height changes when app is maximized
Zitat:
and from within a form method, NEVER use the global form variable!!!! |
AW: How to prevent window title bar height changes when app is maximized
Zitat:
is there a way to show restore button after the form has been expanded to cover the screen? Is there a way to preven the form not to get expanded beyond task bar area? Currently the form gets expanded and goes under taskbar causing some of the elements to be hidden.. |
AW: How to prevent window title bar height changes when app is maximized
Try
![]() Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:54 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz