progress on msgitem

Post Reply
User avatar
Silvio.Falconi
Posts: 7140
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

progress on msgitem

Post by Silvio.Falconi »

I have a msgitem

DEFINE MSGITEM ::oMsgItem4;
OF ::oWndMain:oMsgBar;
PROMPT "";
SIZE 400;
BITMAPS "MSG_EOEO", "MSG_EOEO";
TOOLTIP " "

and I wish show a Meter

@ 02, 11 PROGRESS oApp:oProgressDlg POSITION 1 of oApp:oMsgItem4;
SIZE 200,18 pixel

make error
Error description: Error BASE/1004 Message not found: TMSGITEM:HWND
Args:
[ 1] = O TMSGITEM

Stack Calls
===========
Called from: => __ERRRT_SBASE( 0 )
Called from: ../../../tobject.prg => TMSGITEM:ERROR( 0 )
Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )
Called from: ../../../tobject.prg => TMSGITEM:MSGNOTFOUND( 0 )
Called from: ../../../tobject.prg => TMSGITEM:HWND( 0 )
Called from: .\source\classes\TPROGRES.PRG => TPROGRESS:NEW( 122 )


before it run ok on Msgbar with

@ 02, 11 PROGRESS oApp:oProgressDlg POSITION 1 of oApp:oWndMain:oMsgBar;
*SIZE 200,18 pixel

How I can make to move the progress on oApp:oMsgItem4 ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Antonio Linares
Site Admin
Posts: 42537
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 77 times
Contact:

Re: progress on msgitem

Post by Antonio Linares »

Dear Silvio,

Class TMsgItem does not inherit from Class TControl

You have to use ... OF oApp:oWndMain:oMsgBar

Maybe you could change the bitmap of the MsgItem with a timer, simulating a progress bar
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply