On 8/10/05, Andreas Schlüns <[EMAIL PROTECTED]> wrote:
OK, so when my listener receives the COMPONENT_ATTACHED event I should then try to get the UIElement from the LayoutManager and deregister the listener, correct ?
OK.
OK, thanks
Andrzej
Hello Andrzej !
OK ... you are right ... I've overlooked something important. It cant
work so. Why ?
You created a new frame and the document will be loaded later into this
frame. Of course without a document inside you cant retrieve nor create
menubars or toolbars. So you have do it later. But how ?
I think, you should listen on the frame you created new as
css.frame.XFrameActionListener. There is an event
frameAction(...COMPONENT_ATTACHED...). That indicates the fact, that a
new document was loaded into this frame. After the first
COMPONENT_ATTACHED event was send to you, you can deregister yourself.
Because you dont need to listen for further events here / I hope .-)
OK, so when my listener receives the COMPONENT_ATTACHED event I should then try to get the UIElement from the LayoutManager and deregister the listener, correct ?
<snip>
1 Frame has 1 LayoutManager assigned to it.
1 Frame has 1 Window (which must not a TopWindow!)
e.g. in your case all Frames contains child windows,
which are childs of the TabControlWindow ....
which itself is a child of the real TopWindow
.-))
OK.
<snip>
> No problem, could you put the TabController's source code somewhere
> where I could see it?
> I'm interested in how it's done.
I will send a private email to you, where I'll attach the source.
OK, thanks
Andrzej