Hi Tobias,

Tobias Krais wrote (9-11-2007 14:03)
I am currently implementing a little dialog with an
UnoControlListBoxModel. Now I want to preselect an entry of the list.
How can I do this? I tried the SelectedItems option, but it did not work.

As a workaround, I tried to set an item with the
XListBox.selectItemsPos() function. But it had no affect, only selecting
it from the action listener had the wished effects.

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.

Greetings,
Cor

--

Cor Nouws
Arnhem - Netherlands
nl.OpenOffice.org - marketing contact

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

Reply via email to