473,327 Members | 1,919 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Tooltip delay and duration

Knut Ole
hi,
anyone know how to set the delay and duration of the tooltip controlled in Forms!Control.[ControlTip Text]?

thanks
Mar 14 '11 #1
4 11081
munkee
374 256MB
http://www.lebans.com/tooltip.htm

Should show what you are looking for
Mar 15 '11 #2
thanks for answer,
i've tried it already,
but i get error msg with access 2010,
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2.  
  3. ' Create an instance of our Tooltip class
  4. Set TTip = New clsToolTip
  5.  
  6. ' We must SetFocus to any control that can
  7. ' accept the focus in order to force Access to
  8. ' create the inplace editing Window.
  9. Me.txtCompanyName.SetFocus
  10.  
  11. With TTip
  12.     ' Creat the tooltip window
  13.     Call .Create(Me)
  14.  
  15.     ' Set the tooltip window to show for 5 secs
  16.     .DelayTime = 5000
  17.  
  18.     .SetToolTipTitle "CUSTOM TOOLTIPS", 0
  19.  
the Call .Create(Me) line has the following debug msg:
runtime err 91, object variable or With block variable not set.


however, im working on this:

Expand|Select|Wrap|Line Numbers
  1. Public Function TT(tDelay As Variant, tDuration As Variant, tText As String, tX As Single, tY As Single)
  2.  
  3. If ttLabel.Visible = False Then
  4.  
  5.     With ttLabel
  6.         .Visible = True
  7.         .Caption = tText
  8.         .Left = tX + 160
  9.         .Top = tY + 160
  10.     End With
  11.  
  12.  
  13.  
  14. Else
  15. End If
  16. End Function
  17.  
...but I need some way of turning the tooltip off (after mouse moved away from object, or delay)..

any ideas?
Mar 15 '11 #3
munkee
374 256MB
When I wish to create general "tool" tip like text appear I use the mouse move event of the button/label to turn it on.

I then use the mousemove event of the detail section of the form to remove the tip.

Might be worth looking in to.

Expand|Select|Wrap|Line Numbers
  1. Private Sub tippersondetect_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  2. On Error GoTo brokentip
  3.  
  4.  
  5.         Me.tipname.Visible = True
  6.  
  7.  
  8. fixedtip:
  9.     Exit Sub
  10. brokentip:
  11.     MsgBox Err.Number & " - " & Err.Description
  12.     Resume fixedtip
  13. End Sub
  14.  
and to remove:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  2. Me.tipname.Visible = False
  3. Me.tipdeptraisedby.Visible = False
  4. Me.tipdateoccurred.Visible = False
  5. Me.tipreference.Visible = False
  6. Me.tiplocations.Visible = False
  7. Me.tipeventdescript.Visible = False
  8. Me.tipeventcat.Visible = False
  9. Me.tipeventcause.Visible = False
  10. Me.tipdeptrespss.Visible = False
  11. Me.tipimmediateact.Visible = False
  12. Me.tipemailstexty.Visible = False
  13.  
  14. End Sub
Mar 16 '11 #4
looks promising, thanks! will get back with working code soon;)
Mar 16 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Des L. Davis | last post by:
System: Dell PowerEdge Server with 3 GB RAM, 2.4 GHz Celeron Software: Microsoft SQL Server 2000 Enterprise running on Windows 2003 Server Software: Microsoft SQL Server 2000 Enterprise running on...
0
by: David Krmpotic | last post by:
Hi all!! I cannot prevent my datagrid's tooltip from showing up immediately after pointing to some cell with cursor. in my form I have private ToolTip toolTip1; in constructor: toolTip1 =...
6
by: lucifer | last post by:
hi i need to insert delay in my program what function should i use the old delay is not supported by the VC6
9
by: | last post by:
Is there a way to change the "fadeout" of a tooltip? In other words, it'll display for about 10 seconds which may or may not be long enough for a user to read the tooltip. I'd like to...
1
by: Mike Salter | last post by:
Is there any way to control the tooltip of a control so that it doesn't disappear so quickly? I know there are tooltip controls available, but I am creating controls on the fly, and adding tooltip...
3
by: Pascal Weill | last post by:
Hello, I've got a problem with the ToolTip control (it is the first time I use it). Whatever the changes I make to the xxxxDelay properties (for example 1000), the tooltip appears immediately...
9
by: krbyxtrm | last post by:
hello i have this profile for iterating empty vectors: +0.3us (microsecond) delay on intel pentium 2.4Ghz can this added delay to my application be reduced? i mean near zero delay, its very...
1
by: =?Utf-8?B?Q3JlYXRpbmcgZGVsYXkgZm9yIHRvb2x0aXA=?= | last post by:
I am using 'title' attribute of Anchor tag (<A>) for creating a tooltip.I need to show the tooltip for 25 seconds.Can anybody help please me out in creating a delay? Thanks
5
by: =?Utf-8?B?cGV0ZTE5Njk=?= | last post by:
I use Visual Studio 2005 and created a very simple Form with one button. I added a Tooltip for that button. It shows fine the first time I hover over that button. But if I let it disappear by the...
8
mikek12004
by: mikek12004 | last post by:
1) Script Title: Rich HTML Balloon Tooltip 2) Script URL :http://www.dynamicdrive.com/dynamicindex5/balloontooltip.htm 3) Problem Description: See this page General Music for links you can...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.