BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ListBox Selecting Item problem

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal
View previous topic :: View next topic  
Author Message
Jinie
Guest





PostPosted: Mon Nov 06, 2006 5:43 pm    Post subject: ListBox Selecting Item problem Reply with quote



MultiSelect property of the Listbox is True and when i move item
up/down in the list with the following code, it does not select the
same item. What else required ?

procedure TForm1.btnUPClick(Sender: TObject);
var
CurIndex : integer;
begin
CurIndex := ListBox1.Itemindex;
ListBox1.items.Move(CurIndex, CurIndex-1);
ListBox1.itemindex := CurIndex-1;
end;
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ObjectPascal All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.