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 

HOW: TValueListEditor...pcikuplist

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Roozbeh GHolizadeh
Guest





PostPosted: Fri Nov 28, 2003 3:07 pm    Post subject: HOW: TValueListEditor...pcikuplist Reply with quote




Hi there

I want to assign a stringlist to a TValueListEditor and make all its values props-ie itemProps-to
esPickUp and also readonly to true and also all new string that are added by user have the same properties,ie when he/she enters a key then new values come from PickupList.

if i call this at onFormShow it gives me exception why?

ValueListEditor_English.Strings.AddStrings(st);
for i:=0 to ValueListEditor_English.RowCount-1 do
begin
ValueListEditor_English.ItemProps[i].EditStyle:=esPickList;
ValueListEditor_English.ItemProps[i].ReadOnly:=true;
end;

if gives me exception at RowCount-2....

And also how can i make defualt Column to key not to Value?

Thanx
Roozbeh GHolizadeh

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using 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.