problem in focusing of listitems

Login to reply to this topic.
Thu, 2008-01-10 12:47
Joined: 2007-07-24
Forum posts: 55

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


Fri, 2008-01-11 05:45
Joined: 2007-08-31
Forum posts: 54
Re: problem in focusing of listitems

just add these line

iListBox->SetCurrentItemIndex(aIndex);
aIndex is the Item index whic you want to set focus

Regards
Praveen

Fri, 2008-01-11 09:57
Joined: 2007-07-24
Forum posts: 55
Re: problem in focusing of listitems

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

Fri, 2008-01-11 10:26
Joined: 2007-08-31
Forum posts: 54
Re: problem in focusing of listitems

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

  • Login to reply to this topic.