FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour 7.11 omsgbar:setmsg() different behavior
Posts: 97
Joined: Mon Nov 21, 2005 10:29 AM
7.11 omsgbar:setmsg() different behavior
Posted: Thu Nov 29, 2007 12:48 PM

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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
7.11 omsgbar:setmsg() different behavior
Posted: Thu Nov 29, 2007 01:14 PM
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:
METHOD SetMsg( cText ) CLASS TMsgBar

   DEFAULT ::cMsg := ""
   
   if ::l2007
      ::cMsg = cText
      ::Refresh()
      return nil
   endif   
   
   ::GetDC()  // here!!!
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 97
Joined: Mon Nov 21, 2005 10:29 AM
7.11 omsgbar:setmsg() different behavior
Posted: Thu Nov 29, 2007 03:25 PM

>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.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
7.11 omsgbar:setmsg() different behavior
Posted: Thu Nov 29, 2007 04:01 PM

Taavi,

> but if omsgbar:settext() should display text

Do you mean oMsgBar:SetText() or oMsgBar:SetMsg() ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 97
Joined: Mon Nov 21, 2005 10:29 AM
7.11 omsgbar:setmsg() different behavior
Posted: Thu Nov 29, 2007 08:21 PM
Antonio Linares wrote:Taavi,

> but if omsgbar:settext() should display text

Do you mean oMsgBar:SetText() or oMsgBar:SetMsg() ?


Sorry, oMsgbar:SetMsg()

Taavi

Continue the discussion