topic
stringlengths
1
63
text
stringlengths
1
577k
color de Folder
David, Con los folders estandard de Windows no se puede <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> Lo que puedes hacer es usar un bitmap para cada solapa, que de una idea de si está activo, lo que hace, etc.
color de celda al inicio de un browse
Como puedo deshabilitar el color de foco por defecto para que cuando llamo a un browse. Lo que quiero es que sólo pinte las que le indico. El uso es que en un browse que uso checkbox, cuando marco un item en otro browse me cambia el color de la celdas. En el primer browse de check no quiero que aparezca y en el segundo que sólo sea las que pinto segundo browse: oBrw3:nClrPane := { || IIF(aBrw3[nAr,9] ,rgb(156,206,132),rgb(255,255,255)) } oBrw3:nClrBackFocus := { || IIF(aBrw3[nAr,9],CLR_CYAN,CLR_HGRAY )} oBrw3:nClrForeFocus := CLR_WHITE En el segundo si es la última fila me deja el color por defecto de windows. Gracias Luis
color de celda al inicio de un browse
no entendi muy bien, puedes publicar las imagenes de los browse para darme una idea salu2 paco
color de celda al inicio de un browse
Francisco lo que quiero es que cuando inicio el diálogo no me aparezca la línea coloreada por defecto del browse, es decir que me luzcan como el resto del browse. Son dos en el cual el primero, uso los checkbox (para los remitos), y en el otro los items que voy a facturar, cuando marco en el otro se me pintan las filas que corresponden a ese remito, eso lo puedo hacer pero siempre me mantiene la última línea de los browse pintadas con el color original que carga por defecto, esa es la que quiero eliminar. No sé como cargar las imágenes Gracias [/img]
color de celda al inicio de un browse
[/img]http://img237.imageshack.us/img237/7205/lib1bm3.jpg
color de celda al inicio de un browse
Esas líneas son las que quiero que no aparezcan cuando abro el diálogo [url][url=http://img340.imageshack.us/my.php?image=lib2am4.jpg][img=http://img340.imageshack.us/img340/7026/lib2am4.th.jpg][/url] Así se ve cuando selecciono uno[/url]
color de celda al inicio de un browse
Con esto controlas los colores del Browse, Asi lo hago yo cuando trabajo con mas de 1 browse. oBrw:nClrText:={|| Rgb(255,255,255)} oBrw:nClrForeFocus:={|| Rgb(65,105,255) } oBrw:nClrBackFocus:={|| Rgb(65,105,225) } Jaime
color de fondo...
Hola a todos, he leido que la función setbkcolor() genera el color de fondo, alguien puede decirme como la uso? Gracias y saludos. Elías Torres.
color de fondo...
Elías, SetBkMode() se usa para el color de fondo al utilizar algunas funciones de pintado del GDI de Windows. A que le quieres cambiar el color de fondo ? Para una ventana, diálogo y algunos controles, puedes usar oWnd:SetColor( nClrFore, nClrBack )
color del #define
Antonio, perdon podrias cambiar el color del #define ya que sale en un color tan fuerte que funde la retina gracias Wilson
color del header de un browse en lInvert
Estoy intentando cambiar el color del texto del header de un browse al estar clickado . Se puede asignar cambiando el metodo PaintHeader de las columnas pero lo deseable seria que la data ::bClrHeader pudiera admitir un parametro linvert como se hace con ::bClrGrad . saludos.
color del header de un browse en lInvert
He realizado los cambios oportunos en xbrowse . Por si a alguien le valen los pongo aqui : [code=fw:3o9hm49m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// --------------- en new() de txbrowse</span><br /><br />&nbsp;::<span style="color: #000000;">bClrHeader</span> &nbsp; := &nbsp;<span style="color: #000000;">&#123;</span>|linvert| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> linvert,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">l2007</span>, CLR_BLACK, CLR_WHITE <span style="color: #000000;">&#41;</span>, CLR_BLUE <span style="color: #000000;">&#125;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNTEXT <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">l2007</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNFACE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">125</span>, <span style="color: #000000;">165</span>, <span style="color: #000000;">224</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">203</span>, <span style="color: #000000;">225</span>, <span style="color: #000000;">252</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> &nbsp; <span style="color: #B900B9;">// inicializado con los mismos valores anteriores </span><br /><br /><span style="color: #B900B9;">//------------ en adjust() de txbrowse</span><br /><br />&nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">nRecSelColor</span> == <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nRecSelColor</span> := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">l2007</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">231</span>, <span style="color: #000000;">242</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClrHeader</span>,.f. <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//añadido .f. </span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #B900B9;">//-------------- en paintHeader de txbrowse </span><br /><br />&nbsp; nBrwWidth &nbsp; := ::<span style="color: #000000;">BrwWidth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aColors &nbsp; &nbsp; := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClrHeader</span>, .f. <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// añadido &nbsp;.f.</span><br /><br /><span style="color: #B900B9;">// ----------- en paintheader de xbrwcolumn </span><br /><br />&nbsp;aColors := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClrHeader</span> , lInvert <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// añadido</span><br />&nbsp; <span style="color: #B900B9;">/* &nbsp; &nbsp; ------------------ sustituido <br />&nbsp; &nbsp;if ! lInvert<br />&nbsp; &nbsp; &nbsp; aColors := Eval( ::bClrHeader )<br />&nbsp; &nbsp;else<br />&nbsp; &nbsp; &nbsp;aColors := { If( ::oBrw:l2007, CLR_BLACK, CLR_WHITE ), CLR_BLUE }<br />&nbsp; &nbsp;endif<br />&nbsp; &nbsp;*/</span><br /><br /><span style="color: #B900B9;">//----------- en Createbuttons de xbrwcolumn</span><br />&nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lCreated</span><br />&nbsp; &nbsp; &nbsp; aColors := Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bClrHeader</span> ,.f. <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// añadido &nbsp;.f.</span><br /><br /><br />&nbsp;</div>[/code:3o9hm49m] Saludos a todos.
color del header de un browse en lInvert
He añadido tambien la DATA l2010 para hacer que el menu que se despliega al pulsar el boton derecho pueda mostrarse con estilo omenu:l2010 [code=fw:1tv8vwar]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">DATA</span> l2010 &nbsp; <span style="color: #B900B9;">// añadida </span><br /><span style="color: #B900B9;">//-------------en NEW</span><br /><br />::<span style="color: #000000;">l2010</span>:= .f.<br /><br /><span style="color: #B900B9;">//---------- &nbsp;en SetColumns() </span><br /><br />&nbsp;<span style="color: #0000ff;">MENU</span> oMenu <span style="color: #0000ff;">POPUP</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">l2010</span><br />&nbsp; &nbsp; &nbsp; oMenu:<span style="color: #000000;">l2010</span> &nbsp; &nbsp;:= ::<span style="color: #000000;">l2010</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; oMenu:<span style="color: #000000;">l2007</span> &nbsp; &nbsp;:= ::<span style="color: #000000;">l2007</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp;</div>[/code:1tv8vwar] Saludos.
color en fuentes de haruPDF (SOLUCIONADO)
Perdón por la ignorancia ¿Existe alguna forma de poner una imagen en un mensaje sin necesidad de subirla a algún servidor externo? Si solo se puede a través de un servidor. ¿Que servidores me recomendáis? Un saludo
color en fuentes de haruPDF (SOLUCIONADO)
Yo uso [url:3he5c3hi]https&#58;//postimages&#46;org/[/url:3he5c3hi]
color en fuentes de haruPDF (SOLUCIONADO)
Es raro, a mi me funciona bien, y en tu código no veo nada que indique que lo estés haciendo mal Puedes poner una imagen? [img:23e69tvv]https&#58;//i&#46;postimg&#46;cc/vBn4nFRc/HaruFE&#46;png[/img:23e69tvv]
color en fuentes de haruPDF (SOLUCIONADO)
Alguien usa HARUPdf Estoy intentando utilizar esta clase pero al indicar una fuente de un color determinado con algunos colores me los cambia. Pongo un ejemplo [code=fw:3e54rru3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> HPDF_COMP_ALL                       0x0F<br /><span style="color: #B900B9;">// HPDF_TextAlignment</span><br /><span style="color: #00D7D7;">#define</span> HPDF_TALIGN_LEFT                    <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HPDF_TALIGN_RIGHT                   <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HPDF_TALIGN_CENTER                  <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> HPDF_TALIGN_JUSTIFY                 <span style="color: #000000;">3</span><br /><br /><span style="color: #00D7D7;">#DEFINE</span> AZUL    CLR_BLUE    <span style="color: #B900B9;">//16711680</span><br /><span style="color: #00D7D7;">#DEFINE</span> ROJO    CLR_RED     <span style="color: #B900B9;">//255</span><br /><span style="color: #00D7D7;">#DEFINE</span> VERDE   CLR_GREEN   <span style="color: #B900B9;">//65280</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> TestHaru<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> oPrint, oFont<br />oPrint := THaruPdf<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">".<span style="color: #000000;">\p</span>df<span style="color: #000000;">\t</span>estharu.pdf"</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span>, .T., <span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br />oPrint:<span style="color: #000000;">SetCompression</span><span style="color: #000000;">&#40;</span> HPDF_COMP_ALL <span style="color: #000000;">&#41;</span><br />oFont := oPrint:<span style="color: #000000;">DefineFont</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">'Arial'</span>, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><br />oPrint:<span style="color: #000000;">StartPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />WITH OBJECT oPrint<br />    <span style="color: #B900B9;">//METHOD CmRect( nTop, nLeft, nBottom, nRight, oPen, nColor )</span><br />    :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">04.02</span>, <span style="color: #000000;">10.2</span>, <span style="color: #ff0000;">"AZUL"</span>,  oFont, <span style="color: #000000;">5.0</span>,AZUL     ,, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br />    :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">04.02</span>, <span style="color: #000000;">12.2</span>, <span style="color: #ff0000;">"HBLUE"</span>, oFont, <span style="color: #000000;">5.0</span>,CLR_HBLUE,, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br /><br />    :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">04.52</span>, <span style="color: #000000;">10.2</span>, <span style="color: #ff0000;">"VERDE"</span>,  oFont, <span style="color: #000000;">5.0</span>,VERDE   ,, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br />    :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">05.02</span>, <span style="color: #000000;">10.2</span>, <span style="color: #ff0000;">"ROJO"</span>,   oFont, <span style="color: #000000;">5.0</span>,ROJO    ,, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br />    :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">05.52</span>, <span style="color: #000000;">10.2</span>, <span style="color: #ff0000;">"GRAY"</span>,   oFont, <span style="color: #000000;">5.0</span>,CLR_GRAY,, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br />    :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">05.52</span>, <span style="color: #000000;">10.2</span>, <span style="color: #ff0000;">"GRAY"</span>,   oFont, <span style="color: #000000;">5.0</span>,CLR_GRAY,, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br />    :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">06.02</span>, <span style="color: #000000;">10.2</span>, <span style="color: #ff0000;">"YELLOW"</span>, oFont, <span style="color: #000000;">5.0</span>,CLR_YELLOW,, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br /><br /><br />    :<span style="color: #000000;">CmRect</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">08.0</span>, <span style="color: #000000;">10.0</span>, <span style="color: #000000;">09</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">1</span>, CLR_HBLUE<span style="color: #000000;">&#41;</span><br />     :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">08.2</span>, <span style="color: #000000;">10.2</span>, <span style="color: #ff0000;">"HBLUE 8,10, 09,16"</span>, oFont, <span style="color: #000000;">5.0</span>,CLR_HBLUE,, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br /><br />    :<span style="color: #000000;">CmRect</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">10.0</span>, <span style="color: #000000;">10.0</span>, <span style="color: #000000;">11</span>, <span style="color: #000000;">16</span>, <span style="color: #000000;">2</span>, CLR_HRED<span style="color: #000000;">&#41;</span><br />     :<span style="color: #000000;">CmSay</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">10.2</span>, <span style="color: #000000;">10.2</span>, <span style="color: #ff0000;">"HRED 10,10, 11,16"</span>, oFont, <span style="color: #000000;">5.0</span>,CLR_RED, HPDF_TALIGN_LEFT <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #B900B9;">//RoundBox( nTop, nLeft, nBottom, nRight, nWidth, nHeight, oPen, nColor, nBackColor )</span><br />     :<span style="color: #000000;">CMRoundBox</span><span style="color: #000000;">&#40;</span>   <span style="color: #000000;">14</span>,    <span style="color: #000000;">10</span>,      <span style="color: #000000;">15</span>,     <span style="color: #000000;">12</span>,     <span style="color: #000000;">0.1</span>,     <span style="color: #000000;">0.1</span>,    <span style="color: #000000;">3</span>,  CLR_HGREEN,        CLR_YELLOW<span style="color: #000000;">&#41;</span><br />END<br /><br />oPrint:<span style="color: #0000ff;">EndPage</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oprint:<span style="color: #000000;">eND</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:3e54rru3] Alguna pista Gracias
color en fuentes de haruPDF (SOLUCIONADO)
Gracias, voy a probar a realizar un ejemplo aislado del programa en el que estoy trabajando.
color en fuentes de haruPDF (SOLUCIONADO)
Pues no entiendo el motivo, tu ejemplo parece funcionar correctamente [img:12s62y6f]https&#58;//i&#46;postimg&#46;cc/Bn0FZP7z/miarcod&#46;png[/img:12s62y6f]
color en fuentes de haruPDF (SOLUCIONADO)
gracias La imagen del pdf que se genera es esta [url=https&#58;//postimg&#46;cc/236pj4pd:avoj6zds][img:avoj6zds]https&#58;//i&#46;postimg&#46;cc/236pj4pd/error&#46;png[/img:avoj6zds][/url:avoj6zds]
color en fuentes de haruPDF (SOLUCIONADO)
Hola de nuevo He probado a descargar de nuevo la libreria y a montar otro ejemplo pero los colores siguen saliendo cambiados La libreria la descargo desde [url:2o9ygh82]https&#58;//bitbucket&#46;org/carlos_mora/pdfprinter[/url:2o9ygh82] ¿será esta la correcta? Si utilizo los metodos cmSAyBitmap() o cmRect() no obtengo ninguna salida pero Si enlazo en lugar de usar png.lib de la librería uso png.lib de harbour si funciona el metodo cmsaybitmap() el método cmRect lo tenía reprogramado creando cuatro lineas... Estaré mezclando librrerías incompatibles Esta es la salida que obtengo con el ejemplo que tiene la libreria Gracias [img:2o9ygh82]https&#58;//i&#46;postimg&#46;cc/xdK74xtx/nueva-imagen&#46;png[/img:2o9ygh82]
color en fuentes de haruPDF (SOLUCIONADO)
Al final lo he solucionado con un parche aunque no me gusta He modificado los métodos de la clase y en la selección del color hago la llamada a una función que ajusta los colores a lo que me sale impreso [code=fw:3fkv55jx]<div class="fw" id="{CB}" style="font-family: monospace;">...<br />      nClrText := Ajustacolor<span style="color: #000000;">&#40;</span>nClrText<span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// Ajuste colores MAF</span><br />      c := HPDF_Page_GetRGBFill<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hPage</span> <span style="color: #000000;">&#41;</span><br />      HPDF_Page_SetRGBFill<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hPage</span>, <span style="color: #000000;">&#40;</span> Int<span style="color: #000000;">&#40;</span> nClrText / 0x10000 <span style="color: #000000;">&#41;</span> % <span style="color: #000000;">256</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">256.00</span>, <span style="color: #000000;">&#40;</span> Int<span style="color: #000000;">&#40;</span> nClrText / 0x100 <span style="color: #000000;">&#41;</span>  % <span style="color: #000000;">256</span> <span style="color: #000000;">&#41;</span>  / <span style="color: #000000;">256.00</span>, <span style="color: #000000;">&#40;</span> nClrText  % <span style="color: #000000;">256</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">256.00</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:3fkv55jx] y estos son los ajustes [code=fw:3fkv55jx]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> AjustaColor<span style="color: #000000;">&#40;</span>nColor<span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//RETURN nColor</span><br /><span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />   <span style="color: #00C800;">CASE</span> nColor == CLR_RED    ; <span style="color: #00C800;">RETURN</span> CLR_BLUE<br />   <span style="color: #00C800;">CASE</span> nColor == CLR_HRED   ; <span style="color: #00C800;">RETURN</span> CLR_HBLUE<br />   <span style="color: #00C800;">CASE</span> nColor == CLR_BLUE   ; <span style="color: #00C800;">RETURN</span> CLR_RED<br />   <span style="color: #00C800;">CASE</span> nColor == CLR_HBLUE  ; <span style="color: #00C800;">RETURN</span> CLR_HRED<br />   <span style="color: #00C800;">CASE</span> nColor == CLR_CYAN   ; <span style="color: #00C800;">RETURN</span> CLR_YELLOW<br />   <span style="color: #00C800;">CASE</span> nColor == CLR_YELLOW ; <span style="color: #00C800;">RETURN</span> CLR_HCYAN<br />   <span style="color: #00C800;">CASE</span> nColor == CLR_HCYAN  ; <span style="color: #00C800;">RETURN</span> CLR_YELLOW<br />   <span style="color: #00C800;">CASE</span> nColor == CLR_BROWN  ; <span style="color: #00C800;">RETURN</span> CLR_CYAN<br /><br /><br /><br /><span style="color: #00C800;">ENDCASE</span><br /><span style="color: #00C800;">RETURN</span> nColor<br /> </div>[/code:3fkv55jx] Un saludo y gracias a todos
color en fuentes de haruPDF (SOLUCIONADO)
Prueba con esto ( quitando tu function, claro ) [code=fw:35555i3e]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; HPDF_Page_SetRGBFill<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hPage</span>, <span style="color: #000000;">&#40;</span> nClrText % <span style="color: #000000;">256</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">256.00</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> Int<span style="color: #000000;">&#40;</span> nClrText / 0x100 <span style="color: #000000;">&#41;</span> &nbsp;% <span style="color: #000000;">256</span> <span style="color: #000000;">&#41;</span> &nbsp;/ <span style="color: #000000;">256.00</span> , <span style="color: #000000;">&#40;</span> &nbsp;Int<span style="color: #000000;">&#40;</span>nClrText / 0x10000 <span style="color: #000000;">&#41;</span> % <span style="color: #000000;">256</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">256.00</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:35555i3e]
color en fuentes de haruPDF (SOLUCIONADO)
Con esta modificacion funciona correctamente Un millon de gracias Entiendo que en el código que descargué la selección del color se pasa de forma incorrecta Un saludo
color en fuentes de haruPDF (SOLUCIONADO)
Modifica y añade al titulo del primer post del hilo [b:1xo24eo9]( Solucionado )[/b:1xo24eo9] Saludos
color en fuentes de haruPDF (SOLUCIONADO)
Epa! Parece que se me coló un error. Suerte que está Cristobal atento. Voy a corregir la línea en la librería, es un error evidente. Parece que ninguno hasta ahora habíamos impreso texto en colores! Como es código abierto, la mejor manera es que la corrección se comparta, por lo que os animo a hacer la corrección en una copia vuestra y hacer un "pull request" con los cambios. ¡Ganamos todos! Un saludo
color en fuentes de haruPDF (SOLUCIONADO)
Ya está subida la corrección al repositorio, asi es que ya se puede actualizar. Solo se cambió esa línea en el prg correspondiente. Gracias a miarcod por reportar el error y al master Cristobal por solucionarlo
color fill xbrowse
Is the a way to fill an xbrowse record with color as can be done in an excel spreadsheet?
color fill xbrowse
1) If we want to color the entire browse area, oBrw:bClrStd := { || { <nForeClr>, <nBackClr > } } 2) If we want to conditionally color one or some rows, oBrw:bClrStd := { || If( <lCondition>, { <nForeClr_1>, <nBackClr_1 }, { <nForeClr_2>, <nBackClr_2 } ) } 3) To color one entire column, use the above code for oCol:bClrStd := ...
color fill xbrowse
Thanks for the quick response. How can the user set the color in a cell on the fly?
color in Windows and Dialogs
Hi Dear, Currently I m using resource wokshop to design my dialog forms and also using MDI Window, but now I want to change my main MDI window including menu and toolbar and currently I am using command as follows: DEFINE WINDOW oMainWnd ; TITLE M_Name ; MDI ; COLOR RGB(224,224,128),RGB(64,32,0) ; MENU BuildMenu() ; ICON oIco but using this command, I am able the change the background color of MDi Window, So, can anyone guide me that how can I do it. Best Regards, SMA
color in Windows and Dialogs
Sma, There is no way to change the menu color yet. How are you building the tooldbar ? Please post the PRG code, thanks
color in Windows and Dialogs
Hello Dear, Please find PRF code for toolbar section DEFINE BUTTONBAR oBar 3D SIZE 40,40 OF oMainWnd DEFINE BUTTON RESNAME "T_EXIT" OF oBar NOBORDER ; TOOLTIP "Exit" ACTION (iRtrn:=Exit(.T.)) DEFINE BUTTON aBRts_Obj[++n] RESNAME "T_CHART" OF oBar GROUP NOBORDER ; TOOLTIP "Chart Of Accounts..." ACTION (WP6_11(C_Name1,FromDate)) DEFINE BUTTON aBRts_Obj[++n] RESNAME "T_TRAN" OF oBar NOBORDER ; TOOLTIP "Voucher Transaction..." ACTION WP6_21 Best Regards, SMA
color in Windows and Dialogs
Please review this thread: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=12039&start=0&hilit=bClrGrad">viewtopic.php?f=3&t=12039&start=0&hilit=bClrGrad</a><!-- l -->
color in gets
how may I change color in gets get in which there is cursor is yellow othets gets white
color in gets
kajot, Do you want white all of them ? Or yellow the focused one ?
color in gets
yellow the focused one
color in gets
In any of the GETs that you use do this @ ..., ... GET oGet VAR ... oGet:SetColorFocus( nRGB( 140, 140, 140 ) ) It will modify ALL the GETs of your application
color in gets
Antonio, [quote="Antonio Linares":12qk54ns]It will modify ALL the GETs of your application[/quote:12qk54ns] It would be nice if this will also work with COMBOBOX. Thanks.
color of disable object
hi, I'd like to change color (font and background) of GET disabled: [url][img:1etgpyjv]https&#58;//i&#46;imgur&#46;com/SJareIq&#46;png[/img:1etgpyjv][/url] how can I do it? thank you
color of disable object
[quote:5j7o1ya4]desde la version 8.12 ahora permite usar colores distintos cuando un get esta DISABLE con las datas nClrTextDis, nClrPaneDis para poder darle los colores que tu quieras a un get deshabilitado, para usar esas 2 datas necesitas tener lDisColors := .F. [/quote:5j7o1ya4] <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=14666#p75858">viewtopic.php?f=6&t=14666#p75858</a><!-- l -->
color of folder dialogs
Hi All, i would like to change the background color of a folder's subdialogs. The default color is not suitable for the color of my TsButtons. Here a picture to see that the button color doesn't harmonize with the background. [img:2otb3knu]http&#58;//www&#46;d-hoefner&#46;de/files/fw_pic1&#46;gif[/img:2otb3knu] I tried with [code:2otb3knu]ACTIVATE DIALOG oDlg; ON INIT aEval&#40; oFold&#58;aDialogs, &#123; | oD | oD&#58;SetColor&#40; GetSysColor&#40; COLOR_BTNTEXT &#41;, GetSysColor&#40; COLOR_BTNFACE &#41; &#41; &#125; &#41;[/code:2otb3knu]But no success. The use of WindowsXP.Manifest seems to be the cause of not changing colors. But without this theme all other buttons look very 'vintage' <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> . Is there a way to get other background colors? Thanks for every idea in advance. Detlef
color of folder dialogs
Detlef, Changing the dialog color to gray will also look vintage and it won't change the fact that the current buttons and icons look vintage. I would suggest changing to standard text only buttons. These will inherit the theme and look much better. James
color of folder dialogs
James, i'll think about your suggest. Do yo know a way to add a menu to a button like in my picture? This was very easy with TsButton. Regards, Detlef
color of folder dialogs
Detlef, >Do yo know a way to add a menu to a button like in my picture? >This was very easy with TsButton. Hmm. You can do it with a buttonbar button, but I have not tried it with a regular button. I do use TSButton myself--it is a nice class. How many menu items do you have? If not too many, perhaps you could use a separate button for each instead. Note that buttons calling menus are not common except on toolbars so maybe it is better to avoid it if you can. Another option would be a group box containing a combobox and a Print button. James
color of folder dialogs
Detlef, If you are using themes in your dialogboxes, then you could use FWH TButtonBmp buttons that use themes and show bitmaps too. If you want to keep using those buttons, and change the dialogs colors, then you need to change this: oFolder:aDialogs[ n ]:bEraseBkGnd = nil or create a function DrawPBack() in your main PRG that fills the dialog the way you want. Please note how it is used from Class TFolder: oDlg:bEraseBkGnd = { | hDC | DrawPBack( oDlg:hWnd, hDC ), 1 }
color of folder dialogs
Antonio, your solution works fine. Thanks a lot, Detlef
color of folder dialogs
James, as usual you are right concerning the design rules of developing Window applications. But ( as usual too ) my boss wants the screens as they were before under 16bit FW except all other themed controls. If i had time i would follow your direction and Antonio's advices about TButtonBmp to create a proper ui design. Thanks and regards, Detlef
color of folder dialogs
Detlef, Those pesky bosses... James
color of folder dialogs
James, [quote="James Bott":3guj51n8]Detlef, Those pesky bosses... James[/quote:3guj51n8] yeah, i would like them to read some of your guides <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> ... Detlef
color of the checkbox / radiobox
Hi, Is it possible to change the color of the checkbox / radiobox elements (not the text, but the icon itself) ?
color of the checkbox / radiobox
Prueba con [code=fw:3vozhez2]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRad:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrText, nClrPane <span style="color: #000000;">&#41;</span><br />oChk:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrText, nClrPane <span style="color: #000000;">&#41;</span></div>[/code:3vozhez2]
color of the checkbox / radiobox
In this case :setColor is not suitable - they can only change the background. I need to change the color of the element itself
color of the checkbox / radiobox
if you use themes in the application, it is not possible
color of the checkbox / radiobox
[code=fw:3ephgb8c]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span>...<br /><br />&nbsp; &nbsp;...<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">RADIO</span> oRadMenu <span style="color: #0000ff;">VAR</span> nOpcaoRadio <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span>, <span style="color: #000000;">202</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">UPDATE</span> &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">CHANGE</span><span style="color: #000000;">&#40;</span> TROCA_INDICE<span style="color: #000000;">&#40;</span> nOpcaoRadio, cAlias, oLbx <span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oLbx:<span style="color: #000000;">GoTop</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oLbx:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oLbx:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oRadMenu:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFnt <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oRadMenu:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Por Nome &nbsp; &nbsp;"</span><br />&nbsp; &nbsp;oRadMenu:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cTooltip</span> := <span style="color: #ff0000;">"Por Codigo &nbsp;"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> CTRLS_COLORS<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">// By Giovanny Vecchi </span><br /><span style="color: #00C800;">FUNCTION</span> CTRLS_COLORS<span style="color: #000000;">&#40;</span> f_oDlgContainer <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lc_aCtrls := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, lc_iFor := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> lc_aItemsRadio := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;lc_aCtrls := f_oDlgContainer:<span style="color: #000000;">aControls</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> lc_iFor := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span> lc_aCtrls <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ValType<span style="color: #000000;">&#40;</span> lc_aCtrls<span style="color: #000000;">&#91;</span>lc_iFor<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"O"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> lc_aCtrls<span style="color: #000000;">&#91;</span>lc_iFor<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TRADIO"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aEval<span style="color: #000000;">&#40;</span> lc_aCtrls<span style="color: #000000;">&#91;</span>lc_iFor<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">oRadMenu</span>:<span style="color: #000000;">aItems</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>|_oRadId|<span style="color: #000000;">&#123;</span> SetWindowTheme<span style="color: #000000;">&#40;</span> _oRadId:<span style="color: #000000;">hWnd</span>, <span style="color: #ff0000;">""</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_oRadId:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> CLR_CYAN, CLR_WHITE <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF lc_aCtrls<span style="color: #000000;">&#91;</span>lc_iFor<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">ClassName</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"TCHECKBOX"</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// SetWindowTheme( lc_aCtrls[lc_iFor]:hWnd, "", "" )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// lc_aCtrls[lc_iFor]:SetColor( G_COLOR_SYS( 31 ), G_COLOR_SYS( 1 ) )</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:3ephgb8c] Regards, saludos.
color of the checkbox / radiobox
Karinha, thank you!
color on a cell
I am creating an application for management of motor vehicles. I want on xbrowse on fiels color show the real color I selected see the picture pls. [img:25r912sr]http&#58;//img149&#46;imageshack&#46;us/img149/9669/colormezzoeo9&#46;png[/img:25r912sr]
color on a cell
hi silvio... i hope this help you [code:2qige0om]#include "FiveWin&#46;ch" #include "xbrowse&#46;ch" // xbrowse imagen button get function main() local oDlg, oBrw local aArray &#58;= {} local uVal local nI local oGet local nWdGet &#58;= 0 for nI = 1 to 20 aadd( aArray, { StrZero(nI,2),; "Row&#58;"+StrZero(nI,2)+" Col&#58;02",; "Row&#58;"+StrZero(nI,2)+" Col&#58;03",; "Row&#58;"+StrZero(nI,2)+" Col&#58;04",; "Row&#58;"+StrZero(nI,2)+" Col&#58;05",; "Row&#58;"+StrZero(nI,2)+" Col&#58;06" } ) next DEFINE DIALOG oDlg Title "Test xBrowse " size 700,300 oBrw&#58;= txbrowse()&#58;new( oDlg ) oBrw&#58;nRowHeight &#58;= 25 oBrw&#58;nColDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;nRowDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLROW oBrw&#58;SetArray( aArray ) oBrw&#58;CreateFromCode() oBrw&#58;aCols&#91; 2 &#93;&#58;bClrStd &#58;= {|o| ChangeColor( o, oBrw ) } oBrw&#58;aCols&#91; 2 &#93;&#58;bClrSelFocus &#58;= {|o| ChangeColor( o, oBrw ) } oDlg&#58;oClient &#58;= oBrw ACTIVATE DIALOG oDlg center on init oDlg&#58;Resize() return nil function ChangeColor( oCol, oBrw ) local aClrs &#58;= eval( oBrw&#58;bClrStd ) DO CASE CASE oBrw&#58;aRow&#91; 1 &#93; == "01" aClrs&#91; 2 &#93; &#58;= CLR_GREEN CASE oBrw&#58;aRow&#91; 1 &#93; == "02" aClrs&#91; 2 &#93; &#58;= CLR_YELLOW CASE oBrw&#58;aRow&#91; 1 &#93; == "03" aClrs&#91; 2 &#93; &#58;= CLR_BLUE CASE oBrw&#58;aRow&#91; 1 &#93; == "04" aClrs&#91; 2 &#93; &#58;= CLR_CYAN OTHERWISE aClrs&#91; 2 &#93; &#58;= CLR_HRED ENDCASE return aClrs[/code:2qige0om]
color on a cell
Thanks you are my great friend!!
color on a cell
How I can select only red color cell with mouse ?
color on a cell
please test this change the class new data in txbrowse class [b:1eu8hx1f]DATA bSelected[/b:1eu8hx1f] Change Method Select [code:1eu8hx1f]METHOD Select( nOperation ) CLASS TXBrowse local uBook, uCurRow, uOldRow, uTemp local aTemp local nAt, nLen local lRefresh if &#58;&#58;nMarqueeStyle != MARQSTYLE_HIGHLROWMS return nil endif if VALTYPE ( Eval( &#58;&#58;bSelected, Self ) ) != "L" //daniel msgalert( "Invalid CodeBlock &#58;&#58;bSelected", "FiveWin, Class TXBrowse" ) //daniel return nil //daniel endif //daniel DEFAULT nOperation &#58;= 1 do case case nOperation == 0 // delete all if Len( &#58;&#58;aSelected ) == 1 &#46;and&#46; Eval( &#58;&#58;bBookMark ) == &#58;&#58;aSelected&#91; 1 &#93; lRefresh &#58;= &#46;f&#46; else lRefresh &#58;= &#46;t&#46; endif &#58;&#58;aSelected &#58;= {} if ! Empty( &#58;&#58;nSaveMarq ) &#58;&#58;nMarqueeStyle &#58;= &#58;&#58;nSaveMarq &#58;&#58;nSaveMarq &#58;= nil endif if lRefresh // &#58;&#58;lRefreshOnlyData &#58;= &#46;t&#46; &#58;&#58;GetDC() &#58;&#58;Super&#58;Refresh( &#46;t&#46; ) // &#58;&#58;Paint() &#58;&#58;ReleaseDC() endif case nOperation == 1 &#46;or&#46; ( Len( &#58;&#58;aSelected ) == 0 &#46;and&#46; nOperation != 4 )// Add current uBook &#58;= Eval( &#58;&#58;bBookMark ) nAt &#58;= Ascan( &#58;&#58;aSelected, uBook ) if nAt == 0 &#46;and&#46; Eval( &#58;&#58;bSelected, Self ) //daniel Aadd( &#58;&#58;aSelected, uBook ) &#58;&#58;DrawLine( &#46;t&#46; ) endif case nOperation == 2 // Swap key (Ctrl+LClick) uBook &#58;= Eval( &#58;&#58;bBookMark ) nAt &#58;= Ascan( &#58;&#58;aSelected, uBook ) if nAt > 0 &#58;&#58;DrawLine( &#46;f&#46; ) &#58;&#58;aSelected&#91; nAt &#93; &#58;= Atail( &#58;&#58;aSelected ) Asize( &#58;&#58;aSelected, Len( &#58;&#58;aSelected ) - 1 ) else if Eval( &#58;&#58;bSelected, Self ) //daniel Aadd( &#58;&#58;aSelected, Eval( &#58;&#58;bBookMark )) &#58;&#58;DrawLine( &#46;t&#46; ) endif //daniel endif case nOperation == 3 // Shift & lclick uBook &#58;= Eval( &#58;&#58;bBookMark ) uCurRow &#58;= &#58;&#58;KeyNo() Eval( &#58;&#58;bBookMark, Atail( &#58;&#58;aSelected ) ) uOldRow &#58;= &#58;&#58;KeyNo() if uOldRow != uCurRow &#58;&#58;aSelected &#58;= { Atail( &#58;&#58;aSelected ) } if uCurRow > uOldRow CursorWait() do while ( uTemp &#58;= Eval( &#58;&#58;bBookMark ) ) != uBook &#46;and&#46; ! &#58;&#58;Eof() If Ascan( &#58;&#58;aSelected, uTemp ) == 0 &#46;and&#46; Eval( &#58;&#58;bSelected, Self ) //daniel Aadd( &#58;&#58;aSelected, uTemp ) Endif &#58;&#58;Skip( 1 ) // Eval( &#58;&#58;bSkip, 1 ) enddo CursorArrow() else CursorWait() do while ( uTemp &#58;= Eval( &#58;&#58;bBookMark ) ) != uBook &#46;and&#46; ! &#58;&#58;Bof() If Ascan( &#58;&#58;aSelected, uTemp ) == 0 &#46;and&#46; Eval( &#58;&#58;bSelected, Self ) //daniel Aadd( &#58;&#58;aSelected, uTemp ) endif &#58;&#58;Skip( -1 ) // Eval( &#58;&#58;bSkip, -1 ) enddo CursorArrow() endif if Eval( &#58;&#58;bSelected, Self ) //daniel Aadd( &#58;&#58;aSelected, uBook ) endif Eval( &#58;&#58;bBookMark, uBook ) // &#58;&#58;lRefreshOnlyData &#58;= &#46;t&#46; &#58;&#58;GetDC() &#58;&#58;Paint() &#58;&#58;ReleaseDC() else Eval( &#58;&#58;bBookMark, uBook ) endif case nOperation == 4 // Select all uBook &#58;= Eval( &#58;&#58;bBookMark ) &#58;&#58;aSelected &#58;= Array( &#58;&#58;KeyCount() ) nAt &#58;= 1 nLen &#58;= &#58;&#58;nLen aTemp &#58;= &#58;&#58;aSelected CursorWait() Eval( &#58;&#58;bGotop ) do while nAt <= nLen //&#46;and&#46; !Eval( &#58;&#58;bEof ) if Eval( &#58;&#58;bSelected, Self ) //daniel aTemp&#91; nAt++ &#93; &#58;= Eval( &#58;&#58;bBookMark ) endif &#58;&#58;Skip( 1 ) //Eval( &#58;&#58;bSkip, 1 ) enddo Eval( &#58;&#58;bBookMark, uBook ) CursorArrow() // &#58;&#58;lRefreshOnlyData &#58;= &#46;t&#46; &#58;&#58;GetDC() &#58;&#58;Paint() &#58;&#58;ReleaseDC() end case return nil[/code:1eu8hx1f] now Test code [code:1eu8hx1f]#include "FiveWin&#46;ch" #include "xbrowse&#46;ch" // xbrowse imagen button get function main() local oDlg, oBrw local aArray &#58;= {} local uVal local nI local oGet local nWdGet &#58;= 0 for nI = 1 to 20 aadd( aArray, { StrZero(nI,2),; "Row&#58;"+StrZero(nI,2)+" Col&#58;02",; "Row&#58;"+StrZero(nI,2)+" Col&#58;03",; "Row&#58;"+StrZero(nI,2)+" Col&#58;04",; "Row&#58;"+StrZero(nI,2)+" Col&#58;05",; "Row&#58;"+StrZero(nI,2)+" Col&#58;06" } ) next DEFINE DIALOG oDlg Title "Test xBrowse III " size 700,300 oBrw&#58;= txbrowse()&#58;new( oDlg ) oBrw&#58;nRowHeight &#58;= 25 oBrw&#58;nColDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;nRowDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLROWMS //MARQSTYLE_HIGHLCELL // oBrw&#58;SetArray( aArray ) oBrw&#58;CreateFromCode() oBrw&#58;bSelected &#58;= {| o | if( ChangeColor( o, oBrw )&#91; 2 &#93; == CLR_HRED, &#46;t&#46;, &#46;f&#46;) } oBrw&#58;aCols&#91; 2 &#93;&#58;bClrStd &#58;= {|o| ChangeColor( o, oBrw ) } oBrw&#58;aCols&#91; 2 &#93;&#58;bClrSelFocus &#58;= {|o| ChangeColor( o, oBrw ) } oDlg&#58;oClient &#58;= oBrw ACTIVATE DIALOG oDlg center on init oDlg&#58;Resize() return nil function ChangeColor( oCol, oBrw ) local aClrs &#58;= eval( oBrw&#58;bClrStd ) DO CASE CASE oBrw&#58;aRow&#91; 1 &#93; == "01" aClrs&#91; 2 &#93; &#58;= CLR_GREEN CASE oBrw&#58;aRow&#91; 1 &#93; == "02" aClrs&#91; 2 &#93; &#58;= CLR_YELLOW CASE oBrw&#58;aRow&#91; 1 &#93; == "03" aClrs&#91; 2 &#93; &#58;= CLR_BLUE CASE oBrw&#58;aRow&#91; 1 &#93; == "04" aClrs&#91; 2 &#93; &#58;= CLR_CYAN OTHERWISE aClrs&#91; 2 &#93; &#58;= CLR_HRED ENDCASE return aClrs[/code:1eu8hx1f]
color on a cell
I try it but not run ok if I click the buttons of mouse it not make anything How you think it run ?
color on a cell
Sorry perhaps I think I not explain you look the test you made ... I wish for a sample click on second column with the mouse from second row and pressing a button of mouse select the cells to six row and modify the color into yellow I hope you understand me
color on a cell
please review this sample for popmenu use right button [code:2vwsw6z8] #include "FiveWin&#46;ch" #include "xbrowse&#46;ch" // xbrowse imagen button get static aCellSelected function main() local oDlg, oBrw local aArray &#58;= {} local uVal local nI local oGet, oBtn local nWdGet &#58;= 0 for nI = 1 to 20 aadd( aArray, { StrZero(nI,2),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ),; SPACE( 5 ) } ) next DEFINE DIALOG oDlg Title "Test xBrowse III " size 700,300 oBrw&#58;= txbrowse()&#58;new( oDlg ) oBrw&#58;nRowHeight &#58;= 25 oBrw&#58;nColDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;nRowDividerStyle &#58;= LINESTYLE_BLACK oBrw&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLCELL //MARQSTYLE_HIGHLROWMS // oBrw&#58;SetArray( aArray ) oBrw&#58;CreateFromCode() AEVAL( oBrw&#58;aCols, { |o| o&#58;bPopUp &#58;= { |o| ColMenu( o ) } } ) AEval( oBrw&#58;aCols, { | oCol | oCol&#58;bClrStd &#58;= {| | ChangeColor( oBrw ) } }, 2 ) for nI = 2 to len( oBrw&#58;aCols ) oBrw&#58;aCols&#91; nI &#93;&#58;bClrStd &#58;= GenCodeColor( oBrw, nI ) next oDlg&#58;oClient &#58;= oBrw ACTIVATE DIALOG oDlg center on init oDlg&#58;Resize() return nil Function GenCodeColor( oBrw, nI ) return {|| ChangeColor( oBrw, nI ) } function ChangeColor( oBrw, n ) local aClrs &#58;= { CLR_BLACK, GetSysColor( 5 )} local j local bClrStd DO CASE CASE oBrw&#58;aRow&#91; n &#93; == space( 4 ) aClrs &#58;= { CLR_HRED, CLR_HRED } CASE oBrw&#58;aRow&#91; n &#93; == space( 3 ) aClrs &#58;= { CLR_BLUE, CLR_BLUE } CASE oBrw&#58;aRow&#91; n &#93; == SPACE( 5 ) aClrs &#58;= { CLR_WHITE, CLR_WHITE } ENDCASE return aClrs static function ColMenu( ocol ) local oPop MENU oPop POPUP 2007 menuitem "Selected" action( oCol&#58;Value( space( 3 ) ), oCol&#58;oBrw&#58;Refresh() ) menuitem "Unseleced" action( oCol&#58;Value(space( 5 ) ), oCol&#58;oBrw&#58;Refresh() ) menuitem "Active" action( oCol&#58;Value( SPACE( 4 ) ), oCol&#58;oBrw&#58;Refresh() ) ENDMENU return oPop [/code:2vwsw6z8]
color por linea en Tbrowse
Alguien sabe como se puede cambiar el color de una linea del TBrowse en base a alguna condicion del registro o elemento? Saludos
color por linea en Tbrowse
Arturo, Este es un ejemplo para alternar los colores de cada línea: oBrw:nClrPane := { || If( OrdKeyNo() % 2 == 0, RGB( 230, 230, 230), RGB( 190, 215, 190 ) ) }
color por linea en Tbrowse
bueno yo lo uso de esta forma q es un poquitito mas rapido... [code:2j8mudix]oBrw&#58;nClrPane&#58;=&#123;||IIF&#40; &#40;oBrw&#58;Cargo&#58;=!oBrw&#58;Cargo&#41; , RGB&#40;193,221,255&#41;, RGB&#40;221,245,255&#41; &#41;&#125;[/code:2j8mudix] se me ocurre ahora q tambien puede ser... [code:2j8mudix]oBrw&#58;nClrPane&#58;=&#123;||IIF&#40; &#40;oBrw&#58;nAt%2 , RGB&#40;193,221,255&#41;, RGB&#40;221,245,255&#41; &#41;&#125;[/code:2j8mudix]
color por linea en Tbrowse
Muchas Gracias, Me desonecte la ultima semana del año, pero ya ando por aca, realmente agradezco la pronta respuesta. Feliz Año 2008. [quote="Antonio Linares":1cr0rm5k]Arturo, Este es un ejemplo para alternar los colores de cada línea: oBrw:nClrPane := { || If( OrdKeyNo() % 2 == 0, RGB( 230, 230, 230), RGB( 190, 215, 190 ) ) }[/quote:1cr0rm5k]
color por linea en Tbrowse
Gracias a ambos. Feliz Año nuevo. [quote="luis.santeliz":2fcw8e1h]bueno yo lo uso de esta forma q es un poquitito mas rapido... [code:2fcw8e1h]oBrw&#58;nClrPane&#58;=&#123;||IIF&#40; &#40;oBrw&#58;Cargo&#58;=!oBrw&#58;Cargo&#41; , RGB&#40;193,221,255&#41;, RGB&#40;221,245,255&#41; &#41;&#125;[/code:2fcw8e1h] se me ocurre ahora q tambien puede ser... [code:2fcw8e1h]oBrw&#58;nClrPane&#58;=&#123;||IIF&#40; &#40;oBrw&#58;nAt%2 , RGB&#40;193,221,255&#41;, RGB&#40;221,245,255&#41; &#41;&#125;[/code:2fcw8e1h][/quote:2fcw8e1h]
color the cells of the xbrowse
I have this array [img:34zj064s]https&#58;//i&#46;postimg&#46;cc/0QzwDLD5/jh&#46;png[/img:34zj064s] I would like to visualize with colors 1) equal numbers (from column 7 to 16) on the same row 2) same numbers (from column 7 to 16) on different rows when the numbers are colored, I also want to color the columns relating to the headers example "1-4" I want to color the number of columns 1 and 4 the test [code=fw:34zj064s]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oWnd, oBrw, oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aData := <span style="color: #000000;">&#123;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"XXX"</span>, <span style="color: #000000;">53</span>, <span style="color: #000000;">29</span>, <span style="color: #000000;">22</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">39</span>, <span style="color: #000000;">82</span>, <span style="color: #000000;">75</span>,<span style="color: #000000;">33</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">51</span>,<span style="color: #000000;">9</span>,<span style="color: #000000;">68</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">61</span>,<span style="color: #000000;">19</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"KKK"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">21</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">38</span>, <span style="color: #000000;">44</span>, <span style="color: #000000;">36</span>, <span style="color: #000000;">75</span>,<span style="color: #000000;">53</span>,<span style="color: #000000;">59</span>,<span style="color: #000000;">81</span>,<span style="color: #000000;">59</span>,<span style="color: #000000;">65</span>,<span style="color: #000000;">8</span>,<span style="color: #000000;">14</span>,<span style="color: #000000;">82</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"TTT"</span>, <span style="color: #000000;">54</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">56</span>, <span style="color: #000000;">77</span>, <span style="color: #000000;">79</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">20</span>,<span style="color: #000000;">41</span>,<span style="color: #000000;">43</span>,<span style="color: #000000;">60</span>,<span style="color: #000000;">81</span>,<span style="color: #000000;">83</span>,<span style="color: #000000;">43</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">66</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'TAHOMA'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-20</span> BOLD<br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; * @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">AUTOCOLS</span> ARRAY aData ;<br /><br />&nbsp; * CELL LINES FASTEDIT <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">PIXEL</span> NOBORDER;<br />&nbsp; &nbsp; &nbsp; COLS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span>,<span style="color: #000000;">7</span>,<span style="color: #000000;">8</span>,<span style="color: #000000;">9</span>,<span style="color: #000000;">10</span>,<span style="color: #000000;">11</span>,<span style="color: #000000;">12</span>,<span style="color: #000000;">13</span>,<span style="color: #000000;">14</span>,<span style="color: #000000;">15</span>,<span style="color: #000000;">16</span>;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style="color: #ff0000;">"Ruote"</span>, <span style="color: #ff0000;">"1°"</span>, <span style="color: #ff0000;">"2°"</span>, <span style="color: #ff0000;">"3°"</span>, <span style="color: #ff0000;">"4°"</span>, <span style="color: #ff0000;">"5°"</span>, <span style="color: #ff0000;">"1-2"</span> ,<span style="color: #ff0000;">"1-3"</span>,<span style="color: #ff0000;">"1-4"</span>,<span style="color: #ff0000;">"1-5"</span>,<span style="color: #ff0000;">"2-3"</span>,<span style="color: #ff0000;">"2-4"</span>,<span style="color: #ff0000;">"2-5"</span>,<span style="color: #ff0000;">"3-4"</span>,<span style="color: #ff0000;">"3-5"</span>,<span style="color: #ff0000;">"4-5"</span>;<br />&nbsp; &nbsp; &nbsp; SIZES &nbsp;<span style="color: #000000;">150</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">45</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; ARRAY adata ;<br />&nbsp; &nbsp; &nbsp; CELL LINES<br /><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">oClient</span> &nbsp; := oBrw<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:34zj064s]
color the cells of the xbrowse
hi Silvio, i do not know how XBROWSE work my HMG Sample use GRID and DYNAMICBACKCOLOR which is a Codeblock with RGB-Color [url:27elwpsu]http&#58;//www&#46;hmgforum&#46;com/viewtopic&#46;php?f=5&t=7222[/url:27elwpsu] [img:27elwpsu]http&#58;//www&#46;hmgforum&#46;com/download/file&#46;php?id=11244[/img:27elwpsu] you can use 1st Part of Code to "identify" Number in Array which are twice (or more) this later is use for Color of Background
color the cells of the xbrowse
What mean with "FindDupe" ? But it is ...same numbers (from column 7 to 16) on different rows ? We can try converte it together my problem is as the first operation (1) locate the numbers on the same line second operation (2) the same numbers on different lines It is the final operator who by selecting a checkbox can highlight the numbers (1) or (2)
color the cells of the xbrowse
[quote="Jimmy":256e76ev]hi Silvio, i do not know how XBROWSE work my HMG Sample use GRID and DYNAMICBACKCOLOR which is a Codeblock with RGB-Color [url:256e76ev]http&#58;//www&#46;hmgforum&#46;com/viewtopic&#46;php?f=5&t=7222[/url:256e76ev] [img:256e76ev]http&#58;//www&#46;hmgforum&#46;com/download/file&#46;php?id=11244[/img:256e76ev] you can use 1st Part of Code to "identify" Number in Array which are twice (or more) this later is use for Color of Background[/quote:256e76ev] I'm trying to converte [img:256e76ev]https&#58;//i&#46;postimg&#46;cc/4yzspxJd/jhg&#46;jpg[/img:256e76ev] @ 200, 100 CHECKBOX oChk[2] VAR lUgualiRuote PROMPT "Same values on different wheels" SIZE 120, 12 pixel OF oFld:aDialogs[2] ; ON CHANGE ( Same_Number_all_Rows(aData)) [code=fw:256e76ev]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> Same_Number_all_Rows<span style="color: #000000;">&#40;</span>aData<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRowMax &nbsp;:= LEN<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nColMax<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> ii, jj, nNum, nPosi, nNumColor<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nCount &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> aResult :=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// read aData and add Number to aResult</span><br />&nbsp; &nbsp;ii := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nRowMax<br />&nbsp; &nbsp; &nbsp; jj := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; nColMax := LEN<span style="color: #000000;">&#40;</span> aData<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> jj := <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> nColMax<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nNum := aData<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> jj <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPosi := ASCAN<span style="color: #000000;">&#40;</span> aResult, <span style="color: #000000;">&#123;</span> | e | e<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = nNum <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> nPosi > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// increase Counter</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> := aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// {Number,Counter,Color}</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aResult, <span style="color: #000000;">&#123;</span> nNum, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;xbrowser &nbsp; aResult<br /><br />&nbsp;</div>[/code:256e76ev] [b:256e76ev]at this point it gives me back[/b:256e76ev] [img:256e76ev]https&#58;//i&#46;postimg&#46;cc/d30jyLRR/kkkk&#46;png[/img:256e76ev] I understood are Number and counter and number color right ? Now I must converte this [code=fw:256e76ev]<div class="fw" id="{CB}" style="font-family: monospace;">ii := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nColMax<br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aJustify, GRID_JTFY_LEFT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aBColors, <span style="color: #000000;">&#123;</span> || FindDupe<span style="color: #000000;">&#40;</span>aResult<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span></div>[/code:256e76ev] on FindDupe(aResult) [b:256e76ev]I not Know How converte this [/b:256e76ev] LOCAL CellRowIndex := This.CellRowIndex LOCAL CellColIndex := This.CellColIndex LOCAL CellValue := This.CellValue
color the cells of the xbrowse
Perhaps FOR n = 2 to len( oBrw:aCols ) oCol := oBrw:aCols[ n ] AADD( aBColors, { || FindDupe(aResult,oCol) } ) NEXT // sort Result ASORT( aResult,,, { | aX, aY | aX[ 1 ] < aY[ 1 ] } ) // set Color when "dupe" nNumColor := 600000 nCount := 0 ii := 1 FOR ii := 1 TO LEN( aResult ) IF aResult[ ii ] [ 2 ] > 1 nCount ++ aResult[ ii ] [ 3 ] := NumColor2RGB( nNumColor * nCount ) ENDIF NEXT return aBColors FUNCTION FindDupe(aResult,oCol) LOCAL nPosi LOCAL bColor := {255,255,255} LOCAL nCellValue nCellValue := oCol:value nPosi := ASCAN( aResult, { | e | e[ 1 ] = nCellValue } ) IF nPosi > 0 IF aResult[ nPosi ] [ 2 ] > 1 bColor := aResult[ nPosi ] [ 3 ] ENDIF ENDIF RETURN bColor
color the cells of the xbrowse
hi Silvio, as i say 1st Part of Code seems to work for you [quote:g9tjpye3][code=fw:g9tjpye3]<div class="fw" id="{CB}" style="font-family: monospace;">AADD<span style="color: #000000;">&#40;</span> aJustify, GRID_JTFY_LEFT <span style="color: #000000;">&#41;</span></div>[/code:g9tjpye3][/quote:g9tjpye3] not need, just "justfy" Value in Column [quote:g9tjpye3][code=fw:g9tjpye3]<div class="fw" id="{CB}" style="font-family: monospace;">AADD<span style="color: #000000;">&#40;</span> aBColors, <span style="color: #000000;">&#123;</span> || FindDupe<span style="color: #000000;">&#40;</span>aResult<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span></div>[/code:g9tjpye3][/quote:g9tjpye3] a Codeblock for each Column [quote:g9tjpye3][code=fw:g9tjpye3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">LOCAL</span> CellRowIndex := This.CellRowIndex<br /><span style="color: #00C800;">LOCAL</span> CellColIndex := This.CellColIndex<br /><span style="color: #00C800;">LOCAL</span> CellValue := This.CellValue</div>[/code:g9tjpye3][/quote:g9tjpye3] as i say i do not know how XBROWSE work with Color i saw you can set Color for hole Column but how on single Cell <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> Question : does Fivewin use "Ownerdraw" (WM_DRAWITEM) <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> --- GRID = WC_LISTVIEW does have Style LVS_OWNERDATA and LVN_GETDISPINFO for Notify Event using NMLVDISPINFO Structure you got "Row/Col" [code=fw:g9tjpye3]<div class="fw" id="{CB}" style="font-family: monospace;">   st := NMLVDISPINFO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// ZERO-based :iItem and :iSubItem</span><br />   nRec := st:<span style="color: #000000;">item</span>:<span style="color: #000000;">iItem</span>              <span style="color: #B900B9;">// This.CellRowIndex</span><br />   nSub := st:<span style="color: #000000;">item</span>:<span style="color: #000000;">iSubItem</span><span style="color: #000000;">+1</span>         <span style="color: #B900B9;">// This.CellColIndex</span><br /><br />   <span style="color: #B900B9;">// use Array ::aSource</span><br />   ctext := ::<span style="color: #000000;">aSource</span><span style="color: #000000;">&#91;</span>nRec<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>nSub<span style="color: #000000;">&#93;</span>   <span style="color: #B900B9;">// This.CellValue</span></div>[/code:g9tjpye3] benefit : you can use a "virtual GRID" and "assign hole Array (Limit 100.000.000) [code=fw:g9tjpye3]<div class="fw" id="{CB}" style="font-family: monospace;">   nItemCache := LEN<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aSource</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">// get Memory for (big) Array</span><br />   ::<span style="color: #000000;">lv_SetItemCount</span><span style="color: #000000;">&#40;</span>nItemCache<span style="color: #000000;">&#41;</span></div>[/code:g9tjpye3]
color the cells of the xbrowse
[quote="Silvio.Falconi":2qrdwndl]Perhaps [/quote:2qrdwndl] Code look good ... but how to "use" aBColors <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> how to "color" single Cell <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
color the cells of the xbrowse
Perhaps [code=fw:1qrh3zcl]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><span style="color: #00D7D7;">#define</span> ACOLOR3  <span style="color: #000000;">&#123;</span> CLR_BROWN,CLR_WHITE <span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#define</span> ACOLOR4  <span style="color: #000000;">&#123;</span> CLR_YELLOW, CLR_WHITE <span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp;<span style="color: #00C800;">Function</span> Same_Number_all_Rows<span style="color: #000000;">&#40;</span>aData,oBrw<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRowMax &nbsp;:= LEN<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nColMax<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> ii, jj, nNum, nPosi, nNumColor<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nCount &nbsp; := <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">local</span> aResult :=<span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aJustify := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> aBColors := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// read aData and add Number to aResult</span><br />&nbsp; &nbsp;ii := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nRowMax<br />&nbsp; &nbsp; &nbsp; jj := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; nColMax := LEN<span style="color: #000000;">&#40;</span> aData<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> jj := <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> nColMax<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nNum := aData<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> jj <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPosi := ASCAN<span style="color: #000000;">&#40;</span> aResult, <span style="color: #000000;">&#123;</span> | e | e<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = nNum <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> nPosi > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// increase Counter</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> := aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// {Number,Counter,Color}</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aResult, <span style="color: #000000;">&#123;</span> nNum, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;XBROWSER aResult<br /><br /><br /><br /><br /><br />&nbsp; &nbsp;*<span style="color: #00C800;">FOR</span> n = <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;* &nbsp; &nbsp; &nbsp;oCol &nbsp; &nbsp; &nbsp; &nbsp; := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; * &nbsp; &nbsp; oCol:<span style="color: #000000;">bClrStd</span> := CellColorBlockResult<span style="color: #000000;">&#40;</span> oCol, aResult<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;* &nbsp; <span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;* <span style="color: #00C800;">return</span> <span style="color: #00C800;">NIL</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// add for each Column</span><br /><br /><br /><br />&nbsp; <span style="color: #00C800;">FOR</span> n = <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oCol &nbsp; &nbsp; &nbsp; &nbsp; := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AADD<span style="color: #000000;">&#40;</span> aBColors, <span style="color: #000000;">&#123;</span> || FindDupe<span style="color: #000000;">&#40;</span>@aResult,oCol<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;* &nbsp;xbrowser aBColors<br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// sort Result</span><br />&nbsp; &nbsp;ASORT<span style="color: #000000;">&#40;</span> aResult,,, <span style="color: #000000;">&#123;</span> | aX, aY | aX<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> < aY<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// set Color when "dupe"</span><br />&nbsp; &nbsp;nNumColor := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;nCount := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;ii := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> aResult <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> aResult<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCount ++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aResult<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> := nCount <span style="color: #B900B9;">//( nNumColor * nCount )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xbrowser &nbsp; aResult<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> n = <span style="color: #000000;">2</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">aCols</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol &nbsp; &nbsp; &nbsp; &nbsp; := oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style="color: #000000;">bClrStd</span> := CellColorBlockResult<span style="color: #000000;">&#40;</span> oCol, aResult<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> CellColorBlockResult<span style="color: #000000;">&#40;</span> oCol, aPos <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBrw := oCol:<span style="color: #000000;">oBrw</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> IsBit<span style="color: #000000;">&#40;</span> aPos<span style="color: #000000;">&#91;</span> oBrw:<span style="color: #000000;">nArrayAt</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, oCol:<span style="color: #000000;">nArrayCol</span> <span style="color: #000000;">&#41;</span>,NumColor2RGB<span style="color: #000000;">&#40;</span> aPos<span style="color: #000000;">&#91;</span> oBrw:<span style="color: #000000;">nArrayAt</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, ACOLOR4 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br /><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> FindDupe<span style="color: #000000;">&#40;</span>aResult,oCol<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> nPosi<br /><span style="color: #00C800;">LOCAL</span> bColor &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">LOCAL</span> nCellValue<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// these Variable are avaiable for GRID</span><br />*<span style="color: #00C800;">LOCAL</span> CellRowIndex := This.CellRowIndex<br />*<span style="color: #00C800;">LOCAL</span> CellColIndex := This.CellColIndex<br />*<span style="color: #00C800;">LOCAL</span> CellValue &nbsp; &nbsp;:= This.CellValue<br /><br /><br />&nbsp; &nbsp;nCellValue := &nbsp;oCol:<span style="color: #000000;">value</span><br />&nbsp; &nbsp;nPosi := ASCAN<span style="color: #000000;">&#40;</span> aResult, <span style="color: #000000;">&#123;</span> | e | e<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = nCellValue <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nPosi > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bColor := aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> &nbsp;bColor<br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> NumColor2RGB<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> aRetVal<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nColor <span style="color: #0000ff;">TO</span> - <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nColor == - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; aRetVal := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; aRetVal := <span style="color: #000000;">&#123;</span> GetRed<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span>, GetGreen<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span>, GetBlue<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br /><br /><span style="color: #00C800;">RETURN</span> aRetVal</div>[/code:1qrh3zcl]
color the cells of the xbrowse
LOCAL CellRowIndex := This.CellRowIndex LOCAL CellColIndex := This.CellColIndex LOCAL CellValue := This.CellValue CellRowIndex -> oBrw:nArrayAt CellColIndex -> oCol := oBrw:aCols[ n ] CellValue -> nCellValue := oCol:value I believe this is the case in fivewin but I'm not sure
color the cells of the xbrowse
hi Silvio, [quote="Silvio.Falconi":ae8bpkqe]I believe this is the case in fivewin but I'm not sure[/quote:ae8bpkqe] would like to "see" FiveWin Code when working, thx
color the cells of the xbrowse
[quote="Jimmy":31i0h24c]hi Silvio, [quote="Silvio.Falconi":31i0h24c]I believe this is the case in fivewin but I'm not sure[/quote:31i0h24c] would like to "see" FiveWin Code when working, thx[/quote:31i0h24c] Jimmy i can send you a small sample to see fivewin working with colors, my mail is silvio[dot]falconi[at]gmail[dot]com
color the cells of the xbrowse
Any solution pls ? Nages? how converte this source of Jimmy ? [code=fw:v53ksukm]<div class="fw" id="{CB}" style="font-family: monospace;">*+--------------------------------------------------------------------<br />*+<br />*+ Source Module => c:\hmg<span style="color: #000000;">.3</span><span style="color: #000000;">.4</span><span style="color: #000000;">.4</span>\<span style="color: #000000;">0</span>\Lotto\\LOTTO.PRG<br />*+<br />*+ &nbsp; &nbsp;Copyright<span style="color: #000000;">&#40;</span>C<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1983</span><span style="color: #000000;">-2021</span> by Auge & Ohr<br />*+<br />*+ &nbsp; &nbsp;Functions: <span style="color: #000000;">Procedure</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Function</span> FindDupe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Function</span> NumColor2RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*+<br />*+ &nbsp; &nbsp;Reformatted by <span style="color: #0000ff;">Click</span>! <span style="color: #000000;">2.05</span><span style="color: #000000;">.39</span> <span style="color: #0000ff;">on</span> Apr<span style="color: #000000;">-20</span><span style="color: #000000;">-2022</span> <span style="color: #00C800;">at</span> &nbsp;<span style="color: #000000;">7</span>:<span style="color: #000000;">35</span> am<br />*+<br />*+--------------------------------------------------------------------<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"HMG.CH"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Common.ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> aResult := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />MEMVAR _HMG_SYSDATA<br /><br />*+--------------------------------------------------------------------<br />*+<br />*+ &nbsp; &nbsp;Procedure MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*+<br />*+--------------------------------------------------------------------<br />*+<br />PROCEDURE MAIN<br /><br /><span style="color: #00C800;">LOCAL</span> aData := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"XXX"</span>, <span style="color: #000000;">53</span>, <span style="color: #000000;">29</span>, <span style="color: #000000;">22</span>, <span style="color: #000000;">70</span>, <span style="color: #000000;">39</span>, <span style="color: #000000;">82</span>, <span style="color: #000000;">75</span>, <span style="color: #000000;">33</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">51</span>, <span style="color: #000000;">9</span>, <span style="color: #000000;">68</span>, <span style="color: #000000;">2</span>, <span style="color: #000000;">61</span>, <span style="color: #000000;">19</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"KKK"</span>, <span style="color: #000000;">15</span>, <span style="color: #000000;">21</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">38</span>, <span style="color: #000000;">44</span>, <span style="color: #000000;">36</span>, <span style="color: #000000;">75</span>, <span style="color: #000000;">53</span>, <span style="color: #000000;">59</span>, <span style="color: #000000;">81</span>, <span style="color: #000000;">59</span>, <span style="color: #000000;">65</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">14</span>, <span style="color: #000000;">82</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"TTT"</span>, <span style="color: #000000;">54</span>, <span style="color: #000000;">4</span>, <span style="color: #000000;">56</span>, <span style="color: #000000;">77</span>, <span style="color: #000000;">79</span>, <span style="color: #000000;">58</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">41</span>, <span style="color: #000000;">43</span>, <span style="color: #000000;">60</span>, <span style="color: #000000;">81</span>, <span style="color: #000000;">83</span>, <span style="color: #000000;">43</span>, <span style="color: #000000;">45</span>, <span style="color: #000000;">66</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">LOCAL</span> nRowMax &nbsp;:= LEN<span style="color: #000000;">&#40;</span> aData <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> nColMax<br /><span style="color: #00C800;">LOCAL</span> ii, jj, nNum, nPosi, nNumColor<br /><span style="color: #00C800;">LOCAL</span> nCount &nbsp; := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">LOCAL</span> aJustify := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">LOCAL</span> aBColors := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// read aData and add Number to aResult</span><br />&nbsp; &nbsp;ii := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nRowMax<br />&nbsp; &nbsp; &nbsp; jj := <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; nColMax := LEN<span style="color: #000000;">&#40;</span> aData<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> jj := <span style="color: #000000;">2</span> <span style="color: #0000ff;">TO</span> nColMax<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nNum := aData<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> jj <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nPosi := ASCAN<span style="color: #000000;">&#40;</span> aResult, <span style="color: #000000;">&#123;</span> | e | e<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = nNum <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> nPosi > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// increase Counter</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> := aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> + <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// {Number,Counter,Color}</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aResult, <span style="color: #000000;">&#123;</span> nNum, <span style="color: #000000;">1</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// add for each Column</span><br />&nbsp; &nbsp;ii := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nColMax<br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aJustify, GRID_JTFY_LEFT <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; AADD<span style="color: #000000;">&#40;</span> aBColors, <span style="color: #000000;">&#123;</span> || FindDupe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// sort Result</span><br />&nbsp; &nbsp;ASORT<span style="color: #000000;">&#40;</span> aResult,,, <span style="color: #000000;">&#123;</span> | aX, aY | aX<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> < aY<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// set Color when "dupe"</span><br />&nbsp; &nbsp;nNumColor := <span style="color: #000000;">600000</span><br />&nbsp; &nbsp;nCount := <span style="color: #000000;">0</span><br />&nbsp; &nbsp;ii := <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> ii := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> LEN<span style="color: #000000;">&#40;</span> aResult <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> aResult<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nCount ++<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aResult<span style="color: #000000;">&#91;</span> ii <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> := NumColor2RGB<span style="color: #000000;">&#40;</span> nNumColor * nCount <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> Form_1 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">AT</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WIDTH <span style="color: #000000;">800</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;HEIGHT <span style="color: #000000;">400</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MAIN<br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">10</span>, &nbsp;<span style="color: #000000;">0</span> GRID Grid_1 ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WIDTH <span style="color: #000000;">800</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEIGHT <span style="color: #000000;">330</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HEADERS <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span>, <span style="color: #ff0000;">''</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WIDTHS <span style="color: #000000;">&#123;</span> <span style="color: #000000;">31</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ITEMS</span> aData ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CELLNAVIGATION ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DYNAMICBACKCOLOR aBColors ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; JUSTIFY aJustify<br /><br />&nbsp; &nbsp;END <span style="color: #0000ff;">WINDOW</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">CENTER</span> <span style="color: #0000ff;">WINDOW</span> Form_1<br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> Form_1<br /><br /><span style="color: #00C800;">RETURN</span><br /><br />*+--------------------------------------------------------------------<br />*+<br />*+ &nbsp; &nbsp;<span style="color: #00C800;">Function</span> FindDupe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*+<br />*+ &nbsp; &nbsp;Called <span style="color: #0000ff;">from</span> <span style="color: #000000;">&#40;</span> lotto.prg <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #000000;">1</span> - procedure main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*+<br />*+--------------------------------------------------------------------<br />*+<br /><span style="color: #00C800;">FUNCTION</span> FindDupe<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> nPosi<br /><span style="color: #00C800;">LOCAL</span> bColor &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">LOCAL</span> nCellValue<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// these Variable are avaiable for GRID</span><br /><span style="color: #00C800;">LOCAL</span> CellRowIndex := This.CellRowIndex<br /><span style="color: #00C800;">LOCAL</span> CellColIndex := This.CellColIndex<br /><span style="color: #00C800;">LOCAL</span> CellValue &nbsp; &nbsp;:= This.CellValue<br /><br />&nbsp; &nbsp;nCellValue := VAL<span style="color: #000000;">&#40;</span> CellValue <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;nPosi := ASCAN<span style="color: #000000;">&#40;</span> aResult, <span style="color: #000000;">&#123;</span> | e | e<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> = nCellValue <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nPosi > <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> > <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bColor := aResult<span style="color: #000000;">&#91;</span> nPosi <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> bColor<br /><br />*+--------------------------------------------------------------------<br />*+<br />*+ &nbsp; &nbsp;<span style="color: #00C800;">Function</span> NumColor2RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*+<br />*+ &nbsp; &nbsp;Called <span style="color: #0000ff;">from</span> <span style="color: #000000;">&#40;</span> lotto.prg <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #000000;">1</span> - procedure main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />*+<br />*+--------------------------------------------------------------------<br />*+<br /><span style="color: #00C800;">FUNCTION</span> NumColor2RGB<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">LOCAL</span> aRetVal<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nColor <span style="color: #0000ff;">TO</span> - <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nColor == - <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; aRetVal := <span style="color: #000000;">&#123;</span> <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; aRetVal := <span style="color: #000000;">&#123;</span> GetRed<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span>, GetGreen<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span>, GetBlue<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> aRetVal<br /><br />*+ EOF: <span style="color: #000000;">LOTTO</span>.PRG</div>[/code:v53ksukm]
colorear fondo de un control grupo
Estimados, Por que desaparecen los controles como los gets y botones cuando coloreo el fondo del grupo en ejecucion Adjunto pantallas Antes de pintar [url=http&#58;//subefotos&#46;com/ver/?eae70422747aad4e0993c1d0bbba85eao&#46;jpg:3sqoj6nv][img:3sqoj6nv]http&#58;//thumbs&#46;subefotos&#46;com/eae70422747aad4e0993c1d0bbba85eao&#46;jpg[/img:3sqoj6nv][/url:3sqoj6nv] Despues de ordenar el pintado de color amarillo ... como se puede apreciar hay controles que desaperecen [url=http&#58;//subefotos&#46;com/ver/?bc18fdab8533b796f27438878922911do&#46;jpg:3sqoj6nv][img:3sqoj6nv]http&#58;//thumbs&#46;subefotos&#46;com/bc18fdab8533b796f27438878922911do&#46;jpg[/img:3sqoj6nv][/url:3sqoj6nv] Codigo fuente [code=fw:3sqoj6nv]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgDet <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"DLG_CABGuia"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Nota de Pedido"</span> <span style="color: #0000ff;">FONT</span> oFontS<br /><br />   <span style="color: #0000ff;">REDEFINE</span> GROUP oGrupo <span style="color: #0000ff;">ID</span> <span style="color: #000000;">4001</span> <span style="color: #0000ff;">OF</span> oDlgDet TRANSPARENT<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> oDbf:<span style="color: #000000;">Fecha</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> oDlgDet<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> nNumero <span style="color: #0000ff;">ID</span> <span style="color: #000000;">104</span> <span style="color: #0000ff;">OF</span> oDlgDet <span style="color: #0000ff;">UPDATE</span><br />   oGet:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span> oDbf:<span style="color: #000000;">Ruc</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">109</span> <span style="color: #0000ff;">OF</span> oDlgDet <span style="color: #0000ff;">UPDATE</span>;<br />           <span style="color: #0000ff;">VALID</span> valCodCli<span style="color: #000000;">&#40;</span>oDlgDet, oDbf<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_HCYAN<br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">ID</span> <span style="color: #000000;">300</span> <span style="color: #0000ff;">OF</span> oDlgDet                 ;<br />           <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> aDatos := BrwProveedores<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"C"</span>, <span style="color: #000000;">2</span>, .F.<span style="color: #000000;">&#41;</span> ;<br />                   ,oDbf:<span style="color: #000000;">Ruc</span>   := IIF<span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>==<span style="color: #00C800;">nil</span>, space<span style="color: #000000;">&#40;</span><span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span>, <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">11</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />                   ,oDbf:<span style="color: #000000;">CodUbi</span>:= <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>      ;<br />                   ,cNomCli:= aDatos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>                   ;<br />                   ,cDirecc:= aDatos<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>                   ;<br />                   ,iif<span style="color: #000000;">&#40;</span>mcodi->de=<span style="color: #ff0000;">"*"</span>,colorear<span style="color: #000000;">&#40;</span>oGrupo, oDlgDet<span style="color: #000000;">&#41;</span>, descolorear<span style="color: #000000;">&#40;</span>oGrupo,nC1,nC2<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;  <span style="color: #B900B9;">//condicion para llamar a la funcion colorear</span><br />                   ,oDlgDet:<span style="color: #0000ff;">UPDATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>                      ;<br />                   ,oGet4:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> cNomCli <span style="color: #0000ff;">ID</span> <span style="color: #000000;">110</span> <span style="color: #0000ff;">OF</span> oDlgDet <span style="color: #0000ff;">UPDATE</span> TRANSPARENT<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> cDirecc <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlgDet <span style="color: #0000ff;">UPDATE</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet4 <span style="color: #0000ff;">VAR</span> oDbf:<span style="color: #000000;">CodVen</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">122</span> <span style="color: #0000ff;">OF</span> oDlgDet <span style="color: #0000ff;">UPDATE</span> ;<br />           <span style="color: #0000ff;">VALID</span> valCodVen<span style="color: #000000;">&#40;</span>oDlgDet, oDbf<span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">ID</span> <span style="color: #000000;">303</span> <span style="color: #0000ff;">OF</span> oDlgDet                     ;<br />           <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> aDatos := BrwPersona<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"V"</span>, <span style="color: #000000;">2</span>, .F.<span style="color: #000000;">&#41;</span>     ;<br />                   ,oDbf:<span style="color: #000000;">CodVen</span>:= IIF<span style="color: #000000;">&#40;</span>aDatos<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>==<span style="color: #00C800;">nil</span>, space<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>, aDatos<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>;<br />                   ,cVende := aDatos<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>                   ;<br />                   ,oDlgDet:<span style="color: #0000ff;">UPDATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>                      ;<br />                   ,oGet5:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> cVende <span style="color: #0000ff;">ID</span> <span style="color: #000000;">118</span> <span style="color: #0000ff;">OF</span> oDlgDet <span style="color: #0000ff;">UPDATE</span><br />   oGet:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet5 <span style="color: #0000ff;">VAR</span> cMnda <span style="color: #0000ff;">ID</span> <span style="color: #000000;">111</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">'!'</span> <span style="color: #0000ff;">OF</span> oDlgDet <span style="color: #0000ff;">UPDATE</span> ;<br />   <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span>cMnda==<span style="color: #ff0000;">'S'</span> .OR. cMnda==<span style="color: #ff0000;">'D'</span><span style="color: #000000;">&#41;</span><br />   IIF<span style="color: #000000;">&#40;</span> lModo, oGet5:<span style="color: #000000;">Enable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oGet5:<span style="color: #000000;">Disable</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oGet2 <span style="color: #0000ff;">VAR</span> nCambio <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlgDet <span style="color: #0000ff;">UPDATE</span> <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">'9.999'</span> ;<br />   <span style="color: #0000ff;">valid</span> Valcambio<span style="color: #000000;">&#40;</span>cmnda, ncambio, lmodo<span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlgDet <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">function</span> colorear<span style="color: #000000;">&#40;</span>oGroup, oDlg<span style="color: #000000;">&#41;</span><br />   bBLQ:=<span style="color: #000000;">&#123;</span>||aColor:=<span style="color: #000000;">&#123;</span>oGroup:<span style="color: #000000;">nClrPane</span>,oGroup:<span style="color: #000000;">nClrText</span><span style="color: #000000;">&#125;</span>,;<br />            aSize :=<span style="color: #000000;">&#123;</span>oGroup:<span style="color: #000000;">nWidth</span>  ,oGroup:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#125;</span>,;<br />            oGroup:<span style="color: #000000;">nWidth</span>:=<span style="color: #000000;">0</span>,oGroup:<span style="color: #000000;">nHeight</span>:=<span style="color: #000000;">0</span>,;<br />            oGroup:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />            oGroup:<span style="color: #000000;">SETCOLOR</span><span style="color: #000000;">&#40;</span>CLR_RED, CLR_YELLOW<span style="color: #000000;">&#41;</span>,;<br />            oGroup:<span style="color: #000000;">SETSIZE</span><span style="color: #000000;">&#40;</span>aSIZE<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,aSIZE<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>,;<br />            oGroup:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><br />            oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   EVAL<span style="color: #000000;">&#40;</span>bBLQ<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:3sqoj6nv]
colorear fondo de un control grupo
Prueba a llamar a oDlg:Refresh() despues de llamar a oDlg:Update()
colorear fondo de un control grupo
Hola Antonio estoy usando FVH13.01 y ahora ya no se pinta de colores como si lo hacia fwh8.11, que estoy haciendo mal
colorear fondo de un control grupo
Very good! [code=fw:18ydf6ca]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Testing Groups - \SAMPLES\TESTGRP.PRG AND TESTGRP.RC - Modified.</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"WColors.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oBrush, oFont, cText := <span style="color: #ff0000;">"Hello"</span>, oGroup<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\b</span>ricks.bmp"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">'MS Sans Serif'</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-10</span> BOLD<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Test"</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> cText <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> GROUP oGroup <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">COLOR</span> GetSysColor<span style="color: #000000;">&#40;</span> COLOR_HIGHLIGHT <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Modified Group Caption"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">103</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span><span style="color: #000000;">&#40;</span> COLOREAR<span style="color: #000000;">&#40;</span> oGroup, oDlg <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">BRUSH</span> oBrush<br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #00C800;">FUNCTION</span> COLOREAR<span style="color: #000000;">&#40;</span>oGroup, oDlg<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> bBLQ, aColor, aSize<br /><br />&nbsp; &nbsp;bBLQ := <span style="color: #000000;">&#123;</span> || aColor:=<span style="color: #000000;">&#123;</span>oGroup:<span style="color: #000000;">nClrPane</span>,oGroup:<span style="color: #000000;">nClrText</span><span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aSize :=<span style="color: #000000;">&#123;</span>oGroup:<span style="color: #000000;">nWidth</span> &nbsp;,oGroup:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGroup:<span style="color: #000000;">nWidth</span>:=<span style="color: #000000;">0</span>,oGroup:<span style="color: #000000;">nHeight</span>:=<span style="color: #000000;">0</span>, &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGroup:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGroup:<span style="color: #000000;">SETCOLOR</span><span style="color: #000000;">&#40;</span> CLR_HRED, CLR_HBLUE <span style="color: #000000;">&#41;</span>, &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGroup:<span style="color: #000000;">SETSIZE</span><span style="color: #000000;">&#40;</span>aSIZE<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,aSIZE<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>, &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oGroup:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;EVAL<span style="color: #000000;">&#40;</span>bBLQ<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:18ydf6ca] 
colorear hasta el final de una columna del xbrowse
estimados tengo un xbrowse con 5 registros y estoy pintando la primera columna de un color diferente al resto de las otras columnas, utiliso lo siguiente [code=fw:25gfx9us]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #000000;">&#123;</span> CLR_BLACK, RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">166</span>,<span style="color: #000000;">166</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:25gfx9us] solo me pinta los 5 registros pero el xbrowse tiene 20 lineas. la pregunta es: como se hace para que pinte el mismo color hasta el final de la columna del xbrowse? desde ya gracias. Armando
colorear hasta el final de una columna del xbrowse
Creo que es algo parecido a lo que ocurre con el pintado de las lineas horizontales Mira a ver si te sirve de algo <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26334#p144872">viewtopic.php?f=3&t=26334#p144872</a><!-- l -->
colorear hasta el final de una columna del xbrowse
Gracias por contestar, he probado lo que me sugieres pero no me sirve, lo que ando buscando es colorear la columna uno hasta el final, coloco una imagen para que me entiendan un poco mas. [img:1svmor97]http&#58;//imageshack&#46;com/a/img674/8424/9EYWhg&#46;jpg[/img:1svmor97] si alguien ha conseguido esto, agradecería que lo compartiera. Gracias Armando
colorear hasta el final de una columna del xbrowse
Te he entendido, pero actualmente el pintado de columnas, y pintado de lineas horizontales, solo se realiza hasta la fila que contiene datos (las fila vacias no las colorea) Algo asi? [url=http&#58;//postimage&#46;org/:1ahx6gbm][img:1ahx6gbm]http&#58;//s27&#46;postimg&#46;org/g87no0meb/Title81&#46;png[/img:1ahx6gbm][/url:1ahx6gbm] [url=http&#58;//postimage&#46;org/:1ahx6gbm][img:1ahx6gbm]http&#58;//s23&#46;postimg&#46;org/hlugw439n/Title82&#46;png[/img:1ahx6gbm][/url:1ahx6gbm] Que version de Fwh estas usando?
colorear hasta el final de una columna del xbrowse
gracias Cristobal, ocupo la versión 13.07 de fwh. sin ninguna modificación. he revisado el Method Paint pero no logro nada y ademas no encuentro el método de pintado de la columna. lo que necesito es lo que muestras, pero asumo que tengo que colocar registros en blanco en la tabla de paso en donde muestro los datos, para lograr el efecto. la verdad me gustaría realizar sin esta opción. saludos desde Chile Armando
colorear hasta el final de una columna del xbrowse
Armando, lo que ves es con array vacio {} Los metodos a modificar son Paint de XBrowse, PaintData de XBrwColumn y PaintCell de XBrwColumn Dime en qué puedo ayudarte
colorear hasta el final de una columna del xbrowse
uf, estuve hasta tarde viendo y tocando el código original de las clases y métodos que mencionas pero no lo consigo. voy a intentar sincronizar 2 xbrowses, uno con la columna "CODE" y otro con las descripciones. no se me ocurre otra forma de como hacerlo. Saludos desde Chile. Armando
colorear hasta el final de una columna del xbrowse
Cristobal estuve viendo TestUI, que es de tu autoría, viendo los métodos del xcbrowse por si pueda dar con el clavo, pero aun no encuentro lo que necesito. según veo en el makeUI haces mención al HBMK2.EXE, el cual no poseo, lo he cambiado a harbour.exe pero marca errores, así que no puedo ver el resultado en forma visual de tu trabajo. me podrías pasar un make de compilación para XHARBOUR ver. 1.2.3, para poder ver los ejemplos de este trabajo? o en su defecto, indicarme como compilar de forma correcta tus ejemplos? espero que me puedas ayudar un poco mas. Saludos desde Chile. Armando
colorear hasta el final de una columna del xbrowse
[quote="armando.lagunas":16d8x1im]Cristobal estuve viendo TestUI, que es de tu autoría, viendo los métodos del xcbrowse por si pueda dar con el clavo, pero aun no encuentro lo que necesito. según veo en el makeUI haces mención al HBMK2.EXE, el cual no poseo, lo he cambiado a harbour.exe pero marca errores, así que no puedo ver el resultado en forma visual de tu trabajo. me podrías pasar un make de compilación para XHARBOUR ver. 1.2.3, para poder ver los ejemplos de este trabajo? o en su defecto, indicarme como compilar de forma correcta tus ejemplos? espero que me puedas ayudar un poco mas. Saludos desde Chile. Armando[/quote:16d8x1im] Mira <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=28974&start=30#p167509">viewtopic.php?f=17&t=28974&start=30#p167509</a><!-- l --> No uso XHarbour, creo que solo lo usé hace mucho tiempo para probarlo, pero desde el principio solo he usado Harbour Puedes descargarte el Harbour desde la página de FW y probarlo Echale un vistazo a las modificaciones en XCBrowse Por aqui andare
colorear hasta el final de una columna del xbrowse
Por cierto, dime que errores te da
colorear texto en xbrowse SOLUCIONADO
hola foro, tengo un xbrowse con arreglo, una columna no visible del xbrowse es un campo logico, y segun sea verdadero ó falso quiero que el texto de todas las columnas sea de color diferente.. oBrw2:bClrStd := {|| if ( aDatos[oBrw2:KeyNo(),7], {CLR_BLACK,}, {CLR_BLUE,} )} no me va saludos pak-o
colorear texto en xbrowse SOLUCIONADO
yo mismo, solucionado, me faltaba un pequeño dato si funciona,,,, gracias[quote="Francisco Horta":207dyu0y]hola foro, tengo un xbrowse con arreglo, una columna no visible del xbrowse es un campo logico, y segun sea verdadero ó falso quiero que el texto de todas las columnas sea de color diferente.. oBrw2:bClrStd := {|| if ( aDatos[oBrw2:KeyNo(),7], {CLR_BLACK,}, {CLR_BLUE,} )} no me va saludos pak-o[/quote:207dyu0y]
colorear texto en xbrowse SOLUCIONADO
[code=fw:21h10eyo]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw2:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> oBrw2:<span style="color: #000000;">aRow</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#123;</span>CLR_BLACK,CLR_WHITE<span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span>CLR_BLUE,CLR_WHITE<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span></div>[/code:21h10eyo] OR [code=fw:21h10eyo]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw2:<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oBrw2:<span style="color: #000000;">oInvisibleCol</span>:<span style="color: #000000;">Value</span>, <span style="color: #000000;">&#123;</span> CLR_BLACK,CLR_WHITE<span style="color: #000000;">&#125;</span>, CLR_BLUE,CLR_WHITE<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span></div>[/code:21h10eyo] where oInvisibleCol is the column object of the invisible column of oBrw2
colorear texto en xbrowse SOLUCIONADO
gracias Rao, funciona saludos pak-o
colores degradados en buttonbmp
Hola a todos Se puede hacer eso con los buttonbmp... Se que se puede hacer con los buttonbar y xbrowse, pero con los buttonbmp? En el ejemplo testgrad no aparece un ejemplo para los buttonbmp... Salu2 Francis