Message de Bernard Marcelly date 2007-11-09 15:31 :
Message de Tobias Krais date 2007-11-09 15:14 :
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.
Sorry, wrong author... This is what I wanted to say:
*Cor* answer is perfectly correct and can of course be implemented in
Java. Check again your code :-)
selectItemPos() is a method of interface com.sun.star.awt.XListBox
______
Bernard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]