🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16504

Re: BorderIcon Question

#16504
From: JD
Date: Sun, 11 May 2003 19:20
23 lines
1582 bytes
"Jim" <junk1@imperialstar.com> wrote:
> [...] Now I have each ActivePage check the WindowState to see
> if the program has been maximized, and if so it keeps the
> ActivePage maximized and if not it uses the original
> predifined dimensions.

It sounds as if using the forms OnResize event will work nicely
for you. OnResize is fired after the form has been resized.


void __fastcall TForm1::FormResize(TObject *Sender)
{
    switch( WindowState )
      {
      case wsNormal:    // set page sizes to normal sizes
                        break;
      case wsMaximized: // set page sizes to maximized sizes
                        break;
      }
}

~ JD
Technical Details
Message-ID: <3ebea26c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ebe3c36@newsgroups.borland.com> <3ebe5dda$1@newsgroups.borland.com> <3ebe8e58@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,75b9b16b9fc71b77
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-11 12:26:21 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: BorderIcon Question
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.137.117.198 172.137.117.198    
References:  <3ebe3c36@newsgroups.borland.com> <3ebe5dda$1@newsgroups.borland.com> <3ebe8e58@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ebea26c$1@newsgroups.borland.com>
Date: 11 May 2003 12:20:12 -0700
X-Trace: newsgroups.borland.com 1052680812 207.105.83.65 (11 May 2003 12:20:12 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail