| View previous topic :: View next topic |
| Author |
Message |
Rory Walsh Guest
|
Posted: Tue Sep 19, 2006 3:58 pm Post subject: ValueListEditor question... |
|
|
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
|
Posted: Tue Sep 19, 2006 9:55 pm Post subject: Re: ValueListEditor question... |
|
|
"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
|
Posted: Tue Sep 19, 2006 10:25 pm Post subject: Re: ValueListEditor question... |
|
|
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
|
Posted: Tue Sep 19, 2006 11:45 pm Post subject: Re: ValueListEditor question... |
|
|
"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 |
|
 |
|