Better tooltips?

using me.ctrlName was the obvious thing to try ;)
I coouldn't make it to work for any other object. only for the me.form (or me)
I found a way to workaround the problems and make it work, but it require more lines of code.
 
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.

Hi Ryan,

Please have a look at this thread where I looked at this issue.

http://www.access-programmers.co.uk/forums/showthread.php?t=196922&highlight=tooltip

There were 2 problems with Access 2003's tooltip, 1. Only mouse over fired it, 2. String length. I set out to try to solve these issues.

It uses the windows API tooltip. There are 2 issues with my solution.

1. While windows is painting the square tooltip - I get in there with the code and make it rounded. This does not work on all Operating Systems and needs looking at. I did not care about this as I did it for XP and it works.
2. Positioning the tooltip is difficult and does not work if you have multiple screens on with different resolutions. (if you want it on a click then you can solve this problem by positioning it where the mouse is. I did not want this so it was more difficult)

It was a while ago, but I will help you with it if you want.

Just a little warning - The Windows API is not for everyone (it is not for me, but I did it just for fun and learning) - also this code uses the WindowProc (effectively intercepts windows during its work) - which WILL crash access if you debug it or put a break point in it.
 

Users who are viewing this thread

Back
Top Bottom