How to create a macro to insert callout at cursor?

I want to click on a writer document at any point, click on macro and have a callout inserted with the pointer at that cursor and the body of the callout to the left.

I can do this with a text frame getting the cursor coordinates

oViewCursor = ThisComponent.CurrentController.getViewCursor()

v = oViewCursor.getPosition()

dXCursor = v.X

dYCursor = v.Y

then I can style and insert a text frame at the cursor.

However although I can create and style a callout with a macro, I cannot get it to appear at the cursor position, or manipulate the callout pointer.

[ I can do this without any problems in Microsoft Word ]

Any help appreciated.