Limiting the click action only to the Image in the listView control

  • Thread starter Thread starter Asheesh
  • Start date Start date
A

Asheesh

Hi All,

This is rather peculiar, but I'd like to have it in my application. I'm
using a listView control for which I've associated an Imagelist control to
its SmallImageList property.

All this is fine, I display my images easily.
But instead of a FullRowSelect, I'd like the user to select the Image only.
It's like instead of highlighting the complete item as in FullRowSelect, I
want that the Image, and the text content be highlighted separately.

So, that when a user clicks only the Image, I perform some other action,
while when a user clicks the item's text, I do some other action.
Is it possible to do it?
I'd be grateful if some one can provide some pointers in this direction.

Regards,
Asheesh
 
Hello Asheesh,

Thanks for the feature request. We are currently built on top of the
native listview control, and I don't think the native control supports
this. However, one could always write a custom control that allowed this.
Also, could you maybe do something where you have 2 types of items - one
with an image and no text, and one with text and no image - then alternate
the placement of the items.

-Katie

--------------------
| From: "Asheesh" <[email protected]>
| Subject: Limiting the click action only to the Image in the listView
control
| Date: Tue, 19 Aug 2003 11:12:00 +0530
| Lines: 20
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 203.190.131.70
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:31288
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hi All,
|
| This is rather peculiar, but I'd like to have it in my application. I'm
| using a listView control for which I've associated an Imagelist control to
| its SmallImageList property.
|
| All this is fine, I display my images easily.
| But instead of a FullRowSelect, I'd like the user to select the Image
only.
| It's like instead of highlighting the complete item as in FullRowSelect, I
| want that the Image, and the text content be highlighted separately.
|
| So, that when a user clicks only the Image, I perform some other action,
| while when a user clicks the item's text, I do some other action.
| Is it possible to do it?
| I'd be grateful if some one can provide some pointers in this direction.
|
| Regards,
| Asheesh
|
|
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top