7.11 omsgbar:setmsg() different behavior

7.11 omsgbar:setmsg() different behavior

Postby Taavi » 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.
Taavi
 
Posts: 89
Joined: Mon Nov 21, 2005 10:29 am

Postby Antonio Linares » Thu Nov 29, 2007 1: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:
Code: Select all  Expand view
METHOD SetMsg( cText ) CLASS TMsgBar

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Taavi » Thu Nov 29, 2007 3: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.
Taavi
 
Posts: 89
Joined: Mon Nov 21, 2005 10:29 am

Postby Antonio Linares » Thu Nov 29, 2007 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Taavi » Thu Nov 29, 2007 8: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
Taavi
 
Posts: 89
Joined: Mon Nov 21, 2005 10:29 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 75 guests