List Info

Thread: Re: Complex toolbars




Re: Complex toolbars
user name
2007-09-10 02:32:55
Dietmar Hiller wrote:
> Hi,
> 
> I am investigating in using the complex toolbars for my
extension
> "BorderLiner". I know of the following sites
> ht
tp://wiki.services.openoffice.org/wiki/Framework/Article/Gen
eric_UNO_Interfaces_for_complex_toolbar_controls, http://wiki.services.openoffice.org/wiki/E
xtensions_development#Project:_Enhancing_the_Extensions_Infr
astructure_of_OpenOffice.org, http://api.openoffice.org/docs/DevelopersGui
de/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: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


Re: Complex toolbars
user name
2007-09-10 14:05:44
Hallo Carsten,

Am Montag, den 10.09.2007, 09:32 +0200 schrieb Carsten
Driesner:
> Dietmar Hiller wrote:
> > Hi,
> > ... 
> 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.
Thanks, that was one topic I intended to find out
> 
> > a) ToggleButton:
> > ...
> ...
> > 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.
Okay, I can live without that, it's merely a cosmetic
feature.
> 
> > c) Button, ImageButton
> > ...
> ...
> 
> > 
> > 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.
Does this mean, it is not possible to have a complex toolbar
controlled
by BASIC or that I could not add these image features (just
to make the
message clear). Anyway I will study the C example and play
with it.
> 
Dietmar

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


Re: Complex toolbars
user name
2007-09-11 02:36:20
DIetmar,

I recieved your mail on my personal mail adress but when
responsing to 
the sender the mail is still retuned with a
"permanent"  error message

----- The following addresses had permanent fatal errors
-----
<your tiscali accoent>

  ----- Transcript of session follows -----
... while talking to mx10.unit.tiscali.de
<<< 554 mx10.unit.tiscali.de Service not available
- access denied
... connection error: connection reset by peer/timeout

so plea   se give me a adress where is can email to

greetz

Fernand


Dietmar Hiller wrote:
> Hallo Carsten,
>
> Am Montag, den 10.09.2007, 09:32 +0200 schrieb Carsten
Driesner:
>   
>> Dietmar Hiller wrote:
>>     
>>> Hi,
>>> ... 
>>>       
>> 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.
>>     
> Thanks, that was one topic I intended to find out
>   
>>> a) ToggleButton:
>>> ...
>>>       
>> ...
>>     
>>> 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.
>>     
> Okay, I can live without that, it's merely a cosmetic
feature.
>   
>>> c) Button, ImageButton
>>> ...
>>>       
>> ...
>>
>>     
>>> 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.
>>     
> Does this mean, it is not possible to have a complex
toolbar controlled
> by BASIC or that I could not add these image features
(just to make the
> message clear). Anyway I will study the C example and
play with it.
>   
> Dietmar
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
> For additional commands, e-mail: dev-helpapi.openoffice.org
>   

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


Re: Complex toolbars
user name
2007-09-11 03:15:46
Dietmar Hiller wrote:
> Hallo Carsten,
> 
> Am Montag, den 10.09.2007, 09:32 +0200 schrieb Carsten
Driesner:
>> Dietmar Hiller wrote:
>>> Hi,
>>> ... 
>> 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.
> Thanks, that was one topic I intended to find out
>>> a) ToggleButton:
>>> ...
>> ...
>>> 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.
> Okay, I can live without that, it's merely a cosmetic
feature.
>>> c) Button, ImageButton
>>> ...
>> ...
>>
>>> 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.
> Does this mean, it is not possible to have a complex
toolbar controlled
> by BASIC or that I could not add these image features
(just to make the
> message clear). 
Hi Dietmar,

You can use the complex toolbar controller feature with
BASIC. I think 
you cannot implement your own toolbar controller using a
toolkit control 
with BASIC, because of the limitations. Anyway using C++ or
Java would 
give you much more flexibility.

Regards,
Carsten

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )