StatusListener to track changes for toolbar controls

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
othmanelmoulat
Posts: 142
Joined: Sun Aug 03, 2008 4:39 am

StatusListener to track changes for toolbar controls

Post by othmanelmoulat »

Hi,
I read the sdk examples shipped with Libreoffice: ~ \LibreOffice 3.4\Basis\sdk\examples\DevelopersGuide\OfficeDev\DesktopEnvironment
the java examples at this folder try to give an example how to register statusListener events for multiple java.awt.Component(s) and handle events accordinly.
I'm looking for same functionality . i.e i need to track statusListener events for my custom dynamic toolbar . I build my tollbar dynamically adding XComponent(s) to XWindows of toolbar.
I need advice if this sample code is the best and most elegant way to listen for toolbar controls statusListener events? should i try addapt it and use it with XComponent in my toolbar? or is there a simpler way to listen for my dynamic toolbar status changes?
OOo 3.4 and LibreOffice 3.4 on openSuse 11.4 + windows 7
Post Reply