FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour oWnd:oMsgbar:SetText
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
oWnd:oMsgbar:SetText
Posted: Sun Mar 03, 2013 02:55 PM
Hi all,

I am trying to set a new message bar text, but it does not work properly...

Code (fw): Select all Collapse
oWnd:oMsgbar:SetText("New text")
oWnd:oMsgbar:Refresh()


It sets the text and it's displayed, but when I move the mouse pointer, it reset's to it's original text...

Am I doing anything wrong???

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Re: oWnd:oMsgbar:SetText
Posted: Sun Mar 03, 2013 08:39 PM

Hi Bayron

Try

oWnd:setmsg("My msg ")

Regards

Visite Chiapas, el paraiso de México.
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: oWnd:oMsgbar:SetText
Posted: Sun Mar 03, 2013 09:26 PM
Thanks,
Yes, I have tried it...
But SetText() is the same as SetMsg():

Code (fw): Select all Collapse
METHOD SetText( cText ) INLINE ::SetMsg( cText )

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: oWnd:oMsgbar:SetText
Posted: Sun Mar 03, 2013 10:19 PM

Try to add:

oWnd:oMsgbar:cMsgDef = "New text"

EMG

Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: oWnd:oMsgbar:SetText
Posted: Sun Mar 03, 2013 10:51 PM

Thanks Enrico,
It work's...!!!

I see that cMsg is assigned in the class \source\classes\msgbar.prg, but not cMsgDef...

I'll take a look tomorrow to see where the problem is...

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Continue the discussion