Menu

#54 Tooltip for tabs ?

v1.0_(example)
open
nobody
None
1
2023-05-11
2022-09-06
No

Could it be possible to have tooltips for tabs ?

BEGIN PAGE "Stats" of oTab TOOLTIP _("Statistics")

Thanks
A+

Discussion

  • Wilfried Brunken

    Hello Alain,
    can you post a sample program so i can
    test the addition of the requested method(s) ?

    I think we need an extension of the HTAB class, the attribute cToolTip is not existing.
    Also the Method StartPage( <cname> ) must be extended to
    StartPage( <cname> , cTooltip)</cname></cname>

    xcommand BEGIN PAGE <cname> OF <otab> ;</otab></cname>

          => ;
    <oTab>:StartPage( <cname> )
    

    Also i must check, if this is possible in GTK and WinAPI rules.

    With regards
    MNI TNX, 73 es 55 de
    DF7BE, Wilfried

     
  • Aupeix Alain

    Aupeix Alain - 2022-09-22

    Hi,
    I have not understood the content of your post

    Here is a very simple test. I commented Tooltips for tabs, as it doesn't build for now.

    Thanks
    A+

     
  • Wilfried Brunken

    Hello Alain,
    with commit r3183 i added the tooltip feature to the HTAB class.
    The recent code runs with GTK2 and GTK3.

    I used a trick:
    The tooltip text can only be set for the whole notebook,
    so the method onEvent() changes the tooltip text
    when changing the tab.
    The tooltips text's are stored in a new array "aTooltips".

    I'll do the port to WinAPI during the next few days.

    Please check code and give feedback.

    With regards
    MNI TNX, 73 es 55 de
    DF7BE, Wilfried

     
  • Aupeix Alain

    Aupeix Alain - 2022-12-17

    Hi Wilfried,

    A see that it works, but with an ennoying problem : whatever the position of the mouse on the titles of tabs, the tooltip is always that of the active tab ...

    Which is not really satisfactory ...

    Is there anyway to match the tooltip and the tab where is located the mouse?

    Thanks
    A+

     
  • Aupeix Alain

    Aupeix Alain - 2023-05-11

    No trick ?

    A+

     

Log in to post a comment.