Page 1 of 1

Update the Message bar

PostPosted: Mon Jul 16, 2007 7:03 pm
by Rick Lipkin
To All

I have a message bar :

xMESSAGE := "User "+xLOGIN+" Rights "+cRIGHTS+ ;
" Default= "+cDEFA+" Rdd= "+cRDD+ ;
" Revision "+DTOC(dEXE)+;
" -r"+str(nSCR1,4)+" x "+STR(nSCR2,4)


SET MESSAGE OF oWind ;
to xMESSAGE CLOCK

How can I update the message bar when one of my variables change ?

Rick Lipkin

PostPosted: Mon Jul 16, 2007 8:24 pm
by Armando
Rick:

Just redraw the message bar after your vars are updated.

SET MESSAGE OF oWind to xMESSAGE CLOCK

Regards

PostPosted: Mon Jul 16, 2007 8:54 pm
by Rick Lipkin
Armondo

You got me in the right direction .. I had to look at the .ppo and then I inserted the native code in my button :

oWind:oMsgBar := TMsgBar():New(oWind,xMESSAGE,.F.,.T.,.F.,.F.,,,,)

and the above worked !!

Thanks
Rick Lipkin

PostPosted: Mon Jul 16, 2007 9:07 pm
by Gale FORd
How about

SET MESSAGE OF oWnd TO "First Text"

oWnd:oMsgBar:KeybOn()
oWnd:oMsgBar:ClockOn()
oWnd:oMsgBar:DateOn()
cText := 'Second Text'
oWnd:oMsgBar:SetText( cText )

PostPosted: Mon Jul 16, 2007 10:33 pm
by Rick Lipkin
Gale

Sorry .. could not get you code to work :x .. However I am happy with re-issuing the native code.

Rick Lipkin

PostPosted: Mon Jul 16, 2007 10:54 pm
by Gale FORd
Sorry your window var was oWind not oWnd.

Anyway glad you are ok.