So far I managed to :
Code: Select all
for i = 1 to whatever
checkbox = CreateUnoService ("stardiv.Toolkit.UnoCheckBoxControl")
fixedTextModel = hDialog.Model.createInstance("com.sun.star.awt.UnoControlCheckBoxModel")
checkbox.setModel(fixedTextModel)
checkbox.setPosSize(430, deltaY*i+35-3, 25, 20, com.sun.star.awt.PosSize.POSSIZE)
hDialog.addControl ("CheckBox"&format(i,"00"), checkbox)
listener = createUnoListener("CB_", "com.sun.star.lang.XItemListener")
cb.addItemListener(listener)
next i
Sub CB_notifyEvent(event as object)
End Sub
Sub CB_disposing(event as object)
End Sub
Sub CB_modified(event as object)
End Sub
Sub CB_itemStateChanged(event as object)
End Sub
Is "com.sun.star.lang.XItemListener" the correct way pf establishing a listener ?
What action routines should be declared ?
advTHANKSance