refresh a Row in a dcbrowse
Posted: Wed Jul 04, 2018 12:08 pm
hello Roger
How can you refresh a Row in a dcbrowse, to set the default color
How can you refresh a Row in a dcbrowse, to set the default color
Donnay Software Web Forums
http://donnay-software.com/DONNAY/
rdonnay wrote:oBrowse:refreshCurrent()
do you mean Color of Zebra-Browse ?digitsoft wrote:... to set the default color
Code: Select all
IF oBrowse:rowPos %2 == 0
oBrowse:evenrow := .T.
ELSE
oBrowse:evenrow := .F.
ENDIF
Auge_Ohr wrote:do you mean Color of Zebra-Browse ?digitsoft wrote:... to set the default color
Color of Zebra-Browse is
\Source\Dclipx\_dcxbrow.prgCode: Select all
IF oBrowse:rowPos %2 == 0 oBrowse:evenrow := .T. ELSE oBrowse:evenrow := .F. ENDIF
as long you a "on-Record" you got Hilite-Color and not Zebra-Color.digitsoft wrote:Hello
then use: rowpos to place the cursor on the article that entered the browse but it remains the color of the cursor of the position 1 which is the one that is framed in the circle and want to put the color of zebra again.
Code: Select all
DCBROWSE ... SUBCLASS "MyDbBrowse()"
CLASS MyDcBrowse grom Dc_XbpBrowse
EXPORTED:
METHOD RefreshRow
ENDCLASS
METHOD MyDcBrowse:RefreshRow(nRow)
If nRow > 0
::RefreshRows ( nRow,nRow )
Endif
Return
jdsoft wrote:Hello,
There is a undocumentes method to do so.
Code: Select all
DCBROWSE ... SUBCLASS "MyDbBrowse()" CLASS MyDcBrowse grom Dc_XbpBrowse EXPORTED: METHOD RefreshRow ENDCLASS METHOD MyDcBrowse:RefreshRow(nRow) If nRow > 0 ::RefreshRows ( nRow,nRow ) Endif Return