|
-
Dec 5th, 2000, 08:29 AM
#1
Thread Starter
Lively Member
How can I add an onclick event to a control that does not have it?
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
-
Dec 6th, 2000, 03:51 PM
#2
Lively Member
Use the mouse up event instead of ONClick
-
Dec 7th, 2000, 06:12 AM
#3
Thread Starter
Lively Member
It doesn't have any mouse events at all!
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
-
Dec 7th, 2000, 06:52 AM
#4
Fanatic Member
What control are you using?? Does it have an hWnd property??
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
Dec 7th, 2000, 07:36 AM
#5
Thread Starter
Lively Member
gif89a is the control,
available events are:
DragDrop
DragOver
GotFocus
LostFocus
Validate
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
-
Dec 7th, 2000, 08:12 AM
#6
Fanatic Member
Never used the control, check and see if it has a gif89a.hWnd property, if it does you can use the API to do this, let me know and I'll send some code.
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
Dec 7th, 2000, 08:17 AM
#7
Thread Starter
Lively Member
no handle...
No hwnd property is available..
Kiziltan Yuceil
Freelance Web/VB/VBA Programmer
"It's not what you know it's to whom you consult and with whom you collaborate"
-
Dec 7th, 2000, 08:44 PM
#8
Hyperactive Member
Active X Events
What does the control do?
If it is simple, why don't you try to make a new Active X control, or see if you can get the code for the existing one?
This is what I normally do.
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Dec 7th, 2000, 08:52 PM
#9
Hyperactive Member
Possible Answer
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If (x > gif98a.left) and (x < gif98a.left + gif89a.width) and (y > gif98a.top) and (y < gif98a.top + gif98a.height) then msgbox "gif98a has been clicked"
End Sub
This may work.
If it does, ignore my last message.
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
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
|