In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Negrita algunos registros en un browse FORO PRO

Foro público de Xailer en español
Responder
Avatar de Usuario
gabo1
Mensajes: 131
Registrado: Lun Oct 13, 2014 9:42 am

Negrita algunos registros en un browse FORO PRO

Mensaje por gabo1 »

Carlos Ortiz, Aqui tienes un ejemplo

Código: Seleccionar todo


//------------------------------------------------------------------------------
METHOD FormInitialize( oSender ) CLASS TFormExistencias
  ::oFontNegrita:= TFont():Create( "Droid Sans", 10, 0, 700 )
  RETURN Nil

//------------------------------------------------------------------------------
METHOD DetalleSucursales() CLASS TFormExistencias

     ::oMemDSItems:GoTop()
     WITH OBJECT ::oBrwExistencias
          :nMarqueeStyle   := bmHIGHLCELL
          :nColDividerStyle:= blLIGHTGRAY
          nLenTalla:= Len( :aCols )
          FOR nItem:= 1 TO nLenTalla
              IF nItem > 2
                 :aCols[nItem]:cPicture:= "@Z 99,999,999"
                 :aCols[nItem]:nWidth  := 55
                 :aCols[nItem]:nAlignment:= taRIGHTHEADERCENTER
                 :aCols[nItem]:OnDrawCell:= "PintaCelda"
              ENDIF
          NEXT
     END WITH

 RETURN NIL

//------------------------------------------------------------------------------
METHOD PintaCelda( oSender, cText, nClrText, nClrPane, lHighLite, hDC, aRect ) CLASS TFormExistencias

  IF ::oMemDSItems:EMPRESA == " T O T A L"
     SelectObject( hDC, ::oFontNegrita:Handle )
     IF !lHighLite
        nClrPane := clYellow
     ENDIF
  ENDIF

  RETURN NIL

Saludos!
Avatar de Usuario
Carlos Ortiz
Mensajes: 873
Registrado: Mié Jul 01, 2009 5:44 pm
Ubicación: Argentina - Córdoba
Contactar:

Re: Negrita algunos registros en un browse FORO PRO

Mensaje por Carlos Ortiz »

Estimado, muchas gracias!!! ;)
Responder