Better tooltips?

xcrx

Edge
Local time
Today, 11:22
Joined
Oct 21, 2009
Messages
80
Have attached a mock-up of what I want to do. I am not sure if it something that is possible. My google searches did not turn anything up so I was hoping someone on here might be able to point me in the right direction.

I tried using tooltips to do this but the amount of text is kind of limited and it puts it in a single line streched all the way across the page.

Also I apologize if this should be in the Forms forum. I figured that if it can be done it will be with VBA.

Thank you for any help
Ryan
 

Attachments

  • popups.jpg
    popups.jpg
    80.4 KB · Views: 166
You could use the double click event of the combo box to load a form....
 
Yeah I thought about that. I haven't tried it out yet to see if I like how it works. I like the idea of it just being a mouse over but I don't think that it is possible.
 
You set the ControlTipText.

So, if you hover over the control, you can see it. There is a limit of about 255 characters I believe.

You can set it in design view, if you have static text - just go into the form in design view, click on the control you want and then find the Control Tip Text item in the properties dialog under the OTHER tab.

You can also set it in code like:
Code:
Me.YourControlNameHere.ControlTipText = "Some text here"
or with a field value:
Code:
Me.YourControlNameHere.ControlTipText = Me!YourFieldNameHere

and more...
 
Yeah I already tried that one but like I said before. It is limited and it displays as one long line all the way across the page.

Thank you for the suggestion though.
 
Yeah I already tried that one but like I said before. It is limited and it displays as one long line all the way across the page.

What do you want to display? You can add line breaks to what you need (depending on what it is).
 
I got some help in here recently to break a long line of text into several shorter ones, when using a msgbox. It also works for the ControlTipText.

If you use Bob's suggestion, and modify it a bit, then it should work. Try this:

Code:
Me.YourControlNameHere.ControlTipText = "text line 1" & vbcrlf & "Text line 2" & vbcrlf & "Text line 3"
/Anders
 
It would be a description of the equipment and it could end up being kind of lengthy in some cases.

I think I have come up with a solution that I like. I used Uncle Gizmo's suggestion to open a new form and bound that to a keypress event. I have it open a pop-up form and move it to a good location using docmd.MoveSize. I am happy with the result. It will be simple for people to operate and it looks ok too.
 
>>>open a new form and bound that to a keypress event<<<

If you have a significant number of controls that you want to add this functionality to, then there may be a way of capturing a particular controls name and using that to retrieve the text from a table. You could also set this up in like developer mode so that you can easily add the text through the same control into the table.
 
>>>open a new form and bound that to a keypress event<<<

If you have a significant number of controls that you want to add this functionality to, then there may be a way of capturing a particular controls name and using that to retrieve the text from a table. You could also set this up in like developer mode so that you can easily add the text through the same control into the table.

Yeah that is my plan. It only needs to be on one control but depending on the value of the control it will display different text on the pop-up.

try balloons

I just downloaded the "balloonToolTipDemo" pointed to in this UA thread - looks useful

http://www.utteraccess.com/forum/Bal...-t1803838.html

I will look into it. Thank you for the link.
 
the balloon demo was interesting - it didn't need any references checked , and still works in A2007, even though ballons/assistant is not inlcuded in A2007.
 
It is a very neat module. I think what I came up with works better in my situation but I am going to hold on to this for later use.

I reattached it on here so that smig could get it.
 

Attachments

thanks XCRX

the ballon tips are real nice though they are out of sight. I guess there is no way to change the placement of it, or is there ?

they can be real nice to give some information to the user like - "New version is available", "it's time to back up" ....
maybe "tip of the day"
 
That is pretty neat. I will keep that in mind for later projects.
 
I tested the tooltip and it realy nice. Transparency work too (WinXP AC2003).
Only issue I have is I found no way to set it to work for an object on the form, only to the form itself (me). maybe someone else can help me here.
 

Users who are viewing this thread

Back
Top Bottom