Thread View: news.software.readers
6 messages
6 total messages
Started by Wayne Menzie
Tue, 14 Mar 2000 00:00
Xnews - Luu, a fix for the grayed - out close button
Author: Wayne Menzie
Date: Tue, 14 Mar 2000 00:00
Date: Tue, 14 Mar 2000 00:00
32 lines
1723 bytes
1723 bytes
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;
Let me know what you think.
Wayne Menzie
Re: Xnews - Luu, a fix for the grayed - out close button
Author: 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?
Re: Xnews - Luu, a fix for the grayed - out close button
Author: dollface
Date: Thu, 16 Mar 2000 00:00
Date: Thu, 16 Mar 2000 00:00
12 lines
1051 bytes
1051 bytes
Luu Tran wrote: >>If you are interested, here is a fix for the close button being >>grayed out when the child window is maximized. > >It works. Thanks. Good. I can now take out that FAQ :) heh heh...odd, I just minimized and then maximized the group window, the close button is now "available". I'd never tried that before. :)
Re: Xnews - Luu, a fix for the grayed - out close button
Author: Wayne Menzie
Date: Thu, 16 Mar 2000 00:00
Date: Thu, 16 Mar 2000 00:00
19 lines
1467 bytes
1467 bytes
luutran@geocities_.com.invalid (Luu Tran) wrote in <8EF8C46C2luutrangeocities@151.164.30.56>: >waynem@bosmedtechdotcom.nospam (Wayne Menzie) wrote in ><8EF7E20F1wayneshammalammading@206.66.240.253>: > >>If you are interested, here is a fix for the close button being grayed >>out when the child window is maximized. >> > >It works. Thanks. Good. I can now take out that FAQ :) It's the least I can do after all the work you've done making Xnews. I know you hear it a lot, but thank you for Xnews. I find it indispensable and appreciate the work you've put into it. Wayne
Re: Xnews - Luu, a fix for the grayed - out close button
Author: Luu Tran
Date: Thu, 16 Mar 2000 00:00
Date: Thu, 16 Mar 2000 00:00
14 lines
1134 bytes
1134 bytes
waynem@bosmedtechdotcom.nospam (Wayne Menzie) wrote in <8EF7E20F1wayneshammalammading@206.66.240.253>: >If you are interested, here is a fix for the close button being grayed >out when the child window is maximized. > It works. Thanks. Good. I can now take out that FAQ :) -- luu author of Xnews - http://xnews.3Dnews.net
Re: Xnews - Luu, a fix for the grayed - out close button
Author: Danny C.
Date: Fri, 17 Mar 2000 00:00
Date: Fri, 17 Mar 2000 00:00
22 lines
1555 bytes
1555 bytes
waynem@bosmedtechdotcom.nospam (Wayne Menzie) babbled in
<8EF958DEFwayneshammalammading@24.128.8.70>:
>luutran@geocities_.com.invalid (Luu Tran) wrote in
><8EF8C46C2luutrangeocities@151.164.30.56>:
>
>>It works. Thanks. Good. I can now take out that FAQ :)
>
>It's the least I can do after all the work you've done making Xnews. I
>know you hear it a lot, but thank you for Xnews. I find it indispensable
>and appreciate the work you've put into it.
Agreed. Thank you Luu!
--
Danny C. - dannyac@bellsouth.head.net - 4:46 AM
Chop off my head to get back to me.
-"Quidquid latine dictum sit, altum videtur."
<DarkHand> oh.. CD's... Those MP3's you have to PAY for... :)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads