Will,
I played around a bit [1] with this by setting preferences for all three
durations (TTDT_AUTOPOP, TTDT_INITIAL, TTDT_RESHOW). I made their values
optional parameters to InitialiseTooltips and changed their values to be the
actual number of milliseconds instead of a multiplier (and -1 for the system
default). What I'm finding is that changing TTDT_INITIAL and TTDT_RESHOW has no
effect on the times. I've either done it incorrectly, or the way they are
displayed is not causing it to take affect. Any ideas?
Glenn
[1] Here's code I changed:
MenuBuilder.cpp:
STDMETHODIMP CMenuBuilder::InitialiseTooltips(VARIANT* pvAutoPopTime, VARIANT*
pvInitialTime, VARIANT* pvReshowTime)
{
...
// Set the tool tip times
if (pvAutoPopTime && (VT_I4 == pvAutoPopTime->vt))
{
::SendMessage(m_hTooltipWnd, TTM_SETDELAYTIME, TTDT_AUTOPOP,
pvAutoPopTime->iVal );
}
if (pvInitialTime && (VT_I4 == pvInitialTime->vt))
{
::SendMessage(m_hTooltipWnd, TTM_SETDELAYTIME, TTDT_INITIAL,
pvInitialTime->iVal );
}
if (pvReshowTime && (VT_I4 == pvReshowTime->vt))
{
::SendMessage(m_hTooltipWnd, TTM_SETDELAYTIME, TTDT_RESHOW,
pvReshowTime->iVal );
}
...
}
DQSDTools.idl:
HRESULT InitialiseTooltips([in,optional] VARIANT* autoPopTime, [in,optional]
VARIANT* initialTime, [in,optional] VARIANT* reshowTime);
helpmenu.js:
if(helpMenuToolTipsEnabled)
{
try
{
if(typeof helpMenuToolTipsDisplayTime == 'undefined')
{
helpMenuToolTipsDisplayTime = 30000;
}
if(typeof helpMenuToolTipsInitialTime == 'undefined')
{
helpMenuToolTipsInitialTime = -1;
}
if(typeof helpMenuToolTipsReshowTime == 'undefined')
{
helpMenuToolTipsReshowTime = -1;
}
mb.InitialiseTooltips(helpMenuToolTipsDisplayTime,
helpMenuToolTipsInitialTime,
helpMenuToolTipsReshowTime);
}
preferences.js:
/* Tooltip times
-1 causes the system default to be used.
*/
helpMenuToolTipsDisplayTime = 30000; // 30 seconds
helpMenuToolTipsInitialTime = 10000; // 10 seconds
helpMenuToolTipsReshowTime = 2000; // 2 seconds
----- Original Message -----
From: "Monty Scroggins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 10:49 AM
Subject: RE: [DQSD-Devel] [ dqsd-Bugs-628635 ] tooltips could use startup delay
>
> Yeah but that time setting affect how long the tooltip remains after being
> displayed... Doesnt help with the flashing...
>
> Monty
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:dqsd-devel-admin@;lists.sourceforge.net]On Behalf Of Will Dean
> > Sent: Friday, October 25, 2002 10:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [DQSD-Devel] [ dqsd-Bugs-628635 ] tooltips could use
> > startup delay
> >
> >
> > At 07:09 25/10/2002 -0700, you wrote:
> >
> > >Initial Comment:
> > >The tooltips could use a small delay before displaying.
> > >This would allow the mouse to roam past the menu
> > >items without having the tooltips flash up and down
> > >immediately. On smaller tooltips this isnt really a
> > >problem, but some of them are quite long and the tooltip
> > >flashing can be a real nuisance...
> >
> > Have you tried playing with the helpMenuToolTipsDisplayTime preference?
> >
> > Does it make any difference for you?
> >
> > Will
> >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: Influence the future
> > of Java(TM) technology. Join the Java Community
> > Process(SM) (JCP(SM)) program now.
> > http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> > _______________________________________________
> > DQSD-Devel mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/dqsd-devel
> >
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Influence the future
> of Java(TM) technology. Join the Java Community
> Process(SM) (JCP(SM)) program now.
> http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
> _______________________________________________
> DQSD-Devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dqsd-devel
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
DQSD-Devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dqsd-devel