REQUEST OrdKeyNo, OrdKeyCount, OrdCreate, OrdKeyGoto
FUNCTION...
REDEFINE LISTBOX oLbx FIELDS ;
(DbClientes:cAlias)->RAZ_MATRIC , ;
(DbClientes:cAlias)->DEST_NOME , ;
(DbClientes:cAlias)->END , ;
(DbClientes:cAlias)->BAI , ;
(DbClientes:cAlias)->CID , ;
(DbClientes:cAlias)->CEP , ;
(DbClientes:cAlias)->TEL , ;
(DbClientes:cAlias)->TEL2 , ;
(DbClientes:cAlias)->TEL3 ;
HEADERS ( OemToAnsi( "C¢digo/Cnpj/Cpf" ) ) , ;
( OemToAnsi( "Nome/RazÆo Social=> " + ;
"<Click> Mouse Direito<Menu>" ) ) , ;
( OemToAnsi( "Endere‡o" ) ) , ;
( OemToAnsi( "Bairro" ) ) , ;
( OemToAnsi( "Cidade" ) ) , ;
( OemToAnsi( "Cep" ) ) , ;
( OemToAnsi( "Telefone" ) ) , ;
( OemToAnsi( "Telefone" ) ) , ;
( OemToAnsi( "Telefone" ) ) ;
FIELDSIZES 130, 480, 480, 200, 200, 100, 150, 150, 150 ;
COLOR CLR_BROWN, CLR_LGREEN ;
FONT oFont ;
CURSOR oHand ;
UPDATE ;
ID 101 ;
OF oDlg ;
ON DBLCLICK( GETCLIENTES( .F., DbClientes, DbCabec, ;
DbPaieMae, DeOndeVem ), ;
oLbx:SetFocus(), oLbx:Refresh(), oLbx:DrawSelect() )
oLbx:nClrBackHead := CLR_LGREEN
oLbx:nClrText := {|| nRGB( 165, 42, 42 ) }
oLbx:nClrBackFocus := CLR_HRED
oLbx:nClrForeFocus := CLR_YELLOW
oLbx:nClrForeHead := CLR_HRED
oLbx:nClrPane := { || IIF( ( oLbx:cAlias )->( OrdKeyNo() ) %2 == 0, ;
CLR_LGREEN, CLR_LGRAY ) }
oLbx:nColAct := 2
oLbx:nLineStyle := 3
oLbx:lCellStyle := .T.
oLbx:aJustify := { .T., .F., .F., .F., .F., .F., .F., .F., .F., .F., .F., .F., .F., .F., .F., .F., .F. }
oLbx:lMChange := .F.
oLbx:SetFocus()
oLbx:Refresh()