FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour xBrowse - Color en Columna
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
xBrowse - Color en Columna
Posted: Sat Jan 17, 2015 04:18 PM
Hola Gente
Deseo pintar una columna de un color distinto a la del resto. De hecho as铆 lo tengo en otros xBrowses.
Aunque en el caso del que pinto con el efecto "pijama", no me toma la que pretendo diferenciar.
Este es mas o menos el c贸digo
Code (fw): Select all Collapse
 聽 WITH OBJECT soBrwC
聽 聽 聽 :nStretchCol 聽 聽 := STRETCHCOL_LAST
聽 聽 聽 :nColDividerStyle:= LINESTYLE_DARKGRAY
聽 聽 聽 ...
聽 聽 聽 :bClrStd 聽 聽 := {|| 聽{CLR_BLACK, if( (h0["Clientes"]:nArea)->( AdsKeyNo(,,ADS_IGNOREFILTERS ) )%2==0, CLR_BACKBLUE1, CLR_BACKBLUE2 ) } }
聽 聽END
聽 聽WITH OBJECT soBrwC:SaldoAct
聽 聽 聽 聽 聽:nWidth 聽 聽:= 85
聽 聽 聽 聽 聽:bClrEdit 聽:= {|| { CLR_BLACK,CLR_BACKTIZA } } 聽 聽 聽 聽 // NO LO TOMA

聽 聽 聽 聽 聽:bStrData:= {|| Trans( (h0["Clientes"]:nArea)->FCLI20, PIC_DIEZCIF3 ) }
聽 聽END

No lo toma por el efecto "pijama"?
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: xBrowse - Color en Columna
Posted: Sat Jan 17, 2015 05:09 PM
Hola Mario.
Ya probaste con:
Code (fw): Select all Collapse
 oBrw:aCols[1]:bClrStd := {|| { CLR_BLACK, RGB(166,166,255) }}
Francisco J. Alegr铆a P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: xBrowse - Color en Columna
Posted: Sat Jan 17, 2015 05:53 PM

Francisco, gracias por responder

Mi define es (son):

define CLR_BACKTIZA nRGB( 230, 230, 230 )

Aunque prob茅 como me indicas, la columna "no se quiere sacar el pijama" :)

Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: xBrowse - Color en Columna
Posted: Sat Jan 17, 2015 06:01 PM
Puede tener algo que ver lo que tengas definido en el:

Code (fw): Select all Collapse
:nMarqueeStyle    := .....      //Por ejemplo: MARQSTYLE_HIGHLROW


o si no lo tienes definido, el que tome por defecto
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: xBrowse - Color en Columna
Posted: Sat Jan 17, 2015 06:14 PM

Cristobal, gracias por tu interes

Deshabilite esa llinea y tampoco pasa por ah铆.
Voy a mirar bien el c贸dig贸 en el browse que si me muestra columnas colorizadas

Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: xBrowse - Color en Columna
Posted: Sat Jan 17, 2015 06:35 PM
Intentalo poniendo oBrw:aCols[1]:bClrStd := {|| { CLR_BLACK, RGB(166,166,255) }} despues del oBrw:CreateFrom...()

Asi me funciona:
Code (fw): Select all Collapse
@3,1 XBROWSE oBrw OF oDlg ; 
     ARRAY {} CELL LINES FOOTERS AUTOSORT

     FapBrwSetup(oBrw)

     oBrw:CreateFromCode()

     oBrw:aCols[1]:bClrStd := {|| { CLR_BLACK, RGB(166,166,255) }}
Francisco J. Alegr铆a P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: xBrowse - Color en Columna
Posted: Sat Jan 17, 2015 07:35 PM
Amigos;
es s谩bado y parece que la "mente" me esta diciendo basta!.... jejeje
mi error es este: (copiar y pegar no siempre es la soluci贸n!)
:bClrEdit := {|| { CLR_BLACK,CLR_BACKTIZA } }
en lugar de
:bClrStd := {|| { CLR_BLACK,CLR_BACKTIZA } }
que obviamente si funciona... que papel贸n! :-)

No obstante ya que estan en ritmo pregunto:
Para cambiar el font de la barra de se帽aladora uso
Code (fw): Select all Collapse
 聽 聽WITH OBJECT oBrw
聽 聽 聽 :oDataFonts 聽:= {|| if( oLstChq:BookMark == nPosActual, ::hFont["Calibri16B"], ::hFont["Calibri16"] ) }
聽 聽 聽 :bChange 聽 聽 := {|| nPosActual := oLstChq:BookMark, oLstChq:Refresh() }
聽 聽END
聽 聽// En la columna como?
聽聽 WITH OBJECT soBrwC:SaldoAct
聽 聽 聽 聽 聽:nWidth 聽 := 85
聽 聽 聽 聽 聽:bClrStd 聽:= {|| { CLR_BLACK,CLR_BACKTIZA } } 聽 聽 // NO FUNCA
聽 聽 聽 聽 聽:b?????? 聽:= 聽{|| ::hFont["Calibri16B"] }
聽 聽 聽 聽 聽:bStrData:= {|| Trans( (h0["Clientes"]:nArea)->FCLI20, PIC_DIEZCIF3 ) }
聽 聽 聽 END
Y lo que que pretendo es que lo que muestro en la columna colorizada , adem谩s, me salga con un font de tipo negrita.
Esa DATA existe?
Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: xBrowse - Color en Columna
Posted: Sun Jan 18, 2015 12:26 AM
Prueba con:
Code (fw): Select all Collapse
     oBrw:aCols[1]:oDataFont := oFont
Francisco J. Alegr铆a P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 1380
Joined: Fri Oct 14, 2005 01:28 PM
Re: xBrowse - Color en Columna
Posted: Sun Jan 18, 2015 03:41 PM

graciassss!!!

Resistencia - "Ciudad de las Esculturas"

Chaco - Argentina

Continue the discussion