Hi friends,
Here i want to focus any one of list items default as per requirement instead
of focus in 1st item always appears default.plz anyone help me how can i do it?
thanks
mitu
hi praveen,
Here prob is the list item draw depends upon 1st time as per aIndex.if aIndex is 1(currentitmeindex is 0), then it started drawing from 2nd item onwards.i mean for 1st time ,the 1st item doesn't appear on screen.
so for this what should do.plz have a look it.
Regards
mitu
Forum posts: 54
just add these line
iListBox->SetCurrentItemIndex(aIndex);
aIndex is the Item index whic you want to set focus
Regards
Praveen
Forum posts: 55
hi praveen,
Here prob is the list item draw depends upon 1st time as per aIndex.if aIndex is 1(currentitmeindex is 0), then it started drawing from 2nd item onwards.i mean for 1st time ,the 1st item doesn't appear on screen.
so for this what should do.plz have a look it.
Regards
mitu
Forum posts: 54
Hi mitu
i did not get exactly what the problem you are facing
but i am thinking that you have to provide the Coordinates of the ListBox for drawing it
for example
iListBox->SetExtent(TPoint(0,0),TSize(240,120)) //you have to give the coordinates Like this
Regards
Praveen