Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Setting the ToolTip Timing Collapse All
Subject Author Date
Bill Olson May 1, 2012 - 7:22 PM

Searching your site, I see that you shortened the default tooltip trigger delay from 1s to 500ms.  How would I go about changing this delay?  I don’t see in the Prof-UIS source where this is set to begin with.  It would be nice to set the delay for all controls.


I tried accessing the m_wndToolTip for a control, but it’s a protected member.  I could always change it to a public one and recompile, but I would have to set the timing for each control in my application independently and that’s going to be a pain.  I was hoping there was an easier way.


I also had a further question about adding the scroll to my control bar.  I couldn’t get it to work.  I posted some code late last week in that thread.  I’m awaiting a reply.


Thanks,


Bill

Bill Olson May 16, 2012 - 11:12 PM

I found m_nPeriodDelayShowNormal yesterday.  I also found a bug in the code handling tooltips.  It was always using the minimum delay instead of the normal delay.  When I fixed that it worked more as expected.


Bill

Technical Support May 16, 2012 - 3:08 AM

Here is how to change it for most of controls and toolbars:

g_DefPopupMenuSite.GetTip()->m_nPeriodDelayShowNormal = 1000;

Here is how to change it for tje ribbon bar and ribbon page:
wndRibbon.OnAdvancedPopupMenuTipWndGet()->m_nPeriodDelayShowNormal = 1000;