• Welcome to Valhalla Legends Archive.
 

Listview RightClick

Started by Lenny, March 06, 2004, 03:50 AM

Previous topic - Next topic

Lenny

A Listview control by default enables the right mouse button to select items.

Does anyone know the name of this property?  My channel ListView isnt allowing me to select items using right click, I believe a setting has been altered but I dont know the name of its property.
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

R.a.B.B.i.T

I normally just use "If Button = 2 Then" on the click sub.

Lenny

I have no problem showing the mnu's upon a right click...but the right click doesn't select the username thats its pointing to, the username can only be selected thru the left button for some reason...
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

g0dFraY

I seem to have run into the same problem. Could it be that using menus causes this. Its not a major problem for me but i would like to know why this happens.

ChR0NiC

#4
This is quite odd in my mind....I am not getting this problem

Here is what I am using for the menu pop up

Private Sub ChannelList_MouseUp(Button As Integer, Shift As Integer, X As Single, y As Single)
If Button = 2 Then
   PopupMenu mnuOptions
End If
End Sub

Eli_1

Quote from: Lenny on March 12, 2004, 08:54 PM
I have no problem showing the mnu's upon a right click...but the right click doesn't select the username thats its pointing to, the username can only be selected thru the left button for some reason...

note that his problem wasn't to do a popup menu...

his problem is that, he wants to right click on a username and bring up a menu on that name, but when you right click, you don't actually select the name...

ChR0NiC

Quote from: Lenny on March 12, 2004, 08:54 PM
I have no problem showing the mnu's upon a right click...but the right click doesn't select the username thats its pointing to, the username can only be selected thru the left button for some reason...


Quote from: Eli_1 on March 16, 2004, 03:11 PM
note that his problem wasn't to do a popup menu...
his problem is that, he wants to right click on a username and bring up a menu on that name, but when you right click, you don't actually select the name...

Works perfectly fine for me.......always has

Adron

Maybe some people are showing the menu on click / down and others are showing it on up?

ChR0NiC

Quote from: Adron on March 16, 2004, 04:52 PM
Maybe some people are showing the menu on click / down and others are showing it on up?

Yeah I was thinking the same thing, does this solve your problem guys?

Lenny

#9
Yes, it was mouse down that was affecting it, I used mousedown because in my opinion it was more efficient considering how it works....

I also developed a somewhat temporary solution, by manipulating the x, y coordinates of where the mouse actually was and dividing it by the size of 1 item in the listview....Unfortunately it proved to be inaccurate for large lists...
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.