Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index

Hi all,

Usually I link a macro to the event "item status changed" of a
listControl via the UI. Now I want to do it at runtime, since the
control itself is created at runtime.

The following code does not result in a noticeable effect when the
selection in the list is changed. What am I missing?

 = = = =
Public oLanguageListener

Sub TstLstnr
  oControl = oDlg.getControl("lstTaal")
End Sub

Sub CreateLstLanguage_Listener
  sListenerName = ""
  oLanguageListener = CreateUnoListener("LstLanguage_", sListenerName)
End Sub

Sub LstLanguage_disposing (oEvent)
End Sub

Sub LstLanguage_actionPerformed (oEvent As
msgbox "actionPerformed"
End Sub

Sub LstLanguage_itemStateChanged (oEvent As
msgbox "itemStateChanged "
End Sub

Sub LstLanguage_focusGained (oEvent As
msgbox "focusGained "
End Sub

(same for events focusLost, keyPressed, keyReleased, mouseEntered,
mouseMoved, mouseMovedKeyPressed, mousePressed, mouseReleased, mouseExited)

 = = = =

thanks a lot!

Cor Nouws
GPD key ID: 0xB13480A6 - 591A 30A7 36A0 CE3C 3D28  A038 E49D 7365 B134 80A6
- vrijwilliger
- volunteer
- The Document Foundation Membership Committee Member

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.