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 

TlistView event

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
B Ancelle
Guest





PostPosted: Tue Nov 25, 2003 11:43 am    Post subject: TlistView event Reply with quote




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





PostPosted: Tue Nov 25, 2003 1:28 pm    Post subject: Re: TlistView event Reply with quote



"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





PostPosted: Thu Nov 27, 2003 9:55 am    Post subject: Re: TlistView event Reply with quote



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





PostPosted: Thu Nov 27, 2003 11:43 am    Post subject: Re: TlistView event Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc 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.