Hello Jamal
I'm sorry...
VO2.8SP4b + Win10 21H2 19044.1889
Code is simple:
OknoPostepu (ProgressWin) inherited from DialogWindow created from toolbar
that has
IndexBar as ProgressBar
code from VO
RESOURCE OknoPostepu DIALOGEX 5, 19, 260, 45
STYLE DS_3DLOOK|WS_POPUP|WS_CAPTION|WS_SYSMENU
FONT 8, "MS Shell Dlg"
BEGIN
CONTROL "Indeksowanie", OKNOPOSTEPU_INDEXBAR, "msctls_progress32", WS_CHILD, 8, 7, 244, 11
END
CLASS OknoPostepu INHERIT DIALOGWINDOW
PROTECT oDCIndexBar AS PROGRESSBAR
//{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
METHOD Advance() CLASS OknoPostepu
SELF:oDCIndexBar:Advance(1)
RETURN NIL
METHOD EndWin() CLASS OknoPostepu
SELF:EndDialog()
RETURN NIL
METHOD Init(oParent,uExtra) CLASS OknoPostepu
SELF:PreInit(oParent,uExtra)
SUPER:Init(oParent,ResourceID{"OknoPostepu",_GetInst()},FALSE)
oDCIndexBar := ProgressBar{SELF,ResourceID{OKNOPOSTEPU_INDEXBAR,_GetInst()}}
oDCIndexBar:HyperLabel := HyperLabel{#IndexBar,"Indeksowanie",NULL_STRING,NULL_STRING}
oDCIndexBar:Range := Range{0,23}
SELF:Caption := ""
SELF:HyperLabel :=HyperLabel{#OknoPostepu,NULL_STRING,NULL_STRING,NULL_STRING}
SELF:PostInit(oParent,uExtra)
RETURN SELF
STATIC DEFINE OKNOPOSTEPU_INDEXBAR := 100
and in main program loop
FOR Rec := 1 to 10
//do something
OknoPostepu:Advance()
NEXT
Just like that - nothing very special.
Regards
Gregory