Am Mittwoch, den 18.10.2006, 12:08 +0200 schrieb Christian Andersson:
>
> Marc Santhoff wrote:
> >>
> >> from what I have learned about adding buttons, etc I cannot add buttons
> >> to the "document" but need to add it to a drawpage and when I do that, I
> >> always get them at the top left corner, unless I move them with an x/y
> >> coordinate.
> >
> > Yes, you're right. My own code works that way ... I think you have to
> > define the anchor of the button(s shape) form "page" to "paragraph".
> >
> > smth. like:
> >
> > <code>
> > theButton.setPropertyValue("AnchorType", _
> > com.sun.star.text.TextContentAnchorType.AT_PARAGRAPH)
> > </code>
>
> yes, I have done that, but this just changes the anchortype, I have
> notr found a way to tell it which paragraph the anchor should connect
> to. :-(
Wouldn't it be the paragraph where the cursor is you're working with? If
not, can you try to use a ViewCursor instead of a TextCursor, does it
make a difference?
Some API programmer with writer knowledge could help here, I'm only an
API user ...
Marc
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]