What are the programatic method names for a listbox

'dialog is also created at runtime (so that DesktopAsParent can be set true) - not shown

sub main()
	lstbx_lstnr = createunolistener("lstbx_", "com.sun.star.awt.XItemListener")
	with dlg.getcontrol("lstbx")
		.additemlistener(lstbx_lstnr)
		.additem("abc", 0)
		.additem("def", 1)
	end with
end sub

sub lstbx_something(event as object)           ' cant figure out name or find example 
	print "listbox item was single-clicked"    ' dont care about double
end sub

sub lstbx_otherthings(event as object)
	' most listeners seem to need _disposing and possibly other methods to work
    ' what might they be called?
end sub

Zorin OS 15.3
LO Version: 6.4.6.2 Build ID: 1:6.4.6~rc2-0ubuntu0.18.04.1+zorin1

experimental functions of Base not
activated … if you use hsqldb
integrated, not integrated or
Firebird…

i dont know what these are but there is no DB involved, just Calc
tx

Hello @davejordan

In order to help the helpers, please edit your question and add-up the LO and OS versions, tell us if you activated the experimental functions of Base, if you use hsqldb integrated, not integrated or Firebird…

Kind regards, Michel

Hello @davejordan

Did you have a look at OpenOffice.org Macros Explained Fourth edition by Andrew Pitonyak in particular the chapter 18.3.10. List box control, p 648.

You may also get info from this complement by the same author.

To show the community that the question has found its answer, please click on the ✓ aside the top of the correct answer and vote by clicking the ^ caret of all usefull answer.

Please do not use Add Answer but edit your original question to enhance the details of your question (answers are reserved for solutions to a problem on this Q&A site). Thanks in advance …

Kind regards, Michel