Block icons in a listview control 
Author Message
 Block icons in a listview control

Hi all,
in my application I have two use mode. In one mode user can't move icon in
a listview control but he can only select one of it, click (or double click)
and so on. But he hasn't be able to move icon around the control.

Is it possible to block icons in a listview control?

Thanks in advance.



Mon, 28 Feb 2005 01:13:58 GMT  
 Block icons in a listview control

released on Wed, 11 Sep 2002 17:13:58 GMT bearing the
following fruit:

Quote:
>Hi all,
>in my application I have two use mode. In one mode user can't move icon in
>a listview control but he can only select one of it, click (or double click)
>and so on. But he hasn't be able to move icon around the control.

>Is it possible to block icons in a listview control?

>Thanks in advance.

something roughly like this in the mousedown event should do
it

      LockWindowUpdate ListView1.Hwnd
      Set lv = ListView1.HitTest(x, y)
      ListView1.Enabled = False
      ListView1.Enabled = True
      If lv Is Nothing Then
      Else
        lv.Selected = True
      End If
      ListView1.SetFocus
      LockWindowUpdate 0

J

--

In a Restaurant window: "Don't stand there and be hungry, come in and get fed up."

(Bill Stebbins)



Mon, 28 Feb 2005 16:10:25 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Icon pictures in listview control.

2. HOW TO: Set SubItem icons in report-style ListView controls

3. Listview control VB5: Icons

4. Stopping icon movement in a ListView control

5. Icons in ListView Control

6. two icons beside row in listview control

7. File type icons into ListView control?

8. Add icons into Listview control

9. Add icons to ListView control

10. how many icons can fit on a listview control

11. How to display associated file icons in a ListView control

12. Drag Icon Size - ListView & TreeView Controls

 

 
Powered by phpBB® Forum Software