Let me change that answer to use the OnAdvancedCustomDrawItem or
OnAdvancedCustomDrawSubItem as then you can check if the tlistitem been
drawn is selected, then do your special focus drawing
e.g if item.selected then
drawfocuscode
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Alan Rose
Sent: Wednesday, May 02, 2001 8:39 AM
To: Multiple recipients of list delphi
Subject: RE: [DUG]: ownerdraw on Listviews
I see the listview has the ownerdraw property so set this to True and use
the oncustomdraw event. Delphi's help on oncustomdraw should then help you
out.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jeremy Coulter
Sent: Wednesday, May 02, 2001 8:24 AM
To: Multiple recipients of list delphi
Subject: [DUG]: ownerdraw on Listviews
HI All.
I am ownerdrawing a listview, BUT because of this, I need to draw the focus
on the selected item, i.e. the selected back ground etc.
Can anyone tell me how to go about it?
I mean , I now HOW to do it, but rather I need to know WHERE to initiate it
etc.
Thanks, Jeremy Coulter
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"