Hi Carsten,

These are the reasons I could find (I'm not very sure they are right :-(
), I will use "my terms", not the technical ones [as I'm not sure how it
works "internally"], sure a Sun engineer will laugh at them)
Hi Ariel,

I don't laugh because your following explanation looks very good.

well... now I can feel relax!
I thought I was missing something and making things more complicated than they actually are, but seems that a context menu interceptor for the real-world is not a simple thing!


The only thing which is not correct that the "Layoutmanager" is an active part in this scenario. The layout manager is just an ordinary service which is also a FrameActionListener. It has to destroy the user interface elements whenever a FrameAction.COMPONENT_DETACHING event is received. The reason is that the layout manager cannot show any user interface element without context information.

The Dev's Guide example is OK and works fine, but intercepting a context
menu IN THE REAL WORLD is much complicated.
A complete, up-to-date example from the Framework team developers will
help us a lot!
You're right that a complete context menu interceptor needs much more effort than the example from the Developer's Guide. We will try to create a more sophisticated example that can be used in the "REAL WORLD". I don't want to extend the example Developer's Guide as a more complex example wouldn't help people to understand the basics. Sure this example shall be part of the SDK.

this will help a lot, not only for a context menu interceptor: Oliver is having the same problem (XController disposed) with a com.sun.star.awt.XKeyHandler.

I finished my context menu interceptor, and works ... but I do not dare to share the sources because there is a lot of crap :-[ , and I tend to think that I've done some "magic" to make it work...

Regards
Ariel.




--
Ariel Constenla-Haile
La Plata, Argentina

[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.arielconstenlahaile.com.ar/ooo/



"Aus der Kriegsschule des Lebens
                - Was mich nicht umbringt,
        macht mich härter."
                Nietzsche Götzendämmerung, Sprüche und Pfeile, 8.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to