Hi Ariel,

Ariel Constenla-Haile wrote (3-4-2008 19:29)

How could I have found the different components that are needed by those two listeners?

Oh what a question! not very simple to answer! So I tell just how *I*
started (may be someone else has a better story/method).

First, it's quite impossible to start in OOo Basic/OOo API without
Bernard's Xray (we should build him a monument!), the variables Watcher
in the IDE is fine, but Xray is more powerful.

+ 1

[...]
then click on the top "Use", that shows you how this interface is used

Ah, that one I missed. Have used it once or twice long time ago, but found it disabled few times thereafter, so ...

[...]
If you do not want to read all this chapter, that for an OOo Basic user

Well, wanting is one, finding time to do it another ..

may be quite abstract/high-level, you can just Xray ThisComponent, but
* tell it to show you the "Details": in this way it tells you that
ContainerWindow is a com.sun.star.awt.XWindow, not only an object
* you will have to inspect until discovering that the way to the
ContainerWindow is ThisComponent - CurrentController - Frame -
ContainerWindow.

Usefull tip! Thanks.

I only get used to all this when I started with Java and then C++: the
simplicity of OOo Basic hides the knowledge of what interfaces an object

I'm finding more and more, just by using the references etc. And you explanation surely helps.

[...]

Regards,
Cor
--

"The Year of 3" -2008- "Het jaar van 3"

Cor Nouws
Arnhem - Netherlands - nl.OpenOffice.org - marketing contact


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

Reply via email to