//----------------------------------------------------------------------
STATIC FUNCTION TrayTimer( DlgT, nInterval, oMet )
LOCAL oTmr
DEFINE TIMER oTmr OF DlgT INTERVAL 1 ACTION ( oMet:nPosition +=1, IIF(oMet:nPosition > nInterval, DlgT:End(), ) )
ACTIVATE TIMER oTmr
RETURN nil
//----------------------------------------------------------------------
FUNCTION MsgFlip( cMsg )
LOCAL aRct, oDlgAct, oMet
DEFINE DIALOG oDlgAct RESOURCE 23
REDEFINE STSAY PROMPT cMsg ID 10 COLORS CLR_YELLOW OF oDlgAct FONT oApp:cFontMsg
oMet := TProgress():Redefine( 13, oDlgAct )
ACTIVATE DIALOG oDlgAct CENTER ON PAINT ( aRct := GetClientRect( oDlgAct:hWnd ), GradColor( oDlgAct:hDC, aRct, CLR_GRAY, _CLRGRAY ) ) ;
ON INIT ( oMet:SetRange(1,200),TrayTimer( oDlgAct, 250, oMet ) )
RETURN Nil
//----------------------------------------------------------------------
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 108 guests