Results 1 to 5 of 5

Thread: Automatic Multiline ToolTips

  1. #1

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Automatic Multiline ToolTips

    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
    Attached Files Attached Files
    Last edited by Andrew G; Mar 15th, 2006 at 02:38 AM. Reason: New Version

  2. #2
    New Member
    Join Date
    Mar 2006
    Location
    Aurora, Illinois
    Posts
    1

    Question Re: Automatic Multiline ToolTips

    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.

  3. #3

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Automatic Multiline ToolTips

    Sorry but i haven't tried it in another control, but i'll try and see what i can do.

  4. #4

    Thread Starter
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Automatic Multiline ToolTips

    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).
    Last edited by Andrew G; Mar 15th, 2006 at 02:36 AM.

  5. #5
    Junior Member
    Join Date
    Apr 2009
    Posts
    22

    Re: Automatic Multiline ToolTips

    tooltip multiline beatiful examples thanks andrew

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width