-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Tobias,


> it's the same. Doesn't preselect.

i am using

                // XContainerWindowEventHandler
                public boolean callHandlerMethod(XWindow aWindow, Object 
aEventObject,
                                String sMethod) {

                        XControlContainer xContainer = (XControlContainer) 
UnoRuntime.queryInterface(
                                        XControlContainer.class, aWindow);
                        
                        XControl xControl = xContainer.getControl("MyListBox");
                        
                        XListBox listbox = (XListBox) 
UnoRuntime.queryInterface(XListBox.class, xControl);
                        
                        /// AAA, BBB, CCC, DDD ...
                        listbox.selectItem("CCC", true);

to set a ListBox on an OptionsPage ...
The handler is called if one opens the page ...
so it seems, the dialog is executed before the handler is called ...

Oliver


- --

GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHNJQnTiyrQM/QSkURAmMzAJ9NsU9nKHGLay8RhzU7JSh/qTzVJgCfUy3o
nXDvtcCSuF68kQp1a1QiqGc=
=TOGz
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to