YunJingtao schrieb:
> 
>   Yes.Following these steps Data-Define Range, you can find that the dialog 
> are the same and the same mistakes.

>   According to your advice, I try to fix the function UpdateNames() and add 
> some code.
> at the begining:

> //aEdName.Clear();
> String aNewEntry = aEdName.GetText();   //get the name the mouse selected
> NameSelectHdl(0);
> USHORT  nNamePos = aEdName.GetEntryPos( aNewEntry);  //get the postion
> USHORT  nStoreNamePos = aEdName.InsertEntry(aNewEntry, nNamePos);  //store 
> and at the end:
> aEdName.GetSelectEntryPos(nStoreNamePos);  //restore
> but this doesn't work. Maybe I am wrong, any advice?

Hello

Try using the functions ComboBox::GetTopEntry() and
ComboBox::SetTopEntry() (see vcl/inc/combobox.hxx). This should be
easier. These functions get/set the first visible entry (and thus the
scrollbar position) in the list.


Daniel

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

Reply via email to