Apache OpenOffice (AOO) Bugzilla – Issue 18213
Event "itemstatechanged" triggered when Listbox item is selected via API
Last modified: 2017-05-20 11:27:42 UTC
When selecting an arbitrary Listbox item in an API dialog Listbox via API ("xListBox.selectItem("MyItemName")") the event "itemstatechanged" is triggered. This behaviour only occurs when the application is connecting to the office instance remotely. By using the model of the listbox to select an item I could successfully workaround this problem (Therefor I am in no great need for a fast bugfix). See Java bugdoc attached. Just adapt the paths in the batch file to your own ones.
Created attachment 8452 [details] Java Source code
Created attachment 8453 [details] Java class file
Created attachment 8454 [details] class file of Listener
Created attachment 8455 [details] Batch file
"According to the OpenOffice.org roadmap (http://tools.openoffice.org/releases) this issue was retargeted to OOo Later."
accepting
fs->bc: can you please supply a bug doc which runs out of the box? The attached RemoveListBox.jar uses a namespace (com.sun.star.wizards.common.*) and classes (such as UNODialogs and Tools) which are not available in a normal office installation. Thanks!
fs->bs: sorry, my classpath was wrong fs->fs: also reproducible in Basic: REM ***** BASIC ***** Option Explicit Sub Main Dim oDialog as Object oDialog = LoadDialog( "Standard", "Dialog1" ) oDialog.execute End Sub Sub selected( oEvent as Object ) MsgBox "item selected" oEvent.Source.selectItemPos( 2, TRUE ) End Sub
Reset assigne to the default "issues@openoffice.apache.org".