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 

ValueListEditor question...

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Rory Walsh
Guest





PostPosted: Tue Sep 19, 2006 3:58 pm    Post subject: ValueListEditor question... Reply with quote



Hi everyone. I have been using the ValueListEditor and would now like to
set one of the EditStyle of a key value just as one does for any of the
ItemProp's. Is this possible? If so can anyone point me in the right
direction? Cheers,

Rory.
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Sep 19, 2006 9:55 pm    Post subject: Re: ValueListEditor question... Reply with quote



"Rory Walsh" <rorywalsh (AT) ear (DOT) ie> wrote in message
news:450fcd56 (AT) newsgroups (DOT) borland.com...

Quote:
I have been using the ValueListEditor and would now like
to set one of the EditStyle of a key value just as one does
for any of the ItemProp's. Is this possible?

Yes. ou have to retreive the ItemProp of the desired key, and then you can
access its EditStyle property, ie:

ValueListEditor->ItemProps["MyKey"]->EditStyle = esEllipsis;


Gambit
Back to top
Rory Walsh
Guest





PostPosted: Tue Sep 19, 2006 10:25 pm    Post subject: Re: ValueListEditor question... Reply with quote



Thanks Remy. This is what I have been doing but I would like for the
items on the left of the ValueListEditor to display a dropdown list
instead of it always being the values on the right? When I do:

ValueListEditor1->ItemProps["this"]->EditStyle = esPickList;

it results in the item on the right appearing with a esPickList, is
there any way of making the items on the left do that? Sorry if my
earlier post wasn't clear enough. Cheers,

Rory.


Remy Lebeau (TeamB) wrote:
Quote:
"Rory Walsh" <rorywalsh (AT) ear (DOT) ie> wrote in message
news:450fcd56 (AT) newsgroups (DOT) borland.com...

I have been using the ValueListEditor and would now like
to set one of the EditStyle of a key value just as one does
for any of the ItemProp's. Is this possible?

Yes. ou have to retreive the ItemProp of the desired key, and then you can
access its EditStyle property, ie:

ValueListEditor->ItemProps["MyKey"]->EditStyle = esEllipsis;


Gambit

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Sep 19, 2006 11:45 pm    Post subject: Re: ValueListEditor question... Reply with quote

"Rory Walsh" <rorywalsh (AT) ear (DOT) ie> wrote in message
news:4510281a$1 (AT) newsgroups (DOT) borland.com...

Quote:
I would like for the items on the left of the ValueListEditor
to display a dropdown list instead of it always being the values
on the right?

Sorry, but TValueListEditor does not support that. The whole point of
TValueListEditor is to allow the user to edit the values, not the keys. All
of the editing features are only available for the right-hand cells of the
grid.

Quote:
ValueListEditor1->ItemProps["this"]->EditStyle = esPickList;

it results in the item on the right appearing with a esPickList

As it should be, because that is what it is designed to do.

Quote:
is there any way of making the items on the left do that?

No.


Gambit
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.