FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Problems with MSGBAR
Posts: 166
Joined: Wed Aug 29, 2012 08:25 AM
Problems with MSGBAR
Posted: Mon Jan 21, 2013 08:52 AM
Sorry , i had the intention to put this in the english forum !!!!!

Hello,

I try to use the messagebar from a MDICHILD window (xbrdbu)

Code (fw): Select all Collapse
....
DEFINE MSGITEM aItem[4] OF oMsgBar PROMPT IIF(Deleted(),"Deleted","") SIZE 80 COLOR CLR_HRED,CLR_HBLUE     
.....
 oBrw:bChange := {||aItem[4]:Settext(IIF(Deleted(),"Deleted","")),aItem[4]:Refresh()}


1) The refresh() item from bchange generates a windows error (ends the program , no error log)

2) Background color doesn't change

I tryed also with

::aItems[6]:nClrText(CLR_WHITE)
::aItems[6]:nClrPane(CLR_HRED)
::aItems[6]:SetText("Exclusive")
::aItems[6]:Refresh()

Colors doesn't change


Frank
test
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Problems with MSGBAR
Posted: Mon Jan 21, 2013 01:06 PM

viewtopic.php?p=139039#p139039

Modify your code this way:

::oWnd:oMsgBar:aItems[6]:nClrText := CLR_WHITE
::oWnd:oMsgBar:aItems[6]:nClrPane := CLR_HRED
::oWnd:oMsgBar:Refresh()

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion