On 8/10/05, Andrzej Wytyczak-Partyka <[EMAIL PROTECTED]> wrote:
OK. So I have this idea.
Since I can't get the UIElement during the createInstance method  - I can't add the XMenuBar to the sChildWindow struct during it's initialization.
I can get the UIElement during the component_attached event happening on the frame and then
iterate through the m_xChildren list looking for a match on FrameActionEvent.Frame == childIterator.m_cFrame. Then I could set the retrieved menubar on the found child and deregister the listener.

Is that OK ?
OK. This is done.
I also did some minor cleaning in the code and added a DEBUG macro
for defining the verbosity of the debug messages.
This is weird, but I still can't get the XTopWindow from the TabParentWindow :(
I mean everything works fine, even the menus somehow get switched properly,
but the xTopWndow.is() returns 0.
When I open a Writer doc in one tab, and a Calc sheet in another and switch between those two the top menu bar updates properly, but without issuing the setMenuBar() call ;-)
This is done with the newest libs and IDLs from you :/

I added the XCloseListener implementation to my class, and registered myself as
a closeListener inside each of the child frames, but it doesn't seem to be working either.

Also, I can't find the reason why, my service doesn't dispose properly. The m_refcount
seems to go down to 0, but the dtor is not called :/

I also renamed the service from foo.AWindow to iapart.TabBrowse and the interface
from XAWindow to ITabBrowse.

I hope we'll be able to finish this by the end of the week, I've got some hungry beta-users here :-)

Regards,
Andrzej

Reply via email to