Board index » cppbuilder » MDI WindowMenu Property
R.H.
![]() CBuilder Developer |
Thu, 17 Jun 2004 18:14:14 GMT
|
R.H.
![]() CBuilder Developer |
Thu, 17 Jun 2004 18:14:14 GMT
MDI WindowMenu Property
I have set the WindowMenu Property to my menu on my parent form, but none of
my child forms show up in the window list. I create an entirely basic new MDI project which only creates new mdichild forms they show up, but not in my project that I am working on which is a main form with a menu, status bar, and tool bar. The child forms have a menu, richedit control and several dialogs. Any ideas? Roger |
Hans Galem
![]() CBuilder Developer |
Thu, 17 Jun 2004 19:03:00 GMT
Re:MDI WindowMenu PropertyQuote"R.H." wrote: Does that TMenuItem have atleast one TMenuItem at designtime ? Hans. |
R.H.
![]() CBuilder Developer |
Fri, 18 Jun 2004 04:43:01 GMT
Re:MDI WindowMenu PropertyYes it does. My menu consists of a File, Windows, and About menus with multiple members. My Windows menu consists of Cascade, Arrange Icons, and Tile which do work at this time. Roger Quote"Hans Galema" <j.m.gal...@maartens.nl> wrote in message Quote> "R.H." wrote: |
Hans Galem
![]() CBuilder Developer |
Fri, 18 Jun 2004 05:59:57 GMT
Re:MDI WindowMenu PropertyQuote"R.H." wrote: You could start with a new MDI application with two children Good luck. Hans. |
R.H.
![]() CBuilder Developer |
Fri, 18 Jun 2004 06:59:43 GMT
Re:MDI WindowMenu PropertyOkay, thanks anyway. I suspose I am going to have redo my project from scratch just to get the window lists. Roger Quote"Hans Galema" <j.m.gal...@maartens.nl> wrote in message Quote> "R.H." wrote: |
Remy Lebea
![]() CBuilder Developer |
Fri, 18 Jun 2004 07:25:29 GMT
Re:MDI WindowMenu PropertyThe Children windows are not supposed to automatically appear in the Windows menu, you have to do that yourself manually. In my MDI project, I do this by creating a TMenuItem in the MDI child form's constructor, an add it to the main form's Window menu. When the child is closed, I remove and free the menu item. In other words: #include "Unit1.h" class TChildForm : public TForm __fastcall TChildForm::TChildForm(AnsiString Path) ViewItem = new TMenuItem(MainForm->View1); void __fastcall TChildForm::FormClose(TObject *Sender, TCloseAction Action = caFree; void __fastcall TChildForm::ViewClicked(TObject *Sender) Gambit Quote"R.H." <roger...@mindspring.com> wrote in message news:3c2f9c62_2@dnews... |
Hans Galem
![]() CBuilder Developer |
Fri, 18 Jun 2004 07:42:05 GMT
Re:MDI WindowMenu PropertyQuoteRemy Lebeau wrote: If I just set WindowMenu to a TMenuItem it works. Hans. |
Van Tumou
![]() CBuilder Developer |
Fri, 18 Jun 2004 22:56:56 GMT
Re:MDI WindowMenu Propertysnip: "If I just set WindowMenu to a TMenuItem it works." I used to be able to get the child list to automatically appear in the Lately I have not been able to get it to do it. The only reason that I have come up with is that SP1 screwed this up - does BTW I'm using BCB5 Pro. -- |
Gonzalo NĂș?e
![]() CBuilder Developer |
Sun, 20 Jun 2004 02:43:41 GMT
Re:MDI WindowMenu PropertyQuote> I used to be able to get the child list to automatically appear in the MainForm's (FormStyle = sfMDIForm) WindowMenu property to Window1. Window1 is the name of the TMenuItem that represents the "Window" entry in my menubar... No problems at all. I'm using BCB 5.0 Pro with SP1... So, I'm afraid that's not the reason Here's a snip from my project's DFM file : object Form1: TForm1 object MainMenu1: TMainMenu HTH -- |
Van Tumou
![]() CBuilder Developer |
Mon, 21 Jun 2004 20:01:32 GMT
Re:MDI WindowMenu PropertyWell, that was the way I would expect it to work. I did a simple test to check this stuff out. I created a Form and set the FormStyle fsMDIChild. When ran, everything worked as expected, except that the child form was not I tried again, and set the MDI Parent's 'WindowMenu' to 'Help1' (another 'Help1' is the only TMenuItem that works in this example. Can anyone reproduce this rubbish behaviour? Cheers -- |
R.H.
![]() CBuilder Developer |
Wed, 23 Jun 2004 19:58:10 GMT
Re:MDI WindowMenu PropertyI started my project over and now I can get the window list to show, but it seems to be very erratic. When I first start my application and look in the window list there is no list of the initial child form that comes up. But if I go and create a new child and then look at the list, both child forms are there. If I restart the application and click on new twice and look at the list there is nothing there , but if I click new again and then look at the list, all three are there. It seems that I need to look at the list first before anything will show up. Is there a way to force the list to be populated by the child forms whether I look at the list or not? Roger |