 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
B Ancelle Guest
|
Posted: Tue Nov 25, 2003 11:43 am Post subject: TlistView event |
|
|
Hi
Using a TlistView with checked boxes, which event can be fired when a
checked box is clicked ?
OnChange is not activated by the checked box click.
Another question is : is-it possible to change the colour of a row which has
some state (checked for instance) ?
Thanks a lot.
Bernard Ancelle
|
|
| Back to top |
|
 |
Maarten Wiltink Guest
|
Posted: Tue Nov 25, 2003 1:28 pm Post subject: Re: TlistView event |
|
|
"B Ancelle" <b.ancelle (AT) wanadoo (DOT) fr> wrote
| Quote: | Using a TlistView with checked boxes, which event can be fired when a
checked box is clicked ? OnChange is not activated by the checked box
click.
|
That is explicitly not my experience. An OnChange handler will be called,
with the Change parameter set to ctState. No, this is not mentioned in
the help file.
| Quote: | Another question is : is-it possible to change the colour of a row
which has some state (checked for instance) ?
|
Yes. Type "OwnerDraw", press F1, choose the one in TCustomListView, and
read help.
BTW, the trait d'union isn't used like that in English.
Groetjes,
Maarten Wiltink
|
|
| Back to top |
|
 |
B Ancelle Guest
|
Posted: Thu Nov 27, 2003 9:55 am Post subject: Re: TlistView event |
|
|
Thanks for your answer (and sorry for the erroneous hyphen!).
I think I will switch to a custom Tstringgrid which seems better.
Bernard Ancelle
"Maarten Wiltink" <maarten (AT) kittensandcats (DOT) net> a écrit dans le message news:
3fc3590c$0$1507$e4fe514c (AT) news (DOT) xs4all.nl...
| Quote: | "B Ancelle" <b.ancelle (AT) wanadoo (DOT) fr> wrote in message
news:bpvfdm$a5b$1 (AT) news-reader5 (DOT) wanadoo.fr...
Using a TlistView with checked boxes, which event can be fired when a
checked box is clicked ? OnChange is not activated by the checked box
click.
That is explicitly not my experience. An OnChange handler will be called,
with the Change parameter set to ctState. No, this is not mentioned in
the help file.
Another question is : is-it possible to change the colour of a row
which has some state (checked for instance) ?
Yes. Type "OwnerDraw", press F1, choose the one in TCustomListView, and
read help.
BTW, the trait d'union isn't used like that in English.
Groetjes,
Maarten Wiltink
|
|
|
| Back to top |
|
 |
Maarten Wiltink Guest
|
Posted: Thu Nov 27, 2003 11:43 am Post subject: Re: TlistView event |
|
|
"B Ancelle" <b.ancelle (AT) wanadoo (DOT) fr> wrote
| Quote: | Thanks for your answer (and sorry for the erroneous hyphen!).
|
No need to apologise; it looked kind of cute actually. So obviously
French. Just not English; I only assume we all try to spell correctly
and like to be told when we don't.
| Quote: | I think I will switch to a custom Tstringgrid which seems better.
|
Might be as good. I'm sure it can be made to work with a listview, but
if you're more confortable with a stringgrid [descendant], by all means
use the best tool for your job.
Groetjes,
Maarten Wiltink
|
|
| Back to top |
|
 |
|
|
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
|
|