How to focus on the speciefied inserted item
Posted: Mon Jun 30, 2008 2:01 pm
Please give me ahint how to focus programatically on the specified item added.
For example i add a Text Edit like this:
TspSkinEdit * edit = new TspSkinEdit(this);
RichView1->AddControlEx("",edit,-1,rvvaBaseline);
RichView1->Format();
int ItemNo = RichView1->ItemCount-1;
I got the item number, how can i focus in the added Text Edit ?
Thank you
P.S. I tried RichView1->RVData->FocusedItemNo = ItemNo; but does not focus...
For example i add a Text Edit like this:
TspSkinEdit * edit = new TspSkinEdit(this);
RichView1->AddControlEx("",edit,-1,rvvaBaseline);
RichView1->Format();
int ItemNo = RichView1->ItemCount-1;
I got the item number, how can i focus in the added Text Edit ?
Thank you
P.S. I tried RichView1->RVData->FocusedItemNo = ItemNo; but does not focus...