Tooltip Display Time Too Short

J

JP

I have an Access 2003/WinXP application with a number of custom toolbars.
Each button on each custom toolbar has tooltip text ("screentip" on the
property screen).

When the application runs, the tooltip displays for only a second or two and
then disappears, which is too fast for the users to really see anything.

Is there any way to control the length of time that the tooltip appears, or
have I done something wrong, or what?

I know that Lebans has a custom tooltip class, but I'd rather avoid having
to retrofit over 250 command buttons with a custom tooltip class.

Thanks.
 
T

TC

You can control tooltip animation via the SystemParametersInfo win32
API call:
http://msdn.microsoft.com/library/d...y/en-us/sysinfo/base/systemparametersinfo.asp

For examples of how to use that API from VB[A]:
http://groups.google.com/groups/search?q=systemparametersinfo+"declare+function"

But - it is generally considered "bad practice" to alter such
parameters, because it will affect all other applications on the user's
PC. Perhaps you could change the settings when your application
receives the focus, & change them back when it looses the focus?

Alternatively, you can automatically change existing button properties,
through code, without having to do it manually. Would that help you
change to Stephen's class?

(untested)

dim con as container, doc as document,m frm as form, ctl as control
set con = dbengine(0)(0).containers![forms]
for each doc in con.documents
docmd.openform doc.name, ..., acDesign
set frm = forms(doc.name)
for each cl in frm.controls
if typeof ctl = accommandbutton then
--- change command button props ---
endif
next
docmd.close acform, doc.name ... paramater for save-changes=True
next
set frm = nothing
set doc = nothing
set con = nothing

HTH,
TC (MVP Access)
http://tc2.atspace.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top