Is there away to adjust the timing of tooltips?
Use FWH909.
DEFINE FONT oFont1 NAME "tahoma" SIZE 0,-11 BOLD
DEFINE WINDOW OWND1 FROM 1, 5 TO 20, 75 ;
TITLE "Up Your Cash Flow XT2-2009" ;
MENU( BUILDMENU()) ;
COLOR CLR_WHITE, CLR_BLUE
oWnd1:nTooltip := 1000
hWnd = CreateToolTip( Self:hWnd, If( ValType( cToolTip ) == "A", cToolTip[ 1 ], cToolTip ), ;
If( ::lBalloon != nil, ::lBalloon, lTTBalloon ) )
if ValType( cToolTip ) == "A"
if Len( cToolTip ) > 1
if ! Empty ( cToolTip[ 2 ] )
SendMessage( hWnd, TTM_SETTITLE, ;
If( Len( cToolTip ) > 2 .and. ! Empty( cToolTip[ 3 ] ), ;
cToolTip[ 3 ], TTI_INFO ), cToolTip[ 2 ] )
endif
...
if ValType( cToolTip ) == "A"
if Len( cToolTip ) > 1
if ! Empty ( cToolTip[ 2 ] )
SendMessage( hWnd, TTM_SETTITLE, ;
If( Len( cToolTip ) > 2 .and. ! Empty( cToolTip[ 3 ] ), ;
cToolTip[ 3 ], TTI_INFO ), cToolTip[ 2 ] )
endif
if Len( cToolTip ) > 3
if ValType( cToolTip[ 4 ] ) == "N"
SendMessage( hWnd, TTM_SETTIPTEXTCOLOR, cToolTip[ 4 ], 0 )
endif
if Len( cToolTip ) > 4
if ValType( cToolTip[ 5 ] ) == "N"
SendMessage( hWnd, TTM_SETTIPBKCOLOR, cToolTip[ 5 ], 0 )
endif
endif
endif
endif
endif
SendMessage( hWnd, TTM_SETDELAYTIME, TTDT_AUTOPOP, nMakeLong( 6000, 0 ) )
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 11 guests