Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Oct : Re: Application Not Responding to Caption Button to Close

www.cryer.info
Managed Newsgroup Archive

Re: Application Not Responding to Caption Button to Close

Subject:Re: Application Not Responding to Caption Button to Close
Posted by:"Howdee" (howd..@email.si)
Date:Thu, 26 Oct 2006 01:21:06

You might want to try custom override to the WndProc procedure:

<form declaration part>
...
  public
    { Public declarations }
    IconData : TNotifyIconData;
    procedure WndProc(var Msg : TMessage); override;
...

<implementation part>
...
procedure TForm1.WndProc(var Msg : TMessage);
begin
  case Msg.Msg of
    WM_CLOSE: begin
                               //Free child objects & form...
                            end;
  end else  inherited;
end;
...

Best, MyK.

"Johnnie Norsworthy" <jln206@verizon.net> wrote in message
news:453e9cd5$1@newsgroups.borland.com...
>I have a main form with a number of embedded forms added dynamically at
>run-time. One of the embedded forms hosts Internet Explorer 7.
>
> For some reason, which I can only relate to installing IE7, the caption
> button to close the application [X] does not seem to work anymore.
>
> Any idea why this is happening or a way I can force the button back to a
> working state? I tried Application.BringToFront, but that didn't seem to
> help.
>
> Thanks,
>
> -Johnnie

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive