Results 1 to 6 of 6

Thread: if tooltiptext.visible = true then

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    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

  2. #2
    New Member
    Join Date
    Jun 2000
    Location
    South Florida
    Posts
    11

    Cool 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.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    where do I put Pause Function?
    NXSupport - Your one-stop source for computer help

  4. #4
    New Member
    Join Date
    Jun 2000
    Location
    South Florida
    Posts
    11

    Cool 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.

  5. #5
    New Member
    Join Date
    Jun 2000
    Location
    South Florida
    Posts
    11
    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.

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    ok, thanks
    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
  •  



Click Here to Expand Forum to Full Width