oBrw:lContrastClr := .F.
nageswaragunupudi wrote:1) We did not make any changes to the painting logic for a long time.
2) May we know which old version are you comparing with?
3) Anyway, please add this setting and see if the problem is fixed:
- Code: Select all Expand view RUN
oBrw:lContrastClr := .F.
4) If the problem still persists, please let us see your codeblocks: bClrStd, bClrSelFocus
oBrw:lContrastClr := .F.
oListBox:bClrStd = {||If(oListBox:KeyNo() % 2 == 0, ;
{If((oListBox:cAlias )->(Deleted()),CLR_HRED,CLR_BLACK),mLGREEN0},;
{If((oListBox:cAlias )->(Deleted()),CLR_HRED,CLR_BLACK),mLGRAY})}
aSelGrad2:={{.5,RGB(255,255,251),RGB(255,237,178)},{.5,RGB(255,218,103),RGB(255,233,162)}}
:bClrSelFocus := { || {RGB(187,0,0),aSelGrad2}}
nageswaragunupudi wrote:1. What is the old version working correctly?
2. Please give values of mLGREEN0 and mLGRAY
I propose to build browse with the same settings and test with both versions.
mLGREEN0:=nRGB(251,242,225)
mGRAY :=nRGB(233,233,233)
oListBox:nMarqueeStyle := MARQSTYLE_HIGHLROWRC
oListBox:nColDividerStyle:= LINESTYLE_LIGHTGRAY
oListBox:nRowDividerStyle:= LINESTYLE_LIGHTGRAY
#include "fivewin.ch"
REQUEST DBFCDX
function Main()
USE CUSTOMER NEW VIA "DBFCDX"
XBROWSER ALIAS() COLUMNS "STATE", "CITY", "AGE" ;
TITLE FWVERSION SHOW RECID ;
SETUP ( oBrw:lVThumbTrack := .t. )
return nil
#include "fivewin.ch"
REQUEST DBFCDX
function Main()
local mlGreen0 := RGB(251,242,225)
local mLGRAY := RGB(233,233,233)
local aSelGrad1 := {{.5,RGB(100,255,100),RGB(237,255,178)},{.5,RGB(218,255,103),RGB(096,255,096)}}
local aSelGrad2 := {{.5,RGB(255,255,251),RGB(255,237,178)},{.5,RGB(255,218,103),RGB(255,233,162)}}
local oFont
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-20
USE CUSTOMER NEW VIA "DBFCDX"
XBROWSER ALIAS() COLUMNS "STATE", "CITY", "ZIP", "AGE" ;
TITLE FWVERSION SHOW RECID ;
SETUP ( ;
oBrw:SetFont( oFont ), ;
oBrw:aCols[ 2 ]:nWidth := 150, ;
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROWRC, ;
oBrw:bClrStd := {|b|If(b:KeyNo() % 2 == 0, ;
{If((b:cAlias )->(Deleted()),CLR_HRED,CLR_BLACK),mLGREEN0},;
{If((b:cAlias )->(Deleted()),CLR_HRED,CLR_BLACK),mLGRAY} ) }, ;
oBrw:bClrSelFocus := { || {RGB(187,0,0),aSelGrad2}}, ;
oBrw:bClrRowFocus := { || {CLR_BLACK, aSelGrad1 }} ;
)
RELEASE FONT oFont
return nil
nageswaragunupudi wrote:Gradients:
- Code: Select all Expand view RUN
#include "fivewin.ch"
REQUEST DBFCDX
function Main()
local mlGreen0 := RGB(251,242,225)
local mLGRAY := RGB(233,233,233)
local aSelGrad1 := {{.5,RGB(100,255,100),RGB(237,255,178)},{.5,RGB(218,255,103),RGB(096,255,096)}}
local aSelGrad2 := {{.5,RGB(255,255,251),RGB(255,237,178)},{.5,RGB(255,218,103),RGB(255,233,162)}}
local oFont
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-20
USE CUSTOMER NEW VIA "DBFCDX"
XBROWSER ALIAS() COLUMNS "STATE", "CITY", "ZIP", "AGE" ;
TITLE FWVERSION SHOW RECID ;
SETUP ( ;
oBrw:SetFont( oFont ), ;
oBrw:aCols[ 2 ]:nWidth := 150, ;
oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROWRC, ;
oBrw:bClrStd := {|b|If(b:KeyNo() % 2 == 0, ;
{If((b:cAlias )->(Deleted()),CLR_HRED,CLR_BLACK),mLGREEN0},;
{If((b:cAlias )->(Deleted()),CLR_HRED,CLR_BLACK),mLGRAY} ) }, ;
oBrw:bClrSelFocus := { || {RGB(187,0,0),aSelGrad2}}, ;
oBrw:bClrRowFocus := { || {CLR_BLACK, aSelGrad1 }} ;
)
RELEASE FONT oFont
return nil
Please expain what is wrong with this please.
nageswaragunupudi wrote:Please apply the fix to imgtxtio.prg I suggested in the Spanish post.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 74 guests