Re: Power Objects Menu Creation Syntax Fails to Produce a New Menu
Date: 1996/03/25
Message-ID: <DotwCM.29L_at_watdragon.uwaterloo.ca>#1/1
In article <31523B08.65DE_at_violet.berkeley.edu> you write:
>I am trying to create a new menu bar based on the instructions
>found in Power Objects Developer's Guide and other reference materials.
>From what I can see my syntax matches the models I have considered to a
>"t", but when I run the application (via the development interface) the
>initial form opens but I see no new menu item and no alteration to the
>default menu. Below, I have provided the three areas I have entered code
>with the hopes of creating the new menu.
> Usually, there is something I have overlooked or the author's
>have failed to mention which explains the failure. My hope is one of the
>members of this list will be able to point out my error. THANKS!
...
A couple of things...
I haven't tried SysdefaultMenu yet (just Application default)
and
I haven't tried inserting a menu object (just appending)
But assuming that isn't where your problem is...
>'Associate forms with menu
>
>frmLogicPracticeEntry.SetMenuBar(mbrBourdieu)
>frmLogicPracticeBook.SetMenuBar(mbrBourdieu)
>frmLogicPracticeChapter.SetMenuBar(mbrBourdieu)
>frmLogicPracticeBiblio.SetMenuBar(mbrBourdieu)
>frmLogicPractice.SetMenuBar(mbrBourdieu)
>frmLogicPracticeBrowse.SetMenuBar(mbrBourdieu)
>frmLogicPracticeReportGenerator.SetMenuBar(mbrBourdieu)
>
>'Open initial form
>
>frmLogicPractice.OpenWindow()
I was also under the impression that the above should work. What I found was...
- It seems the last window to be opened in the OnLoad will have the menu/toolbar setup as above, the rest are ignored.
- For menus and toolbars it seems that even doing the above in the window's initialize method (using global variables for the menu and and toolbar objects, once again as per "hints" in the documentation) doesn't work (no error messages, the menu/toolbar objects appear defined in the debugger but no menu/toolbar appears).
I guess the next thing to try is to package the menu creation as a function and create a new menu from each Initialize Method?...
If you get any feedback on this, I'd sure appreciate a copy. I didn't see any related bug reports in the list, which I find unbelievable! Something has got to be wrong!?!
Peter
-- Peter Yamamoto CS Phone: +1 519-888-4567 x3299 University of Waterloo MFCF Phone: +1 519-888-4567 x6488 Waterloo, Ontario, Canada N2L 3G1 Home Phone: +1 519-747-5318 Email: PJYamamoto_at_UWaterloo.CA URL: http://daisy.uwaterloo.ca/~pjyamamo/Received on Mon Mar 25 1996 - 00:00:00 CET