Hi Stephan,
getSelection is working correctly...that is not the problem..i am clearly
descriping the scenario here
i had inserted a shape inside impress document and made interaction(Onclick)
of the shape to call a macro. this macro contains the code to get the
currently selected shape.

So if i click the shape the macro is called before the shape got
selected...so the macro code cannot find the selected shape...what iam
asking now is is there any other way get the shape which is clicked.

On 1/8/07, Stephan Wunderlich <[EMAIL PROTECTED]> wrote:

Hi there,

what do you mean with "not working correctly" ?
If only one shape is selected the "getSelection()" method will be a
collection of shapes that consists of only one shape.
If you mean by "clicking on it" that you have a cursor inside the
shape afterwards, than the selection is indeed the ShapeText ... is
that what you meant by not working ?

Regards

Stephan


Reply via email to