TreeView MouseUp Event HELP!

G

Guest

Hi all,
I am using a treeview to display data and want to display a customised popup
menu when the user right clicks.

I cannot get the MouseUp event of the treeview to work. It shows in the
Object Browser that it does indeed have such an event. However, when I
compile, I'm informed that "the procedure declaration does not match
description of event or procedure having the same name".

I'm using the following construct:

Private Sub trvData_MouseUp(Button As Integer, Shift As Integer, X As
Single, Y As Single)
MsgBox "okay"
End Sub

I guess the problem is that I am not using OLE_XPOS_PIXELS, but am using a
Single instead. I don't know in which library to find said object though.
Does anyone know or have a work around please?

Many thanks
A very fed up Dave!
 
R

Ron Weiner

Dave

I think your construct may be incorrect. I see:

Private Sub trvData_MouseUp(_
ByVal Button As Integer, _
ByVal Shift As Integer, _
ByVal x As Long, _
ByVal y As Long)


Ron W
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top