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. :-(
>
> If that does not do it:
> How about making an additional section directly after the new one for
> inserting the button there or maybe putting the button into a frame in
> the section?
--
Christian Andersson - [EMAIL PROTECTED]
Configuration and Collaboration for OpenOffice.org
Open Framework Systems AS http://www.ofs.no
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]