Dietmar Hiller wrote:
Hi,
I am investigating in using the complex toolbars for my extension
"BorderLiner". I know of the following sites
http://wiki.services.openoffice.org/wiki/Framework/Article/Generic_UNO_Interfaces_for_complex_toolbar_controls,
http://wiki.services.openoffice.org/wiki/Extensions_development#Project:_Enhancing_the_Extensions_Infrastructure_of_OpenOffice.org,
http://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.xhtml,
but still cannot find the answers to my questions. Maybe you can give me
a hint where these features are documented:
Hi Dietmar,
First I want to make clear that the complex toolbar controls were added
to provide general purpose functions with a flexible and lightweight
implementation. There were not designed to provide a full feature set.
a) ToggleButton:
I want to read and set the button (so toggle it via software). The first
link only says "Currently I don't see a useful command/event here".
Those would be.
You have to maintain the state of all your controls. Therefore you
should know the initial state of your toggle button. That's the only
necessary precondition to implement a toggle function. The state can be
set sending a feature state event.
b) DropdownBox, ToggleDropdownBox:
Is it possible to use them with images as well or is only text allowed?
Currently the controls don't support images only text is allowed. The
design is very flexible therefore this can be changed. At the moment I
am very busy with other tasks so there is only a little chance to get
this implemented in the near future.
c) Button, ImageButton
I want to have a button to set the color. It would be nice if that
button would show the already selected color, same as in the OOo Toolbar
button for text color. Can I draw in the buttons or can I only load
predefined images?
Ownerdraw functions would be an overkill for the complex toolbar
controls feature. The design goal was to provide the most used functions
with a lighweight implementation. If you need this complexity you
have to create your own toolbar controller which creates a toolkit
control. Then you have the full control over your own toolkit control
including ownerdraw. The only idea is that you draw your own bitmap with
UNO API and use it to set your image.
My programming language is BASIC.
Unfortunately BASIC is very limited implementing listeners and other UNO
features. I think it's not possible to implement your own toolbar
controller with BASIC.
Regards,
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]