Tooltip does not work on header

6 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 18 Jan 2008 Link to this post

    Hi,

    I have an app with two panels.
    The left panel will hold something like a menu.

    What I want is to provide a Tooltip for this panel.
    It work - but only in the "client area" of the panel.

    When I hover the "headline" it does not pop up a tooltip.
    Since the panel will be filled with other controls the tooltip will never show up.

    To be more precise:
    Imagine an explorer like app.
    A panel to the right - showing details.
    A panel to the left - containing a large treeview.

    What I want is that when the user hovers the "headline" a tooltip should be shown telling something like "Select a folder to see the files...".

    Is this possible?

    Regards

    Manfred
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 21 Jan 2008 Link to this post

    Hello Manfred,

    Thank you for writing.

    This feature is not supported in our current release. We have added it to our TODO list for Q1 2008 release.

    Thank you for idea. Your Telerik points have been updated.

    Kind regards,
    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. kdev
    kdev avatar
    16 posts
    Member since:
    Apr 2007

    Posted 22 Jan 2008 Link to this post

    Hi Manfred,

    Waiting for the new tooltip, you can do like that :

    toolTip1.SetToolTip(DockPanel1.DefaultPresenter as Control, "Select a Folder "); 

    Regards,
    kort.

  5. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 22 Jan 2008 Link to this post

    Hi Kort,

    that's it!
    Thanks a lot, really great help.
    It does exactly what we have been searching for.

    Regards

    Manfred
  6. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 22 Jan 2008 Link to this post

    Hi Kort,

    any idea how to make it work in "AutoHide" state?
    Your solution (as told above) works like a charm.
    But when I switch to AutoHide - the tooltip no longer comes up.
    Back to "Docked" - it is there again.

    I guess in "AutoHide" a different header control gets used.

    Any idea?

    Thanks

    Manfred
  7. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 24 Jan 2008 Link to this post

    Hi,

    there is another problem with your solution.
    If you start the app in "minimized" DockPanel1.DefaultPresenter is null.

    Of course I can overcome this by checking if it is null - and don't set the TT.

    But later (if the user restores the window) I don't have a tooltip.

    I guess it would also be possible to handle OnResize or something like this.
    But this would end in breadcrumps all over my app just to get a tooltip.

    And it would (by the way) break my program logic.
    What it does is:
    At startup it creates a class which reads "text values" (Caption, Text, ToolTip and so on) from a database and then it sets those values on the controls.
    So form load creates an instance of this class and next it reads the values and sets the controls.
    After this the class is disposed.

    With the "wait for window restore idea" I also had to delay disposing this class.

    Any help?

    Manfred
Back to Top
UI for WinForms is Visual Studio 2017 Ready