oWnd:oMsgbar:SetText

oWnd:oMsgbar:SetText

Postby Bayron » Sun Mar 03, 2013 2:55 pm

Hi all,

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

Code: Select all  Expand view
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
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: oWnd:oMsgbar:SetText

Postby devtuxtla » Sun Mar 03, 2013 8:39 pm

Hi Bayron

Try

oWnd:setmsg("My msg ")

Regards
Visite Chiapas, el paraiso de México.
devtuxtla
 
Posts: 392
Joined: Tue Jul 29, 2008 1:55 pm

Re: oWnd:oMsgbar:SetText

Postby Bayron » Sun Mar 03, 2013 9:26 pm

Thanks,
Yes, I have tried it...
But SetText() is the same as SetMsg():

Code: Select all  Expand view
METHOD SetText( cText ) INLINE ::SetMsg( cText )
=====>

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

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA

Re: oWnd:oMsgbar:SetText

Postby Enrico Maria Giordano » Sun Mar 03, 2013 10:19 pm

Try to add:

oWnd:oMsgbar:cMsgDef = "New text"

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8713
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: oWnd:oMsgbar:SetText

Postby Bayron » 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
(215)2226600 Philadelphia,PA, USA
+(502)46727275 Guatemala
MayaBuilders@gMail.com

FWH12.04||Harbour 3.2.0 (18754)||BCC6.5||UEstudio 10.10||
Windows 7 Ultimate

FiveWin, One line of code and it's done...
User avatar
Bayron
 
Posts: 815
Joined: Thu Dec 24, 2009 12:46 am
Location: Philadelphia, PA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 93 guests