Am Freitag, den 13.10.2006, 15:58 +0200 schrieb Christian Andersson:
> Hi there, I'm dynamicly inserting commandbuttons into a writerdocument,
> this is all working fine, but I have a huge problem controlling where
> they are located. from what I can see I can set the x and y position of
> the button, but I want to insert the button depending on text that I
> have inserted using the same macro with the anchor "as character"
> 
> my pseudocode should do the following
> 
> 1: get a textcursor
> 2: goto bookmark
> 3: insert new section
> 4: fill section with text
> 5: at the end of the text in the section insert an button that calls a
> macro when pressing it.
> 
> sofar 1-4 is working great, but I have a huge problem with 5.
> I can insert the button, but I have no knowledge on how to move it to
> the "end of the section"
> 
> do anyone in here have any knowledge on how to do this?

Have you tried getting a cursor from the text section (not the main
cursor from the surrounding document) and inserting the button using
that one (after moving to or getting the .end())?

HTH,
Marc


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

Reply via email to