CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2005
    Posts
    218

    tooltip delay time

    I am not using a CToolTipCtrl. Is there any way I can change the tooltip initial delay time. I think it's 1000ms now, but I want it to be much faster.

    greets,
    timv

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: tooltip delay time

    what about ::SendMessage(..) with TTM_SETDELAYTIME ?

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  3. #3
    Join Date
    Feb 2005
    Posts
    218

    Re: tooltip delay time

    i tried
    Code:
    //in CMainFrame:
    ::SendMessage(m_wndToolBar.GetToolBarCtrl().m_hWnd,TTM_SETDELAYTIME,TTDT_INITIAL,10);
    ::SendMessage(m_hWnd,TTM_SETDELAYTIME,TTDT_INITIAL,10);
    ::SendMessage(m_wndToolBar.m_hWnd,TTM_SETDELAYTIME,TTDT_INITIAL,10);
    but nothing changes (it's still like 1000ms).


    timv

  4. #4
    Join Date
    May 2005
    Posts
    4,954

    Re: tooltip delay time

    well if you set a tool tip to the m_wndToolBar which is CToolBar accroding your code so did you try something like that?

    Code:
    m_wndToolBar.GetToolBarCtrl().GetToolTips()->SetDelayTime(10);
    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  5. #5
    Join Date
    Feb 2005
    Posts
    218

    Re: tooltip delay time

    Quote Originally Posted by golanshahar
    well if you set a tool tip to the m_wndToolBar which is CToolBar accroding your code so did you try something like that?

    Code:
    m_wndToolBar.GetToolBarCtrl().GetToolTips()->SetDelayTime(10);
    Cheers
    Yes, that's what I tried first, but since I do not use CToolTipCtrls, the GetToolTips() function returns NULL;

    To be honest, I don't really get why the tooltips come up in the first place. I believe it's not necessary to use the CToolTipCtrl. I dó have CStrings attached to the toolbarbuttons (TBBUTTONs).

    So, does someone know how to do this when not using the CTooltipCtrl.

    timv
    Last edited by timv; October 3rd, 2005 at 07:17 AM.

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

Featured