| View previous topic :: View next topic |
| Author |
Message |
Andy Guest
|
Posted: Sun Oct 22, 2006 6:42 am Post subject: Detect WindowsState |
|
|
What component or code do I need to detect the form's WindowState like
wsMaximized and wsMinimized? I need to write code to change the form's
BorderStyle appropriately.
Thanks in advance.
Andy |
|
| Back to top |
|
 |
Liz Guest
|
Posted: Sun Oct 22, 2006 8:12 am Post subject: Re: Detect WindowsState |
|
|
Andy wrote:
| Quote: | What component or code do I need to detect the form's WindowState
like wsMaximized and wsMinimized? I need to write code to change the
form's BorderStyle appropriately.
|
check the forms windowstate?
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings |
|
| Back to top |
|
 |
Liz Guest
|
Posted: Sun Oct 22, 2006 8:12 am Post subject: Re: Detect WindowsState |
|
|
Andy wrote:
| Quote: | Thanks for the response. Where would you put code to check the
WindowState? Should it be on the form's OnShow, OnActivate or
OnPaint? Or is it more complicated than that? I think there is
Application.OnMinimize where I can check for Minimize but there is no
corresponding OnMaximize.
|
yep theres an app on minimize, and an onrestore. restore is when it
returns to normal if you check the onresize you can test max there. Or,
trap the messages at a guess, although I would guess if you're changing
the boreders after the fact it may not have the desired effect.
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings |
|
| Back to top |
|
 |
Andy Guest
|
Posted: Sun Oct 22, 2006 8:12 am Post subject: Re: Detect WindowsState |
|
|
Hi Liz,
Thanks for the response. Where would you put code to check the WindowState?
Should it be on the form's OnShow, OnActivate or OnPaint? Or is it more
complicated than that? I think there is Application.OnMinimize where I can
check
for Minimize but there is no corresponding OnMaximize.
Thanks for any help in advance.
Andy
"Liz" <liz_wants_no_spam (AT) xcalibur (DOT) nospam.co.uk> wrote in message
news:xn0esrnms1fg4e7004 (AT) newsgroups (DOT) borland.com...
| Quote: | Andy wrote:
What component or code do I need to detect the form's WindowState
like wsMaximized and wsMinimized? I need to write code to change the
form's BorderStyle appropriately.
check the forms windowstate?
--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings |
|
|
| Back to top |
|
 |
|