|
-
Sep 17th, 2001, 03:29 AM
#1
Thread Starter
Lively Member
simple question plz help
Hi There,
I'm creating an active X ocx at the moment for my other VB app.
what i need to do is create an DblClick event for when the user double-clicks on my active X control, how do i do this?
Thanks.
Smithy.
-
Sep 17th, 2001, 03:40 AM
#2
-= B u g S l a y e r =-
VB Code:
Option Explicit
Public Event OCXDoubleClick()
Private Sub UserControl_DblClick()
RaiseEvent OCXDoubleClick
End Sub
-
Sep 17th, 2001, 03:48 AM
#3
Thread Starter
Lively Member
thanks, it worked but...
Thanks peet.
I only got one small problem though, my usercontrol has an additional control attached to it and this particular control doesn't have a double-click event. The problem is that this control covers most of the usercontrol so it makes it extremely hard for the double-click even to work.
Is there an additional way to get it the double-click to work no matter if they click on the user control or the other control on the user control?
Thanks
Smithy.
-
Sep 17th, 2001, 03:51 AM
#4
-= B u g S l a y e r =-
hmm.. if the control on the usercontrol is not u'r own, and does not have a double click event, u have a problem.
does it have other events like mouseup or mousedown events?
-
Sep 17th, 2001, 03:58 AM
#5
Thread Starter
Lively Member
nope
The closest thing it has is gotfocus and lostfocus. It also has drapdrop and dragover
Thanks
-
Sep 17th, 2001, 04:02 AM
#6
-= B u g S l a y e r =-
hmm then I don't see how u can catch the doubleclick event... sorry
try posting a new thread in the API, ask if anyone now how to detect doubleclick event on an OCX with no doubleclick event.. they might know.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|