Board index » delphi » Problem with MDIChild Close icon when maximized

Problem with MDIChild Close icon when maximized

I'm having problem with an MDI application that uses menus on children
forms (that are automatically merged with the main menu of the
application).

The problem is, when a child window is maximized and you activate
another child window, the newly activated child window's system close
icon appears disabled (athough you can still click on the icon to close
the window).

Has anybody seen this problem?

Does anybody know of a workaround?

Regards

Bruce

Bruce Crosgrove
Quest Software
br...@oz.quests.com

 

Re:Problem with MDIChild Close icon when maximized


On Wed, 18 Feb 1998 15:12:19 -0800, Bruce Crosgrove

Quote
<br...@oz.quests.com> wrote:
>I'm having problem with an MDI application that uses menus on children
>forms (that are automatically merged with the main menu of the
>application).

>The problem is, when a child window is maximized and you activate
>another child window, the newly activated child window's system close
>icon appears disabled (athough you can still click on the icon to close
>the window).

>Has anybody seen this problem?

>Does anybody know of a workaround?

>Regards

>Bruce

>Bruce Crosgrove
>Quest Software
>br...@oz.quests.com

I've noticed that this only happens when the main menu bar changes
e.g. when the menus are merged in from MDI children, when a main menu
item is enabled/disabled, or when main menu items are added or
removed.

I think it has something to do with the way the menu is rebuilt - all
of the items are removed then re-added, including the system menus and
this seems to{*word*222}up the close button.

Other Threads