7.11 omsgbar:setmsg() different behavior

Post Reply
Taavi
Posts: 77
Joined: Mon Nov 21, 2005 10:29 am

7.11 omsgbar:setmsg() different behavior

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

Post 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!!!
regards, saludos

Antonio Linares
www.fivetechsoft.com
Taavi
Posts: 77
Joined: Mon Nov 21, 2005 10:29 am

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

Post by Antonio Linares »

Taavi,

> but if omsgbar:settext() should display text

Do you mean oMsgBar:SetText() or oMsgBar:SetMsg() ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Taavi
Posts: 77
Joined: Mon Nov 21, 2005 10:29 am

Post 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
Post Reply