Hi Dietmar, Alle 20:07, giovedì 13 settembre 2007, Dietmar Hiller ha scritto: > Am Dienstag, den 11.09.2007, 10:15 +0200 schrieb Carsten Driesner: > > Hi Dietmar, > > > > ...You can use the complex toolbar controller feature with BASIC. ...
I must admit that I am very surprised to read this, and I'm very curious to hear some more details from Carsten I ever thought that it was not possible since the documentation says that "....Every add-on which wants to support a toolbar must be a dispatch provider..." Infact, this seems to imply that the add-on must be written into a programming language that supports the definition and implementation of UNO services but AFAIK this is not currently possible in StarBasic. > I am at my wits' end. > My understanding up to now is: I have the configuration file > "ProtocolHandler.xcu" where I define a handler that is passing to me > events defined in the URL of my toolbar elements. Now I just need to > create an initializer and a listener to catch these events. Here I am > stuck, I admit I am not deep enough into the heart of UNO to understand > the online SDK sufficiently to know what to do in BASIC now. The example > is of course object oriented and without knowing the objects in detail > it is tough to understand. > So here is the deal I want to offer. Someone please take me by the hand > to find my way (I already googled, obviously I am the first) and I will > write a comprehensive code snippet or wiki (your choice) for followers > in BASIC and support them through the forums. I've tried some experiments and I've created an example StartBasic package where I was able to manage in a very limited way a "complex toolbar control" I didn't use the dispatch mechanism because, as I said, I have no idea how to implement and register a dispatch provider in starbasic, so I tried a different approach, with the LayoutManager and accessibility API's Actually I was able to load a list of items into a combobox and I was able to get the selected value when the user changes the selection Most probably there is also the possibility to enable/disable and hide/show the combobox. For other complex controls than comboboxes I was not able to make any operations, so I am at my wits end too :-) ciao Paolo Mantovani --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
