i got a Solution using a Field-wide STATIC

Code: Select all
PROCEDURE DEMO1()
LOCAL cFileName := "COLORS.BMP"
LOCAL nDelaySeconds := 7
LOCAL nAnimateSeconds := 2
hb_threadStart( @DEMO2())
hb_threadStart( @CreateScreenSplash(), cFileName, nDelaySeconds, nAnimateSeconds )
hb_threadWaitForAll()
RETURN
Code: Select all
PROCEDURE DEMO2()
lStop := .T.
ACTIVATE WINDOW Form2
lStop := .F
RETURN
Code: Select all
PROCEDURE CreateScreenSplash( cFileName, nDelaySeconds, nAnimateSeconds )
...
DEFINE TIMER Timer_1 INTERVAL 10 ACTION { || TestBreak( ThisWindow.Name ) }
END WINDOW
ACTIVATE WINDOW SplashForm
RETURN
PROCEDURE TestBreak()
IF lStop = .T.
Domethod( "SplashForm", "Timer_1", "Release" )
Domethod( "SplashForm", "Release" )
ENDIF
RETURN
Progressbar now use MARQUEE while i´m still unable to access it from "other" Thread.

if i use HB_THREAD_INHERIT_PUBLIC as 1st Parameter with hb_threadStart() i got Error "only Panel ..."

btw. have try #include "hbxpp.ch" and LIB and got same Error "only Panel ..."

have to try if Concept work in "big" App ...