|
-
Aug 10th, 2000, 12:24 PM
#1
Thread Starter
Frenzied Member
is it possible to do something like
Code:
if tooltiptext.visble = true then
msgbox "hi"
or maybe some other way to detect if the mouse was still over a object for 3 seconds (or how many the tool tip text is)
I hope you get what I'm trying to say
thanks in advance
NXSupport - Your one-stop source for computer help
-
Aug 10th, 2000, 04:32 PM
#2
New Member
no subject
try this under the mouse move. if you want it to pause for
3 secs then just add a PAUSE FUNCTION.
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.ToolTipText = "This Is The ToolTip Text"
If Label1.ToolTipText = "This Is The ToolTip Text" Then
MsgBox "Hi Peep!!"
End If
End Sub
There's only two things universal in this world and thats Hydrogen and Stupidity.
-
Aug 10th, 2000, 06:15 PM
#3
Thread Starter
Frenzied Member
where do I put Pause Function?
NXSupport - Your one-stop source for computer help
-
Aug 11th, 2000, 12:07 PM
#4
New Member
reply
put the following in a module
Sub Pause(interval)
Dim Current
'pauses
Current = Timer
Do While Timer - Current < Val(interval)
DoEvents
Loop
End Sub
put the call out in the code like below
'Pause for Pause...... 3 for the number of secs to hold
'The Pause should go right after if tooltiptext = "Bla"
'Pause for 3 secs. then show msgbox
Pause(3)
There's only two things universal in this world and thats Hydrogen and Stupidity.
-
Aug 11th, 2000, 12:08 PM
#5
New Member
PS....Don't forget to add a timer to the form and set the intervals to 1
There's only two things universal in this world and thats Hydrogen and Stupidity.
-
Aug 11th, 2000, 12:27 PM
#6
Thread Starter
Frenzied Member
NXSupport - Your one-stop source for computer help
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
|