Article View: news.software.readers
Article #59244Re: Xnews - Luu, a fix for the grayed - out close button
From: vtailor
Date: Wed, 15 Mar 2000 00:00
Date: Wed, 15 Mar 2000 00:00
34 lines
2226 bytes
2226 bytes
On 14 Mar 2000 22:20:37 -0500,
Wayne Menzie <waynem@bosmedtechdotcom.nospam> wrote:
>Luu,
>
>If you are interested, here is a fix for the close button being grayed out
>when the child window is maximized.
>
>It's not a vcl bug, but very old windows bug (at least from win3.1).
>The simplest way to do it is to make a little change in FORMS.PAS, but then
>you can't use packages:
>
>**** FORMS.PAS - line 2440 - problem with maximized MDI child,
> when merging menus:
>procedure TForm.MergeMenu(MergeState: Boolean);
>[snip]
> if MergeState and (FormStyle = fsMDIChild) and (WindowState =
>wsMaximized) then
> begin
> { Force MDI to put back the system menu of a maximized child }
>Size := ClientWidth + (Longint(ClientHeight) shl 16);
> SendMessage(Handle, WM_SIZE, SIZE_RESTORED, Size);
> SendMessage(Handle, WM_SIZE, SIZE_MAXIMIZED, Size);
>
> {!!!!! RWare}
> { Re-force MDI to put back the system menu of a maximized child }
>SendMessage(Handle, WM_SIZE, SIZE_RESTORED, Size);
> SendMessage(Handle, WM_SIZE, SIZE_MAXIMIZED, Size);
> end;
>
Whaddayaknow, Turbo Pascal strikes again. Where and how is the Pascal
source code available?
Technical Details
Message-ID:
<v1Mz4.159$hC3.27201@dfiatx1-snr1.gtei.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<8EF7E20F1wayneshammalammading@206.66.240.253>Show Full Headers
Complete Article Headers
Message-ID: <v1Mz4.159$hC3.27201@dfiatx1-snr1.gtei.net> Subject: Re: Xnews - Luu, a fix for the grayed - out close button Date: Wed, 15 Mar 2000 00:00:00 +0000 From: vtailor@gte.net () References: <8EF7E20F1wayneshammalammading@206.66.240.253> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 597785244 Distribution: world Followup-To: alt.dev.null X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@gte.net X-Trace: /bQNua9ygSN5kSG5EoUehTVKTnl08BwM1ygLD40ke0h2ECgNFsEJUkIsbehKDD+g9A1uIVDJft/X!jMDr9AfsLuZ4r+0JXmec4BOdm17f7aH8YtB8VfjFm4ihq3cifg+F1/14V2pE7b8IxruYd/ZwKBpG!uy+VsA== User-Agent: slrn/0.9.5.7 (Windows) Reply-To: vtailor@gte.net NNTP-Posting-Date: Wed, 15 Mar 2000 13:15:07 GMT Newsgroups: news.software.readers