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

Hi Tobias,

have you tried:

XListBox listbox = (XListBox) UnoRuntime.queryInterface(XListBox.class, 
xControl);
listbox.selectItem(sValue, true);

Oliver


Am 09.11.2007 15:14 schrieb Tobias Krais:
> Hi Cor,
> 
>>> How can I preselect an item?
>> In basic, I simply do this by    
>>
>>     oControl = oDocDlg.GetControl("xxx")
>>     oControl.selectItemPos(i, True)
>>
>> Thus not on the model.
> 
> I use Java, so I cannot apply your suggestion on the control. The method
> selectItemPos(...) is not available on the control, but on the model.
> Using it on the model has no effects if the dialog is not yet executed.
> 
> But thanks for the hint.
> 
> Greetings, Tobias
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


- --

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

iD8DBQFHNHxoTiyrQM/QSkURArsnAKCS4msdql/265+e4gEXTgEYN/ZqOQCfX2/T
NaJRa9HtaGQmuui3Yfq+ScA=
=V2l4
-----END PGP SIGNATURE-----

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

Reply via email to