BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detect WindowsState

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General)
View previous topic :: View next topic  
Author Message
Andy
Guest





PostPosted: Sun Oct 22, 2006 6:42 am    Post subject: Detect WindowsState Reply with 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.

Thanks in advance.

Andy
Back to top
Liz
Guest





PostPosted: Sun Oct 22, 2006 8:12 am    Post subject: Re: Detect WindowsState Reply with quote



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





PostPosted: Sun Oct 22, 2006 8:12 am    Post subject: Re: Detect WindowsState Reply with quote



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





PostPosted: Sun Oct 22, 2006 8:12 am    Post subject: Re: Detect WindowsState Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (General) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.