Page 1 of 1
7.11 omsgbar:setmsg() different behavior
Posted: Thu Nov 29, 2007 12:48 pm
by Taavi
Hi,
in our tests with 7.11 omsgbar:setmsg(ctext) is not enough any more to display message on message bar. We had to add omsgbar:display() to get text shown. With 7.01 just :setmsg(ctext) was enough.
Is this intended behavior?
Taavi.
Posted: Thu Nov 29, 2007 1:14 pm
by Antonio Linares
Taavi,
Are you using the 2007 clause ?
Please notice that this is an important fix that we have recommended to apply to FWH 7.11:
Code: Select all
METHOD SetMsg( cText ) CLASS TMsgBar
DEFAULT ::cMsg := ""
if ::l2007
::cMsg = cText
::Refresh()
return nil
endif
::GetDC() // here!!!
Posted: Thu Nov 29, 2007 3:25 pm
by Taavi
>Are you using the 2007 clause ?
Yes
>Please notice that this is an important fix that we have recommended to >apply to FWH 7.11:
Yes, we have this fix and application is stable. The only problem is that with 2007 clause text will not be displayed until sysrefresh() or msgbar:display()
No problem, we already added omsgbar:display() to our text output procedure but if omsgbar:settext() should display text, then there is some problem with it.
Taavi.
Posted: Thu Nov 29, 2007 4:01 pm
by Antonio Linares
Taavi,
> but if omsgbar:settext() should display text
Do you mean oMsgBar:SetText() or oMsgBar:SetMsg() ?
Posted: Thu Nov 29, 2007 8:21 pm
by Taavi
Antonio Linares wrote:Taavi,
> but if omsgbar:settext() should display text
Do you mean oMsgBar:SetText() or oMsgBar:SetMsg() ?
Sorry, oMsgbar:SetMsg()
Taavi