progress on msgitem

progress on msgitem

Postby Silvio.Falconi » Fri Apr 30, 2021 10:49 am

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
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: progress on msgitem

Postby Antonio Linares » Fri Apr 30, 2021 12:01 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42059
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 46 guests