Mr. Rao,
The color-change-button and browser-repaint
Everything is repainted, but for the selector-column, only the background of the selector-image-is changed.
---------------
REDEFINE BTNBMP oBtn[16] OF oDlg4 ;
ID 595 PIXEL 2007 ;
NOBORDER ;
PROMPT "&r) Ausw.Spalte" ;
FILENAME c_Pfad1 + "Paint1.Bmp" ;
ACTION ( aVal[107] := ChooseColor(aVal[107], 2 ), oBBmp[16]:Refresh(), ;
SHOW_XBRW( oBrw, aVal ) ) ;FONT oFontSys ;
LEFT
// -- the BROWSER-update ( this function is called on any change to show the result )-------
FUNCTION
SHOW_XBRW( oBrw, aVal )oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw:nColDividerStyle := LINESTYLE_BLACK
oBrw:nRowDividerStyle := LINESTYLE_BLACK
oBrw:bClrStd := { || If( oBrw:KeyNo() % 2 == 0, ;
{ If( ( oBrw:cAlias )->( Deleted() ), 255, aVal[103] ), aVal[102] }, ;
{ If( ( oBrw:cAlias )->( Deleted() ), 255, aVal[101] ), aVal[100] } ) }
oBrw:bClrSel := ;
oBrw:bClrSelFocus := { || { If( ( oBrw:cAlias )->( Deleted() ), 255, aVal[105] ), aVal[104] } }
oBrw:nRecSelColor := aVal[107] // selector-col background
oBrw:lHScroll := .T.
oBrw:lVScroll := .T.
oBrw:lFooter := .T.
oBrw:nRowHeight := 25
oBrw:SetFont( oFontSys )
oBrw:Refresh()RETURN NIL
----------------------
regards
Uwe