Page 1 of 1
Toolbar textbox
Posted: Fri Dec 07, 2007 5:49 pm
by freddy
ok, this ought to be easy, but it seems it isn't. Having manually appended a textbox to the standard toolbar in writer, how does one put some text in it in a macro?
Re: Toolbar textbox
Posted: Fri Dec 07, 2007 7:24 pm
by TerryE
The coding paradigm is somewhat different to MSOffice. The short answer is that you basically have to declare an event which is bound an object (this could be a cell in a spreadsheet for example, or in this case textbox) to an action and a procedure with the same. You do this though start-up code which you hook into application through an initialisation routine hooked in through the Tools->Customize->Events->Open Document event. If you just want to add anew menu item then you do it through the same mechanism. You store the macro code in the document or in a template.
The long answer is that you need to read up on how to do this. Start with
OpenOffice.org Wiki — FAQ Macros