Hola a todos
En el caso de ser posible, alguno de uds tendra un pequeño ejemplo para incrustar ya sea un checkbox o un bitmap en un browse ( de Hernan ) ?
Agradeceria mucho cualquier apoyo.
Saludos
* cargas los bitmaps de los check */
hCheck := LoadBitmap(GetResources(),"check")
hunCheck := LoadBitmap(GetResources(),"uncheck")
DEFINE DIALOG oDlg.....
....
....
REDEFINE LISTBOX oBrw FIELDS
IIF(alias->campo ==.T.,hCheck,hUnCheck),;
alias-> otro camo;
HEADERS "","Name:" ID 103 OF oDlg UPDATE
...
.....
WITH OBJECT ( oBrw := TXBrowse():new( oDlg ) )
:CreateFromResource( 101 )
:cAlias := "clie"
:nColDividerStyle := LINESTYLE_DARKGRAY
:nRowDividerStyle := LINESTYLE_DARKGRAY
:nMarqueeStyle := MARQSTYLE_HIGHLROW
:lAllowRowSizing := FALSE
:lRecordSelector := TRUE
:bClrHeader := { || { CLR_BLUE, GetSysColor( COLOR_BTNFACE ) } }
:bLDblClick := { || CClienteEditar( .F. ) }
:nFreeze := 5
/*redefine columnas del browse*/
WITH OBJECT ( oCol := :AddCol() )
:cHeader := "Codigo"
:bStrData := { || clie->codigo }
:bClrStd := { || { CLR_BLUE, CLR_HGRAY } }
:nWidth := 80
END
WITH OBJECT ( oCol := :AddCol() )
:cHeader := "Nombre"
:bStrData := { || clie->nombre }
:nWidth := 240
END
WITH OBJECT ( oCol := :AddCol() )
:cHeader := "Telefono"
:bStrData := { || clie->telefono }
:nWidth := 080
END
WITH OBJECT ( oCol := :AddCol() )
:cHeader := "Saldo C$"
:bStrData := { || Transform( clie->saldo, "999,999.99" ) }
:bClrStd := { || { CLR_RED, RGB(255,255,230) } }
:nWidth := 070
:nHeadStrAlign := AL_RIGHT
:nDataStrAlign := AL_RIGHT
END
//aca el bitmap
WITH OBJECT ( oCol := :AddCol() )
:AddResource("B_CHKON")
:AddResource("B_CHKOFF")
:cHeader := "Activo"
:bBmpData := { || iif( clie->activo, 1, 2 ) }
:nWidth := 060
:nHeadStrAlign := AL_CENTER
:nDataBmpAlign := AL_CENTER
END
END
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: Google [Bot] and 59 guests