Page 1 of 1

Msgbar in dialogs

Posted: Mon May 14, 2007 10:37 am
by StefanHaupt
Hi,

how can I change the text of the msgbar I put in a dialog ?

...
ON INIT oDlg:oMsgbar := TMsgbar():New(oDlg, "Text1", ....) shows the bar

But

oDlg:oMsgbar:SetMsg ("Second") does not change the text
....

Stefan

Posted: Mon May 14, 2007 11:02 am
by Antonio Linares
Stefan,

Try this:

oDlg:oMsgbar:cMsg := "Second"

or

oDlg:oMsgbar:cMsgDef := "Second"

Posted: Mon May 14, 2007 4:20 pm
by StefanHaupt
Antonio,
Antonio Linares wrote:Stefan,

Try this:

oDlg:oMsgbar:cMsg := "Second"

or

oDlg:oMsgbar:cMsgDef := "Second"
it is working with oDlg:oMsgbar:cMsgDef := "...", but you have additionally to call oDLg:oMsgbar:Refresh().

Thanks

Stefan