#Define CLR_LGRAY RGB( 230, 230, 230 )
#Define CLR_LGREEN RGB( 190, 215, 190 )
oLbx:nClrPane := { || IIF( ( oLbx:cAlias )->( OrdKeyNo() ) %2 == 0, ;
CLR_LGREEN, CLR_LGRAY ) }
oLbx:nClrPane := { || IIF( ( oLbx:cAlias)->( OrdKeyNo()) %2 == 1, ;
{CLR_WHITE, if( fecha> date(), CLR_RED,
RGB(204,255,255))}, {CLR_WHITE, if( fecha> date(), CLR_RED, RGB(127,192,144))} )}
REDEFINE LISTBOX ShowGet VAR ShowLbx FIELDS "","","","","","","","","" ID 101 of ShowDlg HEADERS cSP+;
"Aard (Dbl=basisgeg.)",cSP+"Naam - omschr. - data - nr. (Dbl=doss.geg.)",cSP+"Telefoon",cSP+"G.S.M.",cSP+"Telefax",cSP+;
"Email-adres",cSP+"Adres",cSP+"Land + postnr.",cSP+"Plaats" FONT ShowFont2 ;
ON RIGHT CLICK (IF(ActieTV,(ShowTim:DeActivate(),DsPopUp(nRow,nCol,cCol[1]),DeleteObject(pMenu),MEMORY(-1),SYSREFRESH(),;
IF(!EMPTY(TVactie),(Eval(&(TVactie)),TVactie:="{|| zNul()}"),.T.),ShowTim:Activate()),.T.))
ShowLbx:bLine := {||{ShowArr[ShowLbx:nAt,1],ShowArr[ShowLbx:nAt,2],ShowArr[ShowLbx:nAt,6],ShowArr[ShowLbx:nAt,7],ShowArr[ShowLbx:nAt,8],;
ShowArr[ShowLbx:nAt,9],ShowArr[ShowLbx:nAt,10],ShowArr[ShowLbx:nAt,11],ShowArr[ShowLbx:nAt,12]}}
ShowLbx:aColSizes := cCol
ShowLbx:nAt := 1
ShowLbx:bGotop := {||ShowLbx:nAt:=1}
ShowLbx:bGoBottom := {||ShowLbx:nAt := Eval( ShowLbx:bLogicLen )}
ShowLbx:bSkip := {|nWant,nOld|nOld:=ShowLbx:nAt,ShowLbx:nAt+=nWant,ShowLbx:nAt:=Max(1,Min(ShowLbx:nAt,Eval(ShowLbx:bLogicLen))),ShowLbx:nAt-nOld}
ShowLbx:bLogicLen := {||Len(ShowArr)}
ShowLbx:nLineStyle := US->ULIJN
ShowLbx:nClrText := {|| SelColor(ShowArr[ShowLbx:nAt,3],1,19)}
ShowLbx:nClrForeFocus := {|| SelColor(ShowArr[ShowLbx:nAt,3],2,19)}
ShowLbx:nClrPane := CLR_HGRAY
ShowLbx:bGotFocus := {|| ShowKey_On() }
ShowLbx:bLostFocus := {|| ShowKey_Off()}
ShowLbx:bLDblClick := {|nRow,nCol| EditGeg(nRow,nCol,ShowLbx:nAt,cCol[1],cCol[2])}
ShowLbx:bLine := {||{IF(EMPTY(ShowArr[ShowLbx:nAt,1])," ",ShowArr[ShowLbx:nAt,1]),IF(EMPTY(ShowArr[ShowLbx:nAt,2])," ",ShowArr[ShowLbx:nAt,2]),IF(EMPTY(ShowArr[ShowLbx:nAt,6])," ",ShowArr[ShowLbx:nAt,6]),IF(EMPTY(ShowArr[ShowLbx:nAt,7])," ",ShowArr[ShowLbx:nAt,7]),IF(EMPTY(ShowArr[ShowLbx:nAt,8])," ",ShowArr[ShowLbx:nAt,8]),IF(EMPTY(ShowArr[ShowLbx:nAt,9])," ",ShowArr[ShowLbx:nAt,9]),IF(EMPTY(ShowArr[ShowLbx:nAt,10])," ",ShowArr[ShowLbx:nAt,10]),IF(EMPTY(ShowArr[ShowLbx:nAt,11])," ",ShowArr[ShowLbx:nAt,11]),IF(EMPTY(ShowArr[ShowLbx:nAt,12])," ",ShowArr[ShowLbx:nAt,12])}}
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 56 guests