PDA

Click to See Complete Forum and Search --> : Automatic Multiline ToolTips


Andrew G
Jan 7th, 2006, 11:25 PM
Ok I've created an active X component (with a bit of help) that will automatically detect if a control has a tooltip and then it will display it. This tooltip can be multiline and it looks just like window's tooltip. All that is needed it to add the tooltip, and it will show the tooltip as multiline.

One added feature is that you can add the '|' character and it will be converted to a new line.

Note: This is not completely my code, I found the code on the web at http://www.directions.com.au/articlehtmlxid_147 All i did was to make it more easier to use and added the ability to check if any control on the form has a tooltip and then dislpay it, plus some other small stuff.

If you have any suggestions, bugs, problems, you like it or have found a better way to do it, please post it.
Enjoy

New Version: Found bug which made activeX stop working if the form had any controls with no handle. Fixed now :)

Mike K
Mar 13th, 2006, 07:46 AM
Andrew G. I tried your code and it works fine in this project. I tried to use the control within my Active X control and it does not work. I dont' know whether it is not figuring out what window my tooltips are from or not. I have not been able to make it work. If you know how to call your control from another control and get it to work and can give me any help I would appreciate it.

Andrew G
Mar 14th, 2006, 01:14 AM
Sorry but i haven't tried it in another control, but i'll try and see what i can do.

Andrew G
Mar 15th, 2006, 01:04 AM
Sorry but i was unable to make it work inside another activeX control, but you may be able to use the original code to create the tooltips (link is in post 1).

fikret
Apr 22nd, 2009, 04:26 AM
tooltip multiline beatiful examples thanks andrew