Board index » cppbuilder » WindowMenu in MDI Application

WindowMenu in MDI Application


2004-10-28 11:31:32 AM
cppbuilder96
I have a MDI Application.
How can I disable the feature to add at run time child windows' caption in
the WindowMenu?
S.
 
 

Re:WindowMenu in MDI Application

"SVC" < XXXX@XXXXX.COM >wrote in message
Quote
How can I disable the feature to add at run time
child windows' caption in the WindowMenu?
Don't assign the WindowMenu to begin with.
Gambit
 

Re:WindowMenu in MDI Application

I would like to keep the "cascade, Tile Horiz, Tile Verti, Minimize All and
Arrange All" items but disable the feature to add at run time newly created
child windows' captions.
S.
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote

"SVC" < XXXX@XXXXX.COM >wrote in message
news:41806808$ XXXX@XXXXX.COM ...

>How can I disable the feature to add at run time
>child windows' caption in the WindowMenu?

Don't assign the WindowMenu to begin with.


Gambit


 

{smallsort}

Re:WindowMenu in MDI Application

"SVC" < XXXX@XXXXX.COM >wrote in message
Quote
I would like to keep the "cascade, Tile Horiz, Tile Verti, Minimize
All and Arrange All" items but disable the feature to add at run
time newly created child windows' captions.
You cannot selectively disable those features. It is an all or nothing
deal.
To do what you are asking, you will just have to not assign the WindowMenu
at all, and then implement those particular items manually. TForm has
Cascade(), Tile(), and ArrangeIcons() methods that you can call from your
own menu items.
As for Minimize All, you will have to implement that one manually by looping
through the child windows one at a time setting their WindowState property
to wsMinimized. There is no MinimizeAll() method available.
Gambit