When hover my mouse , I want a pop-up tip box

A

ali

When i move my mouse over a button, i'd like it to pop-up a help box.

Thanks a lot , experts !
 
D

Dirk Goldgar

ali said:
When i move my mouse over a button, i'd like it to pop-up a help box.

Thanks a lot , experts !


The command button, like most controls, has a ControlTipText property that
is intended to be used for this sort of thing. You'll find it on the Other
tab of the control's property sheet.
 
A

ali

Dear Dirk,

Big thanks first !, it works ! I have one more question.

If i want the tip to show immediately (or less than 0.5 second) when i hover
the mouse over the button. Where / how can i set the time ?

Big thanks in advance again!
 
L

Linq Adams via AccessMonster.com

You can't! It does what it does! My guess would be that speed is dependent on
your system and current system usage. And to be honest, in my experience, the
ControlTip property is somewhat fickle, sometimes showing up right away,
sometimes being delayed, sometimes requiring moving over the control multiple
times. Instead, I usually place a textbox at the bottom of my screens, format
it as Bold and Centered and in a color that commands attention, and using
each control's GotFocus event, set the text explaining the proper
input/format to be used for the particular control.

Linq

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
 
D

Dirk Goldgar

ali said:
If i want the tip to show immediately (or less than 0.5 second) when i
hover
the mouse over the button. Where / how can i set the time ?


That's a system-wide setting, probably adjustable through the registry. You
can't set it just for your application (unless you're prepared to set it and
then reset it, and want to trust that your application will never fail in
between), and you shouldn't change it for anyone else besides yourself,
because that would be ill-mannered behavior for an application.

You could use a control's GotFocus event, as Linq Adams suggests, or its
MouseMove event, to set some text in another control. You could even have a
"help" popup form that remains open beside the form and displays the
appropriate information for the currently focused or "moused-over" control.
 
S

Stephen Lebans

See:
http://www.lebans.com/tooltip.htm
A97ToolTip.zip is a database containing a custom ToolTip class for use in
A97 or higher.

A2KToolTip.zip is a database containing both an API and Form based ToolTip
solutions. The Form based solution can be used for forms in DataSheet view.

Enhanced features include:

Selectable delay times for Toolltip to first appear
Selectable delay times for Tooltip to dissappear
Selectable Text Color
Selectable Background Color
Selectable Margins
Specify Tooltip size
Add a title to the Tooltip in Bold
Selectable Icon for the Tooltip
ToolTips for Lines, Boxes, any rectangular area on your Form


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
D

Dirk Goldgar

Stephen Lebans said:
See:
http://www.lebans.com/tooltip.htm
A97ToolTip.zip is a database containing a custom ToolTip class for use in
A97 or higher.

A2KToolTip.zip is a database containing both an API and Form based ToolTip
solutions. The Form based solution can be used for forms in DataSheet
view.

Enhanced features include:

Selectable delay times for Toolltip to first appear
Selectable delay times for Tooltip to dissappear
Selectable Text Color
Selectable Background Color
Selectable Margins
Specify Tooltip size
Add a title to the Tooltip in Bold
Selectable Icon for the Tooltip
ToolTips for Lines, Boxes, any rectangular area on your Form


I should have thought of your solution in the first place, Stephen.
 
H

hughess7

Hi, does this only work in datasheet view? I have a continuous form that
needs this... I want to display further detail from a foreign table when the
user hover over a code. I've tried your continuous form example and got this
working, but I then tried to follow that up with a dlookup displaying the
info in unbound text boxes in footer of form but I can't get this working.

Thanks in advance for any help.
Sue
 
A

Arvin Meyer [MVP]

Headers and footers may require code addressing their specific sections.
 

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