FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Changing color of xBrowse Memo-cellcolor on focus ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Changing color of xBrowse Memo-cellcolor on focus ?
Posted: Sun Aug 04, 2013 12:36 PM
Hello,

is it possible, to change the color of a focused memofield in xBrowse ?

seems not to work with MEMOFIELDS .

:bClrSelFocus = { || { 0, 16512957 } }
:bClrSel = { || { 16777215, 255 } }




Code (fw): Select all Collapse
// 2
oCol  := oBrw1:oCol( "Info1" )
oCol:nWidth       := 155
oCol:nEditType    := EDIT_BUTTON
oCol:bEditBlock   := { | r, c, o | EDITNOTES( r, c, o, STYLE1->Info1 ) }
oCol:bOnPostEdit  := { | o, cVal | If ( cVal != nil, ( DBSELECTAREA("STYLE1"), ;
                                        NET_RLOCK( 5, 5 ), ;
                                            STYLE1->Info1 := cVal, ;
                                        NET_ULOCK(), oBrw1:Refresh() ), NIL) }


Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Changing color of xBrowse Memo-cell on focus ?
Posted: Sun Aug 04, 2013 12:39 PM

Works the sameway whether memofields or normal fields

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion