messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2014-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Yo lo hago sobre toda la fila con la siguiente orden, en este ejemplo mirando stocks negativos : \n [code=fw:99xm7n8q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBrw:<span style=\"color: #000000;\">bClrStd</span>  :=<span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> Iif <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>cAlias<span style=\"color: #000000;\">&#41;</span>->STOCK<<span style=\"color: #000000;\">0</span>, CLR_RED, CLR_BLACK<span style=\"color: #000000;\">&#41;</span>, GetSysColor<span style=\"color: #000000;\">&#40;</span> COLOR_WINDOW <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:99xm7n8q]", "time": "16:17", "topic": "Color texto TXBrowse (Solucionado)", "username": "AngelSalom" } ]
Color texto TXBrowse (Solucionado)
[ { "date": "2014-08-11", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"AngelSalom\":3936jelm]Yo lo hago sobre toda la fila con la siguiente orden, en este ejemplo mirando stocks negativos : \n [code=fw:3936jelm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBrw:<span style=\"color: #000000;\">bClrStd</span>  :=<span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> Iif <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#40;</span>cAlias<span style=\"color: #000000;\">&#41;</span>->STOCK<<span style=\"color: #000000;\">0</span>, CLR_RED, CLR_BLACK<span style=\"color: #000000;\">&#41;</span>, GetSysColor<span style=\"color: #000000;\">&#40;</span> COLOR_WINDOW <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:3936jelm][/quote:3936jelm]\n\n\nHola gracias a ambos, pruebo y les comento, solo quiero que marque de rojo el texto, por el importe negativo.\n\nGracias de nuevo y saludos a ambos.\n\nAtte: Adrian C. C.", "time": "17:18", "topic": "Color texto TXBrowse (Solucionado)", "username": "ACC69" } ]
Color texto TXBrowse (Solucionado)
[ { "date": "2014-08-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba haber si te sirve, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19153&start=0&hilit=color+de+celda\">viewtopic.php?f=6&t=19153&start=0&hilit=color+de+celda</a><!-- l -->\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22133&p=149007&hilit=color+en+celda#p149007\">viewtopic.php?f=3&t=22133&p=149007&hilit=color+en+celda#p149007</a><!-- l -->", "time": "03:12", "topic": "Color texto TXBrowse (Solucionado)", "username": "joseluisysturiz" } ]
Color texto TXBrowse (Solucionado)
[ { "date": "2014-08-12", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"joseluisysturiz\":1p2pdjf5]Prueba haber si te sirve, saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19153&start=0&hilit=color+de+celda\">viewtopic.php?f=6&t=19153&start=0&hilit=color+de+celda</a><!-- l -->\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=22133&p=149007&hilit=color+en+celda#p149007\">viewtopic.php?f=3&t=22133&p=149007&hilit=color+en+celda#p149007</a><!-- l -->[/quote:1p2pdjf5]\n\n\nGracias Jose Luis, por el link, les juro que no soy muy bueno, para el combinado de colores en la clase de TXBrowse que aun no doy con ello, en TWBrowse de Hernan si me los da, pero en TXBrowse , nada de nada.\n\nGracias de nuevo y saludos Jose Luis.\n\nAtte: Adrian C. C.", "time": "16:22", "topic": "Color texto TXBrowse (Solucionado)", "username": "ACC69" } ]
Color texto TXBrowse (Solucionado)
[ { "date": "2014-08-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Adrian.\nEsto me funciona, y de hecho lo tengo en un programa de contabilidad.\n[code=fw:15zxn258]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span>:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>oBrw:<span style=\"color: #000000;\">cAlias</span><span style=\"color: #000000;\">&#41;</span>->SaldoAct<<span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_RED,CLR_WHITE<span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_WHITE<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br /> </div>[/code:15zxn258]\nPruebalo. Es muy similar al ejemplo que te ofrece Cristobal, e identico al de Vital. El color CLR_WHITE puedes cambiarlo segun tus necesidades.\nSi aun no te funciona, deberias postear tu codigo donde creas el xbrowse y la condicion de colores.\nSaludos.", "time": "18:30", "topic": "Color texto TXBrowse (Solucionado)", "username": "FranciscoA" } ]
Color texto TXBrowse (Solucionado)
[ { "date": "2014-08-12", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"FranciscoA\":2sotl6pr]Hola Adrian.\nEsto me funciona, y de hecho lo tengo en un programa de contabilidad.\n[code=fw:2sotl6pr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span>:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>oBrw:<span style=\"color: #000000;\">cAlias</span><span style=\"color: #000000;\">&#41;</span>->SaldoAct<<span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_RED,CLR_WHITE<span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_WHITE<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br /> </div>[/code:2sotl6pr]\nPruebalo. Es muy similar al ejemplo que te ofrece Cristobal, e identico al de Vital. El color CLR_WHITE puedes cambiarlo segun tus necesidades.\nSi aun no te funciona, deberias postear tu codigo donde creas el xbrowse y la condicion de colores.\nSaludos.[/quote:2sotl6pr]\n\n\nHola Ing. Francisco gracias por responder, es asi como lo estoy haciendo, pero no me sale el color del fondo amarillo, opaco, y me sale color blanco, pasa que me confunde con estas intrucciones de nRGB(), RGB() y comandos CLR_HRED,CLR_WHITE}, {CLR_BLACK,CLR_WHITE, es ahi mi confusion . Bueno aparte de eso aun me falta mucho por explotar la clase TXBrowse y tener la facilidad hasta en los colores, que por cierto ya me pinta bien el color del texto deseado, pero el fondo me lo deja en blanco en Cargo y Abono.\n\nAdjunto la imagen: \n\n[img:2sotl6pr]http&#58;//s1286&#46;photobucket&#46;com/user/ACC69/media/ColorTesxtoNeg_zpsa395ba9a&#46;jpg&#46;html[/img:2sotl6pr]\n[url:2sotl6pr]http&#58;//s1286&#46;photobucket&#46;com/user/ACC69/media/ColorTesxtoNeg_zpsa395ba9a&#46;jpg&#46;html[/url:2sotl6pr]\n\n[code=fw:2sotl6pr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// Colores de texto y fondo de texto</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrHeader</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> nAZUL, nFONDO1, <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// Color para Header</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrFooter</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_HRED,CLR_WHITE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Color para Footer</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrStd</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, &nbsp;<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span>, nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">248</span>,<span style=\"color: #000000;\">220</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// Colores para lineas normales de fondo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>S13<span style=\"color: #000000;\">&#41;</span>->MV_CARG < <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_HRED,CLR_WHITE<span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_WHITE<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// Color rojo para importe negativo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>S13<span style=\"color: #000000;\">&#41;</span>->MV_ABON < <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_HRED,CLR_WHITE<span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_WHITE<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">// Color rojo para importe negativo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrSel</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> nRGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span>, aGradBarSel <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// para barra de linea selecc cuando el control no tiene el foco</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrSelFocus</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, aGradBarSelFocus <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">// para barra de linea selecc cuando el control tiene el foco</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lContrastClr</span> &nbsp; &nbsp; &nbsp; &nbsp;:= .F. &nbsp;<span style=\"color: #B900B9;\">//para que no cambie color de texto automaticamente segun intensidad del fondo</span></div>[/code:2sotl6pr]\n\nSaludos y buen dia. Ing. Francisco .\n\nAtte: Adrian C. C.", "time": "22:35", "topic": "Color texto TXBrowse (Solucionado)", "username": "ACC69" } ]
Color texto TXBrowse (Solucionado)
[ { "date": "2014-08-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Adrian,\nCambia esto:\n[code=fw:3g4sfcdp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>S13<span style=\"color: #000000;\">&#41;</span>->MV_CARG < <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_HRED,CLR_WHITE<span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_WHITE<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span></div>[/code:3g4sfcdp]\npor esto:\n[code=fw:3g4sfcdp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>S13<span style=\"color: #000000;\">&#41;</span>->MV_CARG < <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_HRED,nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">248</span>,<span style=\"color: #000000;\">220</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">248</span>,<span style=\"color: #000000;\">220</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></div>[/code:3g4sfcdp]\nSaludos.", "time": "02:10", "topic": "Color texto TXBrowse (Solucionado)", "username": "FranciscoA" } ]
Color texto TXBrowse (Solucionado)
[ { "date": "2014-08-13", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"FranciscoA\":p159ep57]Adrian,\nCambia esto:\n[code=fw:p159ep57]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span>    := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>S13<span style=\"color: #000000;\">&#41;</span>->MV_CARG < <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_HRED,CLR_WHITE<span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_WHITE<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span></div>[/code:p159ep57]\npor esto:\n[code=fw:p159ep57]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span>    := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#40;</span>S13<span style=\"color: #000000;\">&#41;</span>->MV_CARG < <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_HRED,nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">248</span>,<span style=\"color: #000000;\">220</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,nRGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">248</span>,<span style=\"color: #000000;\">220</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></div>[/code:p159ep57]\nSaludos.[/quote:p159ep57]\n\n\nGracias Francisco funciono .! ese detalle de la combinacion de colores . ufs.\n\nSaludos y nuevamente gracias y a los demas compañeros que me ayudaron.\n\nAtte: Adrian C. C.", "time": "15:26", "topic": "Color texto TXBrowse (Solucionado)", "username": "ACC69" } ]
Color texto TXBrowse (Solucionado)
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos.\nHe visto en el foro que este tema se ha tratado alguna vez, pero no doy con una solución óptima.\nEstoy usando la funcion SetDlgGradient para definir el color de fondo de los diálogos, con el resultado deseado, a excepción de los textos extáticos incluidos dentro de foldres.\n[img:2wczy8gb]http&#58;//imageshack&#46;com/a/img845/9420/gjzma&#46;jpg[/img:2wczy8gb]\nAlguna solución para el color de fondo de los textos.\nSon textos estáticos, y no se usa REDEFINE SAY, y no es una solución deseable el tener que definir los SAYS.\n[code=fw:2wczy8gb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />SetDlgGradient<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">199</span>, <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">237</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">237</span>, <span style=\"color: #000000;\">242</span>, <span style=\"color: #000000;\">248</span> <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 />...<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CtaAux\"</span><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">FOLDER</span> oFld ;<br />               <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4001</span> ;<br />               <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />               <span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #ff0000;\">\"&1-Principal\"</span>,<span style=\"color: #ff0000;\">\"&2-Identificación\"</span>, <span style=\"color: #ff0000;\">\"&3-Est.Balances\"</span>;<br />               <span style=\"color: #0000ff;\">DIALOGS</span> <span style=\"color: #ff0000;\">\"CtaAux1\"</span> ,<span style=\"color: #ff0000;\">\"CtaAux2\"</span>, <span style=\"color: #ff0000;\">\"CtaAux3\"</span><br /><br />   <span style=\"color: #B900B9;\">//--Principal</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oData:<span style=\"color: #000000;\">EmpCod</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">WHEN</span> .F.<br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oData:<span style=\"color: #000000;\">MayCod</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">601</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">WHEN</span> lAdd<br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oData:<span style=\"color: #000000;\">CtaCod</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">602</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">WHEN</span> lAdd<br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oData:<span style=\"color: #000000;\">CtaDes</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">603</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">1</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>, lSave := .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// OK</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">2</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>, lSave := .F. <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2wczy8gb]\nEl texto en el fichero RC está definido de la siguiente forma\n[code=fw:2wczy8gb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">CONTROL <span style=\"color: #ff0000;\">\"Empresa\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, 0x00000000, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">8</span>, WS_EX_TRANSPARENT</div>[/code:2wczy8gb]\nFWH14.02 HB3.2.0 Bcc5.82", "time": "10:05", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Biel EA6DD" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Biel,\n\nPrueba a quitar este atributo del RC: WS_EX_TRANSPARENT\n\nCámbialo por WS_VISIBLE", "time": "10:14", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Antonio Linares" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "[code=fw:ln1gzqdd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">CONTROL <span style=\"color: #ff0000;\">\"Empresa\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, WS_VISIBLE, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">8</span></div>[/code:ln1gzqdd]\nMismo resultado", "time": "10:22", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Biel EA6DD" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Emplo autocontenido para compilar en carpeta samples, por si quieres probar algún parámetro adicional.\n[code=fw:1i61i9ua]<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: #00C800;\">FUNCTION</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">LOCAL</span> oDlg, oFld, aFld,lAdd ,lSave<br />   SetDlgGradient<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">199</span>, <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">237</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">237</span>, <span style=\"color: #000000;\">242</span>, <span style=\"color: #000000;\">248</span> <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 />   aFld:=<span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">4300</span>,<span style=\"color: #000000;\">121</span>,<span style=\"color: #ff0000;\">\"Descripción        \"</span><span style=\"color: #000000;\">&#125;</span><br />   lAdd:=.f.<br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CtaAux\"</span> <br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">FOLDER</span> oFld ;<br />               <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4001</span> ;<br />               <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />               <span style=\"color: #0000ff;\">PROMPTS</span> <span style=\"color: #ff0000;\">\"&1-Principal\"</span>,<span style=\"color: #ff0000;\">\"&2-Identificación\"</span>, <span style=\"color: #ff0000;\">\"&3-Est.Balances\"</span>;<br />               <span style=\"color: #0000ff;\">DIALOGS</span> <span style=\"color: #ff0000;\">\"CtaAux1\"</span> ,<span style=\"color: #ff0000;\">\"CtaAux2\"</span>, <span style=\"color: #ff0000;\">\"CtaAux3\"</span><br />   <span style=\"color: #B900B9;\">//--Principal</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aFld<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">600</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">WHEN</span> .F.<br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aFld<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">601</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">WHEN</span> lAdd<br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aFld<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">602</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">WHEN</span> lAdd<br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> aFld<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">603</span> <span style=\"color: #0000ff;\">OF</span> oFld:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">1</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>, lSave := .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// OK</span><br />   <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">2</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>, lSave := .F. <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br />   <span style=\"color: #00C800;\">IF</span> lSave<br />      <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'ok'</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">RETURN</span>  <span style=\"color: #00C800;\">nil</span></div>[/code:1i61i9ua]\n\nRC\n[code=fw:1i61i9ua]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">24</span> <span style=\"color: #ff0000;\">\".<span style=\"color: #000000;\">\\W</span>inXP<span style=\"color: #000000;\">\\W</span>indowsXP.Manifest\"</span><br /><br />CTAAUX DIALOGEX DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">346</span>, <span style=\"color: #000000;\">226</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"Ficha de empresas\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #ff0000;\">\"MS Shell Dlg\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />  CONTROL <span style=\"color: #ff0000;\">\"OK\"</span>, IDOK, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">204</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">15</span><br />  CONTROL <span style=\"color: #ff0000;\">\"Cancel\"</span>, IDCANCEL, <span style=\"color: #ff0000;\">\"Button\"</span>, WS_TABSTOP, <span style=\"color: #000000;\">172</span>, <span style=\"color: #000000;\">204</span>, <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">15</span><br />  CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">4001</span>, <span style=\"color: #ff0000;\">\"SysTabControl32\"</span>, WS_VISIBLE, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">276</span>, <span style=\"color: #000000;\">144</span><br /><span style=\"color: #000000;\">&#125;</span><br /><br />CTAAUX1 DIALOGEX DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">246</span>, <span style=\"color: #000000;\">134</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_CHILD|DS_3DLOOK|WS_VISIBLE<br />EXSTYLE WS_EX_TRANSPARENT<br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #ff0000;\">\"MS Shell Dlg\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />  CONTROL <span style=\"color: #ff0000;\">\"Edit\"</span>, <span style=\"color: #000000;\">600</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style=\"color: #000000;\">56</span>, <span style=\"color: #000000;\">16</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">12</span><br />  CONTROL <span style=\"color: #ff0000;\">\"Edit\"</span>, <span style=\"color: #000000;\">601</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style=\"color: #000000;\">56</span>, <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">12</span><br />  CONTROL <span style=\"color: #ff0000;\">\"Edit\"</span>, <span style=\"color: #000000;\">602</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style=\"color: #000000;\">56</span>, <span style=\"color: #000000;\">48</span>, <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">12</span><br />  CONTROL <span style=\"color: #ff0000;\">\"Edit\"</span>, <span style=\"color: #000000;\">603</span>, <span style=\"color: #ff0000;\">\"Edit\"</span>, ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, <span style=\"color: #000000;\">56</span>, <span style=\"color: #000000;\">64</span>, <span style=\"color: #000000;\">156</span>, <span style=\"color: #000000;\">12</span><br />  CONTROL <span style=\"color: #ff0000;\">\"Empresa\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, WS_VISIBLE, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">8</span><br />  CONTROL <span style=\"color: #ff0000;\">\"Mayor\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, WS_GROUP, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">8</span>, WS_EX_TRANSPARENT<br />  CONTROL <span style=\"color: #ff0000;\">\"Sub.Cuenta\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, WS_GROUP, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">52</span>, <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">8</span><br />  CONTROL <span style=\"color: #ff0000;\">\"Descripción\"</span>, <span style=\"color: #000000;\">-1</span>, <span style=\"color: #ff0000;\">\"Static\"</span>, WS_GROUP, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">68</span>, <span style=\"color: #000000;\">36</span>, <span style=\"color: #000000;\">8</span><br /><span style=\"color: #000000;\">&#125;</span><br /><br />CTAAUX2 DIALOGEX DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">246</span>, <span style=\"color: #000000;\">134</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_CHILD|DS_3DLOOK|WS_VISIBLE<br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #ff0000;\">\"MS Shell Dlg\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />  <br /><span style=\"color: #000000;\">&#125;</span><br /><br />CTAAUX3 DIALOGEX DISCARDABLE <span style=\"color: #000000;\">6</span>, <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">246</span>, <span style=\"color: #000000;\">134</span><br /><span style=\"color: #0000ff;\">STYLE</span> WS_CHILD|DS_3DLOOK|WS_VISIBLE<br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #ff0000;\">\"MS Shell Dlg\"</span><br /><span style=\"color: #000000;\">&#123;</span><br />  <br /><span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:1i61i9ua]", "time": "10:48", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Biel EA6DD" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Biel,\n\ngracias por el ejemplo. Estamos haciendo pruebas a ver por qué ocurre eso...", "time": "12:43", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Antonio Linares" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Biel,\n\nTe envio por email la librería FiveHC.lib modificada para que la pruebes, gracias <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "13:50", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Antonio Linares" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola:\nUn apunte a mi me estuvo ocurriendo los mismo hasta que al Static Text le puse el atributo de Group en true. dentro de las propiedades del control, trabajando con el editor de recursos del visual studio 2008.\nUn saludo\nJosé Luis", "time": "16:18", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "groiss" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-15", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"groiss\":1nsebrxp]Hola:\nUn apunte a mi me estuvo ocurriendo los mismo hasta que al Static Text le puse el atributo de Group en true. dentro de las propiedades del control, trabajando con el editor de recursos del visual studio 2008.\nUn saludo\nJosé Luis[/quote:1nsebrxp]\nHola José Luis,\nen los Static Text usados, alguno de ellos tienen WS_GROUP, y se visualizan mal. Puedes ponernos la linea completa del RC de un Static Text que se visualice bien dentro de un folder, gracias.", "time": "08:25", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Biel EA6DD" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Con la librería modificada que le he enviado a Biel ya se visualizan bien <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nLo que ocurre es que estabamos a punto de publicar FWH 14.04 y este cambio nos hace revisar todo y asegurarnos de que nada esté mal. Afortunadamente ha sido localizado antes de publicarse la nueva versión.\n\nDe momento todo parece estar bien, tan sólo hay un fallo en TFolderEx que estamos trabajando para solucionar.\n\nSi alguien quiere probar la nueva FiveHC.lib para Borland modificada, que conteste a este mensaje, porque solo enviaremos algunas (sino me veo enviandola a muchos) <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> y que sea usuario de FWH 14.02 gracias", "time": "11:30", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Antonio Linares" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2014-05-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Solucionado y funcionando correctamente, finalmente no era un bug de codigo sino de sincronización con el repositorio de FWH <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nDe todas formas si varios quereis probarla, y que tengais la 14.02, se agradece <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "16:56", "topic": "Color texto estático en Folder usando SetDlgGradient", "username": "Antonio Linares" } ]
Color texto estático en Folder usando SetDlgGradient
[ { "date": "2020-11-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Guys,\nIs possible to define a color text/back to all BTNBMP objetcs? \nMight something like this: TBtnBmp():cClrText := CLR_WHITE Is it possible?", "time": "21:42", "topic": "Color to BTNBMP objects", "username": "vilian" } ]
Color to BTNBMP objects
[ { "date": "2016-03-19", "forum": "FiveWin for Harbour/xHarbour", "text": "I need to create the rgb equivalent of a color with opacity.\n\nCristobal and I have been trying to recreate the colors used in FW's menus. I discovered that Windows apps (those that come with Windows, like Notepad) didn't use standard windows colors, like COLOR_MENU. But after much searching I found that they are adjusting the transparency of the color to create a new RGB color.\n\nSo, in order to keep using standard windows colors for interfaces, I would like to just change the opacity (transparency, luminosity) like the Windows apps do. Does anyone know how to do this?\n\nI found this on a Microsoft site:\n\n---------------------------------\n[b:3nxvoilk]Using other colors[/b:3nxvoilk]\n\nWhile the Windows theme defines a comprehensive set of theme parts, you may find that your program needs colors that aren't defined in the theme file. [b:3nxvoilk]While you could hardwire such colors, a better approach is to derive colors from the theme or system colors.[/b:3nxvoilk] Strategically using this approach gives you all the benefits of using theme and system colors, but with much more flexibility.\n\nFor example, suppose you need a window background that is darker than the theme window background color. In the HSL color space, having a darker color means a color with a lower luminosity. Thus, you can derive a darker window background color using the following steps:\n•Obtain the window background theme color RGB.\n•Convert the RGB to its HSL value.\n•Reduce the luminosity value (by, say, 20 percent).\n•Convert back to RGB values.\n\n[url:3nxvoilk]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/desktop/dn742482(v=vs&#46;85)&#46;aspx[/url:3nxvoilk]\n------------------------------------------\n\nAny ideas on how to do this?\n\nJames", "time": "18:08", "topic": "Color with Transparency", "username": "James Bott" } ]
Color with Transparency
[ { "date": "2016-03-19", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nHere you have some C functions that you could use:\n\n[url:1f45l438]https&#58;//www&#46;cs&#46;rit&#46;edu/~ncs/color/t_convert&#46;html[/url:1f45l438]\n\n[code=fw:1f45l438]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">RGB <span style=\"color: #0000ff;\">to</span> HSV & HSV <span style=\"color: #0000ff;\">to</span> RGB<br /><br />The Hue/Saturation/Value model was created by A. R. Smith in <span style=\"color: #000000;\">1978</span>. It is based <span style=\"color: #0000ff;\">on</span> such intuitive <span style=\"color: #0000ff;\">color</span> characteristics as tint, shade and tone <span style=\"color: #000000;\">&#40;</span>or family, purety and intensity<span style=\"color: #000000;\">&#41;</span>. The coordinate system is cylindrical, and the colors are defined inside a hexcone. The hue value H runs <span style=\"color: #0000ff;\">from</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">360</span>º. The saturation S is the degree <span style=\"color: #0000ff;\">of</span> strength or purity and is <span style=\"color: #0000ff;\">from</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">1</span>. Purity is how much white is added <span style=\"color: #0000ff;\">to</span> the <span style=\"color: #0000ff;\">color</span>, so S=<span style=\"color: #000000;\">1</span> makes the purest <span style=\"color: #0000ff;\">color</span> <span style=\"color: #000000;\">&#40;</span>no white<span style=\"color: #000000;\">&#41;</span>. Brightness V also ranges <span style=\"color: #0000ff;\">from</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #0000ff;\">where</span> <span style=\"color: #000000;\">0</span> is the black.<br /><br />There is no transformation matrix <span style=\"color: #00C800;\">for</span> RGB/HSV conversion, but the algorithm follows:<br /><br /><span style=\"color: #B900B9;\">// r,g,b values are from 0 to 1</span><br /><span style=\"color: #B900B9;\">// h = [0,360], s = [0,1], v = [0,1]</span><br /><span style=\"color: #B900B9;\">//&nbsp; &nbsp; &nbsp; if s == 0, then h = -1 (undefined)</span><br />void RGBtoHSV<span style=\"color: #000000;\">&#40;</span> float r, float g, float b, float *h, float *s, float *v <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; float <span style=\"color: #0000ff;\">min</span>, <span style=\"color: #0000ff;\">max</span>, delta;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">min</span> = <span style=\"color: #0000ff;\">MIN</span><span style=\"color: #000000;\">&#40;</span> r, g, b <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">max</span> = <span style=\"color: #0000ff;\">MAX</span><span style=\"color: #000000;\">&#40;</span> r, g, b <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; *v = <span style=\"color: #0000ff;\">max</span>;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// v</span><br />&nbsp; &nbsp; delta = <span style=\"color: #0000ff;\">max</span> - <span style=\"color: #0000ff;\">min</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #0000ff;\">max</span> != <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; *s = delta / <span style=\"color: #0000ff;\">max</span>;&nbsp; &nbsp;&nbsp; &nbsp; <span style=\"color: #B900B9;\">// s</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">else</span> <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// r = g = b = 0&nbsp; &nbsp; &nbsp; &nbsp; // s = 0, v is undefined</span><br />&nbsp; &nbsp; &nbsp; &nbsp; *s = <span style=\"color: #000000;\">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; *h = <span style=\"color: #000000;\">-1</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span>;<br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> r == <span style=\"color: #0000ff;\">max</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; *h = <span style=\"color: #000000;\">&#40;</span> g - b <span style=\"color: #000000;\">&#41;</span> / delta;&nbsp;&nbsp; &nbsp; <span style=\"color: #B900B9;\">// between yellow & magenta</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">else</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> g == <span style=\"color: #0000ff;\">max</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; *h = <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">&#40;</span> b - r <span style=\"color: #000000;\">&#41;</span> / delta;&nbsp;<span style=\"color: #B900B9;\">// between cyan & yellow</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; *h = <span style=\"color: #000000;\">4</span> + <span style=\"color: #000000;\">&#40;</span> r - g <span style=\"color: #000000;\">&#41;</span> / delta;&nbsp;<span style=\"color: #B900B9;\">// between magenta & cyan</span><br />&nbsp; &nbsp; *h *= <span style=\"color: #000000;\">60</span>;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// degrees</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> *h < <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; *h += <span style=\"color: #000000;\">360</span>;<br /><span style=\"color: #000000;\">&#125;</span><br />void HSVtoRGB<span style=\"color: #000000;\">&#40;</span> float *r, float *g, float *b, float h, float s, float v <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; int i;<br />&nbsp; &nbsp; float f, p, q, t;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> s == <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// achromatic (grey)</span><br />&nbsp; &nbsp; &nbsp; &nbsp; *r = *g = *b = v;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span>;<br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; h /= <span style=\"color: #000000;\">60</span>;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// sector 0 to 5</span><br />&nbsp; &nbsp; i = floor<span style=\"color: #000000;\">&#40;</span> h <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; f = h - i;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// factorial part of h</span><br />&nbsp; &nbsp; p = v * <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> - s <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; q = v * <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> - s * f <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; t = v * <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> - s * <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> - f <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">switch</span><span style=\"color: #000000;\">&#40;</span> i <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">0</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">*r</span> = v;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *g = t;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *b = p;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">1</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">*r</span> = q;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *g = v;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *b = p;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">2</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">*r</span> = p;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *g = v;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *b = t;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">3</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">*r</span> = p;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *g = q;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *b = v;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> <span style=\"color: #000000;\">4</span>:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">*r</span> = t;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *g = p;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *b = v;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">break</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">default</span>:&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// case 5:</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *r = v;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *g = p;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *b = q;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">break</span>;<br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #000000;\">&#125;</span></div>[/code:1f45l438]", "time": "18:17", "topic": "Color with Transparency", "username": "Antonio Linares" } ]
Color with Transparency
[ { "date": "2016-03-19", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nFWH provides a function LightColor( nScale, nRGBColor ) --> nRGBLightColor\n\nThere are samples of its use in Class TGraph", "time": "22:19", "topic": "Color with Transparency", "username": "Antonio Linares" } ]
Color with Transparency
[ { "date": "2016-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nThanks for the feedback. I am still working on this. I am also trying to convert the color number returned from the RGB() function back to RGB values. I found this example on the web:\n\n[code=fw:hd3hvq1e]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #ff0000;\">'assumes lReturnValue contains the RGB color from GetSysColor<br /><br />    Dim lBlue As Long<br />    Dim lGreen As Long<br />    Dim lRed As Long<br />    <br />    lBlue = (lReturnValue <span style=\"color: #000000;\">\\ </span>65536) And &HFF&<br />    lGreen = (lReturnValue <span style=\"color: #000000;\">\\ </span>256) And &HFF&<br />    lRed = lReturnValue And &HFF&<br /><br />Source: [url:hd3hvq1e]http&#58;//www&#46;xtremevbtalk&#46;com/interface-and-graphics/164878-getsyscolor-rgb&#46;html[/url:hd3hvq1e]<br /></span></div>[/code:hd3hvq1e]\nBut I don't know how to convert this to FWH. I don't know what &HFF& stands for and/or how to implement it in FW. Anyone?\n\nJames", "time": "15:41", "topic": "Color with Transparency", "username": "James Bott" } ]
Color with Transparency
[ { "date": "2016-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok, I have found the answer. This is how to use the number returned from the RGB() function to get back the Red, Green, and Blue values.\n\nJames\n\n[code=fw:b1vrqduv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">local</span> nRGBColor := rgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">204</span>,<span style=\"color: #000000;\">232</span>,<span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span><br />   <br />   <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span> nAnd<span style=\"color: #000000;\">&#40;</span> nRGBColor , <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Red\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span> nAnd<span style=\"color: #000000;\">&#40;</span> nRGBColor/<span style=\"color: #000000;\">256</span>, <span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Green\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #0000ff;\">msgInfo</span><span style=\"color: #000000;\">&#40;</span> nAnd<span style=\"color: #000000;\">&#40;</span> nRGBColor/<span style=\"color: #000000;\">65536</span>, <span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Blue\"</span> <span style=\"color: #000000;\">&#41;</span><br />   <br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:b1vrqduv]", "time": "17:21", "topic": "Color with Transparency", "username": "James Bott" } ]
Color with Transparency
[ { "date": "2016-03-21", "forum": "FiveWin for Harbour/xHarbour", "text": "very good <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "17:53", "topic": "Color with Transparency", "username": "Antonio Linares" } ]
Color with Transparency
[ { "date": "2016-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2xetqk4n]•Convert the RGB to its HSL value.\n•Reduce the luminosity value (by, say, 20 percent).\n•Convert back to RGB values.\n[/quote:2xetqk4n]\n\n[code=fw:2xetqk4n]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />aHSL &nbsp;:= RGBTOHSL<span style=\"color: #000000;\">&#40;</span> nRGBColor <span style=\"color: #000000;\">&#41;</span><br />aHSL<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, aHSL<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> - <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">&#41;</span><br />nRGBNew := HSLTORGB<span style=\"color: #000000;\">&#40;</span> aHSL <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp;</div>[/code:2xetqk4n]\nThese functions are available in the FWH 1603 under release.", "time": "00:56", "topic": "Color with Transparency", "username": "nageswaragunupudi" } ]
Color with Transparency
[ { "date": "2016-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Nages,\n\nGreat, I am anxious to try them.\n\n[quote:akmkyukp]These functions are available in the FWH 1603 under release.[/quote:akmkyukp]\n\nDid you mean, \"not yet released,\" or \"already released?\"\n\nJames", "time": "15:27", "topic": "Color with Transparency", "username": "James Bott" } ]
Color with Transparency
[ { "date": "2016-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nnot yet released", "time": "17:01", "topic": "Color with Transparency", "username": "Antonio Linares" } ]
Color with Transparency
[ { "date": "2015-07-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nfor my new Colorpicker, I would like to include some color-calculations\n\nthe only useful tool I found in the Internet shows a list to convert.\nIs it possible, to add these calculations ?\nA other question : are these values useful for us ?\n\n[img:ir2ybndh]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/RGBCalc1&#46;jpg[/img:ir2ybndh]\n\nfound [size=150:ir2ybndh]RGB zo HEX[/size:ir2ybndh] calculation\n\n[color=#0000FF:ir2ybndh][b:ir2ybndh]function rgbToHex(R,G,B) {return toHex(R)+toHex(G)+toHex(B)}\nfunction toHex(n) {\n n = parseInt(n,10);\n if (isNaN(n)) return \"00\";\n n = Math.max(0,Math.min(n,255));\n return \"0123456789ABCDEF\".charAt((n-n%16)/16)\n + \"0123456789ABCDEF\".charAt(n%16);\n}[/b:ir2ybndh][/color:ir2ybndh]\n\nNotes: The script parses the input R, G, B values as integers using the standard function parseInt(string,10); the second, optional argument 10 specifies that the value must be parsed as a decimal number. (If we omit the 10, the script would still work, except for some input values starting with 0, e.g. 009 or 011, where it might incorrectly assume octal input.) We use the standard functions Math.min and Math.max to make sure that the input values are within the range from 0 to 255. The interested reader might notice that a nicer way to convert n to a hexadecimal string is to use n.toString(16); however, the above code was written back in the ancient era when JavaScript 1.0 was still around, and the construct n.toString(16) won't work in JavaScript 1.0! \n\n[size=150:ir2ybndh]The formulas I found [/size:ir2ybndh]\n\n[size=150:ir2ybndh]RGB —> HSL[/size:ir2ybndh]\n \nvar_R = ( R / 255 ) //RGB from 0 to 255\nvar_G = ( G / 255 )\nvar_B = ( B / 255 )\n\nvar_Min = min( var_R, var_G, var_B ) //Min. value of RGB\nvar_Max = max( var_R, var_G, var_B ) //Max. value of RGB\ndel_Max = var_Max - var_Min //Delta RGB value\n\nL = ( var_Max + var_Min ) / 2\n\nif ( del_Max == 0 ) //This is a gray, no chroma...\n{\n H = 0 //HSL results from 0 to 1\n S = 0\n }\nelse //Chromatic data...\n{\n if ( L < 0.5 ) S = del_Max / ( var_Max + var_Min )\n else S = del_Max / ( 2 - var_Max - var_Min )\n\n del_R = ( ( ( var_Max - var_R ) / 6 ) + ( del_Max / 2 ) ) / del_Max\n del_G = ( ( ( var_Max - var_G ) / 6 ) + ( del_Max / 2 ) ) / del_Max\n del_B = ( ( ( var_Max - var_B ) / 6 ) + ( del_Max / 2 ) ) / del_Max\n\n if ( var_R == var_Max ) H = del_B - del_G\n else if ( var_G == var_Max ) H = ( 1 / 3 ) + del_R - del_B\n else if ( var_B == var_Max ) H = ( 2 / 3 ) + del_G - del_R\n\n if ( H < 0 ) H += 1\n if ( H > 1 ) H -= 1\n}\n\n\n[size=150:ir2ybndh]RGB -> HSV[/size:ir2ybndh]\n\nvar_R = ( R / 255 ) //RGB from 0 to 255\nvar_G = ( G / 255 )\nvar_B = ( B / 255 )\n\nvar_Min = min( var_R, var_G, var_B ) //Min. value of RGB\nvar_Max = max( var_R, var_G, var_B ) //Max. value of RGB\ndel_Max = var_Max - var_Min //Delta RGB value \n\nV = var_Max\n\nif ( del_Max == 0 ) //This is a gray, no chroma...\n{\n H = 0 //HSV results from 0 to 1\n S = 0\n }\nelse //Chromatic data...\n{\n S = del_Max / var_Max\n\n del_R = ( ( ( var_Max - var_R ) / 6 ) + ( del_Max / 2 ) ) / del_Max\n del_G = ( ( ( var_Max - var_G ) / 6 ) + ( del_Max / 2 ) ) / del_Max\n del_B = ( ( ( var_Max - var_B ) / 6 ) + ( del_Max / 2 ) ) / del_Max\n\n if ( var_R == var_Max ) H = del_B - del_G\n else if ( var_G == var_Max ) H = ( 1 / 3 ) + del_R - del_B\n else if ( var_B == var_Max ) H = ( 2 / 3 ) + del_G - del_R\n\n if ( H < 0 ) H += 1\n if ( H > 1 ) H -= 1\n}\n \n[size=150:ir2ybndh]RGB -> CMY[/size:ir2ybndh]\n\n//RGB values from 0 to 255\n//CMY results from 0 to 1\n\nC = 1 - ( R / 255 )\nM = 1 - ( G / 255 )\nY = 1 - ( B / 255 )\n\nbest regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "09:34", "topic": "Color-calculations RGB to Hex, Html .... ???", "username": "ukoenig" } ]
Color-calculations RGB to Hex, Html .... ???
[ { "date": "2008-12-30", "forum": "All products support", "text": "Intanto auguri a tutti !!\n\nDomandina stupida di fine anno...\nVolevo colorare un bottone con un bel rosso (o altro), si puo' fare ?\n\n(usando il @10,10 BUTTON pipppo prompt \"BUON ANNO\"....)\n\nColorare sia il BUON ANNO che lo sfondo...\n\nGrazie e ancora auguri \n\nRomeo/Zingoni", "time": "12:22", "topic": "Colorare un BUTTON", "username": "Romeo" } ]
Colorare un BUTTON
[ { "date": "2008-12-30", "forum": "All products support", "text": "Un pulsante standard di Windows non può essere colorato (almeno non in modo semplice). Devi usare un TBtnBmp.\n\nEMG", "time": "14:52", "topic": "Colorare un BUTTON", "username": "Enrico Maria Giordano" } ]
Colorare un BUTTON
[ { "date": "2009-01-08", "forum": "All products support", "text": "tks, ci provero '\n\nRomeo/", "time": "18:01", "topic": "Colorare un BUTTON", "username": "Romeo" } ]
Colorare un BUTTON
[ { "date": "2006-05-05", "forum": "All products support", "text": "Salve,\nnon ricordo la funzione per ottenere il colore di sfondo di una dialog.\n\nQualche idea ?\n\nGrazie\n\n\nMarco", "time": "09:26", "topic": "Colore di sfondo in una dialog", "username": "Marco Turco" } ]
Colore di sfondo in una dialog
[ { "date": "2006-05-05", "forum": "All products support", "text": "oDlg:nClrPane\n\nEMG", "time": "12:04", "topic": "Colore di sfondo in una dialog", "username": "Enrico Maria Giordano" } ]
Colore di sfondo in una dialog
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "He encontrado esta extensión para Visual Studio para colorear código json:\n\n[url:2p2gv8hc]http&#58;//visualstudiogallery&#46;msdn&#46;microsoft&#46;com/fd129629-a1a1-417c-ac80-c9ac7a67b968[/url:2p2gv8hc]\n\nSi lo descargais y renombrais TextHighlighterExtension.vsix en *.zip wntonces podemos rebvisar su contenido y adptarlo a Harbour (ojalá) <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[url:2p2gv8hc]http&#58;//frederictorres&#46;blogspot&#46;com&#46;es/2013/01/json-syntax-highlighting-and-validation&#46;html[/url:2p2gv8hc]\n\nSi tuviésemos la suerte de contactar con Frederic Torres y pedirle ayuda para una extensión para Harbour... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "21:25", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien sabe como obtener el email de Frederic a partir de su cuenta de google+ ?\n\n[url:3q5zda3s]https&#58;//plus&#46;google&#46;com/105884141315293539957/posts[/url:3q5zda3s]", "time": "21:32", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Bueno, aqui tenemos otro y de este sí está todo el código fuente! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[url:3uoi2nyb]https&#58;//github&#46;com/ins0mniaque/ILSupport[/url:3uoi2nyb]", "time": "21:40", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "[url:1pe8l4h3]http&#58;//blogs&#46;msdn&#46;com/b/noahric/archive/2010/01/11/markdown-part-2-writing-a-classifier&#46;aspx[/url:1pe8l4h3]\n\n[url:1pe8l4h3]http&#58;//stackoverflow&#46;com/questions/3253205/how-do-i-visual-studio-syntax-highlighting-extension[/url:1pe8l4h3]\n\n[url:1pe8l4h3]https&#58;//github&#46;com/yujiang/vsLua[/url:1pe8l4h3]", "time": "21:55", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "[url:11ibd0fx]http&#58;//www&#46;codeproject&#46;com/Articles/33250/Writing-Your-First-Visual-Studio-Language-Service[/url:11ibd0fx]", "time": "22:00", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Mira a ver:\n<!-- m --><a class=\"postlink\" href=\"https://github.com/fredericaltorres\">https://github.com/fredericaltorres</a><!-- m -->", "time": "22:03", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "cnavarro" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Cristobal,\n\ngracias. He visto que alguien le preguntaba por el código fuente y no estaba por compartirlo.\n\nAsi que creo que tenemos que tirar por otra de las posibles soluciones que he ido encontrando.\n\nOjalá lo consiguieramos <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:07", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "Ya sabes que estamos a tu disposición y te seguimos.\nSaludos", "time": "22:13", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "cnavarro" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "La verdad es que no entiendo como a Microsoft no se le ocurrió un coloreador de sintaxis de facil configuración, que se pudiese implementar con un simple fichero de definición en ascii...\n\nLo más simple suele ser lo más poderoso <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:22", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-07", "forum": "FiveWin para Harbour/xHarbour", "text": "El enlace que has puesto del proyecto IL, si trae un fichero en el que creo, si no me equivoco, que aparecen las palabras a colorear, \"Parser.word\"\nPero por lo que he mirado, no sé cómo será de fácil su utilización (hasta ahí no llego)", "time": "22:29", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "cnavarro" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Bueno, aqui hay un truco muy sencillo y realmente fácil que aunque no sea perfecto, nos sirve de momento:\n\n[quote:2kzrr8ph]In Visual Studio Options - Text Editor - File Extension you can map your custom file extension to a Visual Studio editor.[/quote:2kzrr8ph]\n\n[img:2kzrr8ph]http&#58;//i62&#46;tinypic&#46;com/2pry9aa&#46;jpg[/img:2kzrr8ph]\n\ny aqui el resultado. Más sencillo, imposible (aunque no todo lo completo que quisiéramos):\n\n[img:2kzrr8ph]http&#58;//i62&#46;tinypic&#46;com/es9hc8&#46;jpg[/img:2kzrr8ph]", "time": "04:11", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Por lo visto se puede definir un fichero llamado usertype.dat que añadiría palabras reservadas a las que ya usa C++ con lo que podriamos mejorar mucho lo anterior:\n\n[url:26r07by9]http&#58;//stackoverflow&#46;com/questions/18246201/how-do-i-change-the-color-of-user-keywords-in-visual-studio-2012[/url:26r07by9]", "time": "04:39", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-08", "forum": "FiveWin para Harbour/xHarbour", "text": "[img:1lk3wk7x]http&#58;//i59&#46;tinypic&#46;com/2zgx5cj&#46;jpg[/img:1lk3wk7x]\n\n[quote:1lk3wk7x]Also, make sure the \"usertype.dat\" file is copied to \"C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\Common7\\IDE\" and not \"C:\\Program Files\\Microsoft Visual Studio 11.0\\Common7\\IDE\"[/quote:1lk3wk7x]\n\nusertype.dat \n[code=fw:1lk3wk7x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">DEFINE</span><br /><span style=\"color: #0000ff;\">WINDOW</span><br /><span style=\"color: #0000ff;\">DIALOG</span><br /><span style=\"color: #0000ff;\">FONT</span><br /><span style=\"color: #0000ff;\">ACTIVATE</span><br /><span style=\"color: #0000ff;\">FROM</span><br /><span style=\"color: #0000ff;\">TITLE</span><br /><span style=\"color: #0000ff;\">COLOR</span><br /><span style=\"color: #0000ff;\">SAY</span><br /><span style=\"color: #0000ff;\">ON</span><br /><span style=\"color: #0000ff;\">RIGHT</span><br /><span style=\"color: #0000ff;\">CLICK</span><br /><span style=\"color: #0000ff;\">VALID</span><br /><span style=\"color: #0000ff;\">RESOURCE</span><br /><span style=\"color: #0000ff;\">CENTERED</span></div>[/code:1lk3wk7x]\n\nOjo que conforme mejoremos usertype.dat, hay que salir de Visual Studio y volver a entrar para que se activen las nuevas definiciones! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "04:43", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-08", "forum": "FiveWin para Harbour/xHarbour", "text": "Y el resultado!!! <!-- s:-D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":-D\" title=\"Very Happy\" /><!-- s:-D -->\n\n[img:2q507yp0]http&#58;//i62&#46;tinypic&#46;com/35l9q3a&#46;jpg[/img:2q507yp0]", "time": "04:50", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-09", "forum": "FiveWin para Harbour/xHarbour", "text": "todavía estoy con un proyecto que tiene que salir YA. pero cuando pueda le mando manos al Sublime Text me parece un buen editor. y lo uso tanto en linux como en windows. hace mucho que no le mando manos a los .bat para compilar ni a los make...\n\nEl Sublimetext es gratarola, cada 8 guardadas te aparece un cartel ofreciendote comprarlo pero le das cancelar y sigue sin problemas.\n\n <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->", "time": "12:21", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "goosfancito" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Goosfancito,\n\nCon Visual Studio ya podemos construir todo desde su IDE. \n\nPara los que quieran trabajar desde un IDE es una opción muy interesante <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "14:31", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "Antonio Linares" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2014-06-09", "forum": "FiveWin para Harbour/xHarbour", "text": "<!-- s:idea: --><img src=\"{SMILIES_PATH}/icon_idea.gif\" alt=\":idea:\" title=\"Idea\" /><!-- s:idea: --> <!-- s:P --><img src=\"{SMILIES_PATH}/icon_razz.gif\" alt=\":P\" title=\"Razz\" /><!-- s:P -->", "time": "21:23", "topic": "Coloreado de sintaxis para FWH en Visual Studio 2012", "username": "goosfancito" } ]
Coloreado de sintaxis para FWH en Visual Studio 2012
[ { "date": "2011-08-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola a todos\n\nHay alguna forma de colorear un control dtpicker?\nYa le pongo, como indica el include, el nClrfore y el nCrBack y se los pasa por donde quiere, también he puesto el manifest y nada.\nComo cosa curiosa, si en el get que tenia de una fecha, le cambio en el fichero de recurso de un control GET a un control dtpicker, si pone los colores, que como es lógico son del get, no los del dtpicker, éste siempre se pone en fondo blanco y letra negra.\nPues eso hay alguna forma?\n\nGracias a todos", "time": "19:38", "topic": "Colorear DTPICKER", "username": "Pedro" } ]
Colorear DTPICKER
[ { "date": "2011-08-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien me puede indicar si se puede o no ?\n <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->", "time": "10:50", "topic": "Colorear DTPICKER", "username": "Pedro" } ]
Colorear DTPICKER
[ { "date": "2007-09-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos:\n\nNo encontre un ejemplo en el xBrowse...\n\nComo puedo colorear una celda según tenga\nun dato positivo o negativo y se actualice cada vez que cambia ?\n\nDisculpen pero no encontre la forma\n\nGracias.\n\nRuben Fernandez.", "time": "01:17", "topic": "Colorear celda en xBrows según sus datos ?", "username": "Ruben D. Fernandez" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2007-09-17", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba esto:\n\noLbx:aCols[ 4 ]:bClrStd := {|| { iif( Datos->Valor < 1, CLR_HRED, CLR_HBLUE), CLR_WHITE} }\n\nUn saludo,\nManuel\n\n[quote=\"Ruben D. Fernandez\":km4kq7p0]Amigos:\n\nNo encontre un ejemplo en el xBrowse...\n\nComo puedo colorear una celda según tenga\nun dato positivo o negativo y se actualice cada vez que cambia ?\n\nDisculpen pero no encontre la forma\n\nGracias.\n\nRuben Fernandez.[/quote:km4kq7p0]", "time": "11:07", "topic": "Colorear celda en xBrows según sus datos ?", "username": "Manuel Aranda" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2007-09-17", "forum": "FiveWin para Harbour/xHarbour", "text": "GRACIAS Manuel...\n\nFuncionó perfecto.\n\nSaludos\n\nRuben Fernandez", "time": "13:45", "topic": "Colorear celda en xBrows según sus datos ?", "username": "Ruben D. Fernandez" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2007-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "SALUDOS, DONDE Y COMO DEFINO aCols[ 4 ], O PODRIAS PONER EL EJEMPLO COMPLETO Y DISCULPEN EL ABUSO, GRACIAS", "time": "13:04", "topic": "Colorear celda en xBrows según sus datos ?", "username": "QAZWSX2K" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2007-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "xBrose tiene un data aCols que es un array de objetos columna, es decir tantos elementos como colunas tengas en el txBrowse.\nLuego bClrStd es un data del objheto columna, que esta dentro del array aCols que a su vez es un data del objeto txBrowse.\n\noBrw:aCols[numero de columna]:bClrStd ...\n\nTambien podria definirse en el momento de crear la columna, algo así\n[code:1j9upr02]\n oBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40;oWnd&#41;\n &#46;&#46;&#46;\n oCol &#58;= oBrw&#58;AddCol&#40;&#41;\n oCol&#58;cHeader &#58;= 'Cabecera'\n oCol&#58;bStrData &#58;= Alias->Campo\n oCol&#58;bClrStd &#58;= &#123;||&#123;CLR_HBLUE,CLR_WHITE&#125;&#125; //Color estandar\n oCol&#58;bClrSel &#58;= &#123;||&#123;CLR_BLACK,RGB&#40;157,255,255&#41;&#125;&#125; //Color elemento seleccionado\n &#46;&#46;&#46;[/code:1j9upr02]", "time": "14:32", "topic": "Colorear celda en xBrows según sus datos ?", "username": "Biel EA6DD" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2007-09-20", "forum": "FiveWin para Harbour/xHarbour", "text": "GRACIAS BIEL", "time": "17:03", "topic": "Colorear celda en xBrows según sus datos ?", "username": "QAZWSX2K" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2007-09-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Biel, \nComo le haces para colorear lineas intercaladas utilizando la TXbrowse\nme podrias dar un ejemplo por favor\ngracias\n\nsalu2\n\nMauro", "time": "15:08", "topic": "Colorear celda en xBrows según sus datos ?", "username": "un_jeepero" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2007-09-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Mauro, \nya se ha comentado otras veces en el foro. Para txBrose seria con el siguiente código.\n\n[code:3l5v4tce]\noBrw&#58;bClrStd&#58;=ClrStd&#40;&#41;\n\n//-----------------------\nSTATIC FUNCTION ClrStd&#40;&#41;\n//-----------------------\n LOCAL aCol&#58;=&#123;&#125;\n IF alias->&#40;ordkeyno&#40;&#41;&#41; % 2 == 0\n aCol&#58;=&#123;CLR_BLACK, RGB&#40;193,221,255&#41; &#125;\n ELSE\n aCol&#58;=&#123;CLR_BLACK, RGB&#40;221,245,255&#41; &#125;\n ENDIF\nRETURN aCol\n[/code:3l5v4tce]", "time": "15:57", "topic": "Colorear celda en xBrows según sus datos ?", "username": "Biel EA6DD" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2007-09-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias por tu respuesta Gabriel.\nHabia visto publicaciones anteriores, pero no me funcionan esto es lo que realizo en una Wnd..\ncolorea solamente si no esta la linea de ::oBrw:cAlias := ::oDbf:cAlias\n\n ::oBrw := TXBrowse():New( ::oWnd )\n ::oBrw:cAlias := ::oDbf:cAlias\n ::oBrw:bClrStd := { || Colores() }\n\n ::oCol := Array( 02 )\n ::oCol[01] := ::oBrw:AddCol()\n ::oCol[01]:cHeader := \"Sucursal\"\n ::oCol[01]:bStrData := { || ::oLoc:desloc }\n ::oCol[01]:nWidth := 90 \n..\n..\n ::oBrw:bKeydown := { | nKey | ::Modifica( ::oDbf:RecNo()) }\n ::oBrw:CreateFromCode()\n\n//-----------------------\nSTATIC FUNCTION Colores()\n LOCAL aCol:={}\n IF (ordkeyno()) % 2 == 0\n aCol:={CLR_BLACK, RGB(193,221,255) }\n ELSE\n aCol:={CLR_BLACK, RGB(221,245,255) }\n ENDIF\nRETURN (aCol)\n\nMuchas gracias \n\nsalu2\nMauro", "time": "23:27", "topic": "Colorear celda en xBrows según sus datos ?", "username": "un_jeepero" } ]
Colorear celda en xBrows según sus datos ?
[ { "date": "2019-11-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Amigos del foro.\nAlguien puede postear un ejemplo de como dar colores de fondo diferentes a celdas diferentes en un xBrowse con array, cuya condicion proviene de otro xBrowse/array?\n\nMe explico: El primer xBrw/array contiene dos columnas para Valores y Colores. El segundo xBrw/array solo contiene valores.\nLa idea es que el Browse 2 coloree sus celdas acorde a los valores y colores en el Browse 1.\n\nHe visto en el foro bastantes ejemplos, y aunque algunos funcionan bien, no encontré ninguno con las caracteristicas que expuse, aunque he tratado de ajustarlos a mis necesidades, pero sin resultados.\n\nAqui expongo el codigo que estoy escribiendo. ( Auto contenido para que puedan compilarlo )\n\nGracias.\n\n[code=fw:81zcl4lq]<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;\">static</span> aMe, aRu <br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------//</span><br /><span style=\"color: #00C800;\">FUNCTION</span> XBrwArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> NN, n, oDlg, oBrw1, oBrw2, cCol, aPos<br /><br />    CreaArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">540</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw1 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg  DATASOURCE aRu ; <br />   COLUMNS <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span>  HEADERS  <span style=\"color: #ff0000;\">\"Numero\"</span>, <span style=\"color: #ff0000;\">\"Color\"</span> <br /><br />   oBrw1:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">140</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg  DATASOURCE aMe ; <br />   COLUMNS <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span>  HEADERS <span style=\"color: #ff0000;\">\"Col1\"</span>,<span style=\"color: #ff0000;\">\"Col2\"</span>,<span style=\"color: #ff0000;\">\"Col3\"</span> ;<br />   CELL LINES NOBORDER<br /><br />   oBrw2:<span style=\"color: #000000;\">nMarqueeStyle</span>  := MARQSTYLE_HIGHLCELL<br />   oBrw2:<span style=\"color: #000000;\">lColChangeNotify</span> := .t.<br /><br />   <span style=\"color: #00C800;\">For</span> NN := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">2</span><br />      <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">if</span> !Empty<span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span><br />            oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> := ColorCelda<span style=\"color: #000000;\">&#40;</span> oBrw2, n <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">endif</span><br />      <span style=\"color: #00C800;\">Next</span> <br />      oBrw2:<span style=\"color: #000000;\">GoDown</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">Next</span> <br />   oBrw2:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> ColorCelda<span style=\"color: #000000;\">&#40;</span>oBrw2, n<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> uValue, nPos, ncNum, cClr, nColor<br /><br />   uValue := oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Value</span><br />   nPos:= aScan<span style=\"color: #000000;\">&#40;</span>aRu, <span style=\"color: #000000;\">&#123;</span> | a | a<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> == uValue <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />   ncNum := aRu<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <br />   cClr  := aRu<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <br /><br />   <span style=\"color: #00C800;\">if</span> cClr == <span style=\"color: #ff0000;\">\"VERDE\"</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   elseif cClr == <span style=\"color: #ff0000;\">\"ROJO\"</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   elseif cClr == <span style=\"color: #ff0000;\">\"NEGRO\"</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> CLR_WHITE, nColor <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------</span><br /><span style=\"color: #00C800;\">Function</span> CreaArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> n, aNms, aClr<br /><br />  aNms := <span style=\"color: #000000;\">&#123;</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: #000000;\">&#125;</span><br />  aClr := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'R'</span><span style=\"color: #000000;\">&#125;</span><br />  aRu := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span> <br /><br />  <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span>aNms<span style=\"color: #000000;\">&#41;</span><br />      aadd<span style=\"color: #000000;\">&#40;</span> aRu, <span style=\"color: #000000;\">&#123;</span>,,<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := n                                     <br />      aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>                               <br />      aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"V\"</span>,<span style=\"color: #ff0000;\">\"VERDE\"</span> ,;     <br />                  <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"R\"</span>,<span style=\"color: #ff0000;\">\"ROJO\"</span>  ,;<br />                  <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"N\"</span>,<span style=\"color: #ff0000;\">\"NEGRO\"</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">Next</span><br /><br />   aMe := Array<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br />   aMe<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'1'</span>,  <span style=\"color: #ff0000;\">'2'</span>,  <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#125;</span> <br />   aMe<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'3'</span>,  <span style=\"color: #ff0000;\">'4'</span>,  <span style=\"color: #ff0000;\">'5'</span><span style=\"color: #000000;\">&#125;</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /> </div>[/code:81zcl4lq]\n\nSaludos.", "time": "20:37", "topic": "Colorear celdas conforme a condicion externa", "username": "FranciscoA" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Y si intentas construir el codeblock \"a mano\"?, algo asi\nOjo con el Str( nColor )\n\n[code=fw:1m49ihym]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">RETURN</span> &<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"{|| {  \"</span> + Str<span style=\"color: #000000;\">&#40;</span> Rgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\", \"</span> + Str<span style=\"color: #000000;\">&#40;</span> nColor <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" } } \"</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1m49ihym]", "time": "21:24", "topic": "Colorear celdas conforme a condicion externa", "username": "cnavarro" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-19", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"cnavarro\":db5ltx90]Y si intentas construir el codeblock \"a mano\"?, algo asi\nOjo con el Str( nColor )\n\n[code=fw:db5ltx90]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">RETURN</span> &<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"{|| {  \"</span> + Str<span style=\"color: #000000;\">&#40;</span> Rgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\", \"</span> + Str<span style=\"color: #000000;\">&#40;</span> nColor <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" } } \"</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:db5ltx90][/quote:db5ltx90]\n\nCristobal, gracias por tu pronta respuesta.\nLamentablemente se obtiene el mismo resultado: Aunque pinta las celdas, no lo hace con los colores correctos.\nPor ejemplo, el color definido para el 1 es verde, y lo pinta en rojo, el 2 es negro y lo pinta en verde, etc.\nUn abrazo.\n\n[code=fw:db5ltx90]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//--------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> ColorCelda<span style=\"color: #000000;\">&#40;</span>oBrw2, n<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> uValue, nPos, ncNum, cClr, nColor<br /><br />&nbsp; &nbsp;uValue := oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Value</span><br />&nbsp; &nbsp;nPos:= aScan<span style=\"color: #000000;\">&#40;</span>aRu, <span style=\"color: #000000;\">&#123;</span> | a | a<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> == uValue <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;ncNum := aRu<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <br />&nbsp; &nbsp;cClr &nbsp;:= aRu<span style=\"color: #000000;\">&#91;</span>nPos,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> cClr == <span style=\"color: #ff0000;\">\"VERDE\"</span><br />&nbsp; &nbsp; &nbsp; nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif cClr == <span style=\"color: #ff0000;\">\"ROJO\"</span><br />&nbsp; &nbsp; &nbsp; nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif cClr == <span style=\"color: #ff0000;\">\"NEGRO\"</span><br />&nbsp; &nbsp; &nbsp; nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp;<br /><span style=\"color: #B900B9;\">//RETURN {|| { CLR_WHITE, nColor } }</span><br /><span style=\"color: #00C800;\">RETURN</span> &<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"{|| { &nbsp;\"</span> + Str<span style=\"color: #000000;\">&#40;</span> Rgb<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\", \"</span> + Str<span style=\"color: #000000;\">&#40;</span> nColor <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" } } \"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:db5ltx90]", "time": "21:39", "topic": "Colorear celdas conforme a condicion externa", "username": "FranciscoA" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Lo primero es que compruebes ( con un FWLOG por ejemplo ) que los valores de colores que devuelve son los correctos\nOjo, en lugar de usar variables estáticas para el array de colores, utiliza el propio aArrayData de oBrw1, porque si en el xbrowse oBrw1, se ha hecho el AUTOSORT automáticamente te vas a volver loco\n\n[code=fw:25cg7998]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> := ColorCelda<span style=\"color: #000000;\">&#40;</span> oBrw1, n <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:25cg7998]", "time": "21:41", "topic": "Colorear celdas conforme a condicion externa", "username": "cnavarro" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Cristobal.\nMe he dado cuenta, que el color es correcto, y que aunque identifica bien la celda y la pinta con el color correcto, siempre pinta toda la columna con el ultimo color obtenido.\nEso hace que parezca que no pinta con el color correcto, pero si lo hace, pero sobre-escribe todas las celdas anteriores.\nContinuaré mañana.\nSaludos.", "time": "23:12", "topic": "Colorear celdas conforme a condicion externa", "username": "FranciscoA" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Cristobal, Leandro.\nEsta es mi solucion; espero le sea util a otros colegas.\n[code=fw:31maom0m]<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;\">STATIC</span> aMe, aRu<br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------//</span><br /><span style=\"color: #00C800;\">FUNCTION</span> XBrwArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> n, oDlg, oBrw1, oBrw2<br /><br />&nbsp; &nbsp;CreaArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">540</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw1 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;DATASOURCE aRu ; <br />&nbsp; &nbsp;COLUMNS <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span> &nbsp;HEADERS &nbsp;<span style=\"color: #ff0000;\">\"Numero\"</span>, <span style=\"color: #ff0000;\">\"Color\"</span> <br /><br />&nbsp; &nbsp;oBrw1:<span style=\"color: #000000;\">nRowHeight</span> := <span style=\"color: #000000;\">24</span><br />&nbsp; &nbsp;oBrw1:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">140</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;DATASOURCE aMe ; <br />&nbsp; &nbsp;COLUMNS <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span> &nbsp;HEADERS <span style=\"color: #ff0000;\">\"Col1\"</span>,<span style=\"color: #ff0000;\">\"Col2\"</span>,<span style=\"color: #ff0000;\">\"Col3\"</span> ;<br />&nbsp; &nbsp;CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;oBrw2:<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp;:= MARQSTYLE_HIGHLCELL<br />&nbsp; &nbsp;oBrw2:<span style=\"color: #000000;\">nRowHeight</span> := <span style=\"color: #000000;\">30</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> oBrw2:<span style=\"color: #000000;\">aCols</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> := ColorCelda<span style=\"color: #000000;\">&#40;</span> oBrw2, n <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br /><br />&nbsp; &nbsp;oBrw2:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> ColorCelda<span style=\"color: #000000;\">&#40;</span> oBrw, n <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span>|| SeleccClr<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> SeleccClr<span style=\"color: #000000;\">&#40;</span> uDato <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n, cClr:=<span style=\"color: #ff0000;\">\"\"</span>, nClrBkg, nClrTxt := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">//Blanco</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>aRu<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> == uDato<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cClr := aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span><br />&nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> cClr == <span style=\"color: #ff0000;\">\"VERDE\"</span><br />&nbsp; &nbsp; &nbsp; nClrBkg := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif cClr == <span style=\"color: #ff0000;\">\"ROJO\"</span><br />&nbsp; &nbsp; &nbsp; nClrBkg := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif cClr == <span style=\"color: #ff0000;\">\"NEGRO\"</span><br />&nbsp; &nbsp; &nbsp; nClrBkg := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; nClrBkg := GetSysColor<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> nClrTxt, nClrBkg <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------</span><br /><span style=\"color: #00C800;\">Function</span> CreaArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> n, aNms, aClr <br /><br />&nbsp; aNms := <span style=\"color: #000000;\">&#123;</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;\">'10'</span>,<span style=\"color: #ff0000;\">'11'</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; aClr := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'R'</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; aRu := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span> <br /><br />&nbsp; <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span>aNms<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aadd<span style=\"color: #000000;\">&#40;</span> aRu, <span style=\"color: #000000;\">&#123;</span>,,<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>len<span style=\"color: #000000;\">&#40;</span>aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>=<span style=\"color: #000000;\">1</span>, aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>+<span style=\"color: #ff0000;\">\" \"</span>, aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp; aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"V\"</span>,<span style=\"color: #ff0000;\">\"VERDE\"</span> ,; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"R\"</span>,<span style=\"color: #ff0000;\">\"ROJO\"</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"N\"</span>,<span style=\"color: #ff0000;\">\"NEGRO\"</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Next</span><br /><br />&nbsp; &nbsp;aMe := Array<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aMe<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'1 '</span>, &nbsp;<span style=\"color: #ff0000;\">'2 '</span>, &nbsp;<span style=\"color: #ff0000;\">' &nbsp;'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; &nbsp;aMe<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'3 '</span>, &nbsp;<span style=\"color: #ff0000;\">'4 '</span>, &nbsp;<span style=\"color: #ff0000;\">'5 '</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; &nbsp;aMe<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'5 '</span>, &nbsp;<span style=\"color: #ff0000;\">'10'</span>, &nbsp;<span style=\"color: #ff0000;\">'11'</span><span style=\"color: #000000;\">&#125;</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:31maom0m]\nSaludos.", "time": "21:02", "topic": "Colorear celdas conforme a condicion externa", "username": "FranciscoA" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco Una idea\n[img:33oz0jr7]https&#58;//hymplus&#46;com/forofw/francisco&#46;png[/img:33oz0jr7]\n\n[code=fw:33oz0jr7]<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;\">static</span> aMe, aRu<br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------//</span><br /><span style=\"color: #00C800;\">FUNCTION</span> XBrwArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> NN, n, oDlg, oBrw1, oBrw2, cCol, aPos<br /><br />    CreaArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">540</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw1 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg  DATASOURCE aRu ;<br />   COLUMNS <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span>  HEADERS  <span style=\"color: #ff0000;\">\"Numero\"</span>, <span style=\"color: #ff0000;\">\"Color\"</span><br /><br />   oBrw1:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">140</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg  DATASOURCE aMe ;<br />   CELL LINES NOBORDER<br />   oBrw2:<span style=\"color: #000000;\">nMarqueeStyle</span>  := MARQSTYLE_HIGHLCELL<br />    oBrw2:<span style=\"color: #000000;\">lColChangeNotify</span> := .t.      <br /><br />    oCol  = oBrw2:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oCol:<span style=\"color: #000000;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Len<span style=\"color: #000000;\">&#40;</span> aMe <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> , Transform<span style=\"color: #000000;\">&#40;</span>aMe<span style=\"color: #000000;\">&#91;</span>oBrw2:<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>,<span style=\"color: #ff0000;\">\"9\"</span><span style=\"color: #000000;\">&#41;</span> ,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    oCol:<span style=\"color: #000000;\">cHeader</span>  = <span style=\"color: #ff0000;\">\"Col1\"</span><br />    oCol:<span style=\"color: #000000;\">nWidth</span>   = <span style=\"color: #000000;\">30</span><br />    oCol:<span style=\"color: #000000;\">nHeadStrAlign</span> = AL_LEFT<br />    oCol:<span style=\"color: #000000;\">nDataStrAlign</span> = AL_LEFT    <br />    oCol:<span style=\"color: #000000;\">bClrStd</span>      = <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span>CLR_WHITE,ColorCelda<span style=\"color: #000000;\">&#40;</span>aMe<span style=\"color: #000000;\">&#91;</span>oBrw2:<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><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#125;</span><br />    <br />    oCol  = oBrw2:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oCol:<span style=\"color: #000000;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Len<span style=\"color: #000000;\">&#40;</span> aMe <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> , Transform<span style=\"color: #000000;\">&#40;</span>aMe<span style=\"color: #000000;\">&#91;</span>oBrw2:<span style=\"color: #000000;\">nArrayAt</span><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: #ff0000;\">\"9\"</span><span style=\"color: #000000;\">&#41;</span> ,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    oCol:<span style=\"color: #000000;\">cHeader</span>  = <span style=\"color: #ff0000;\">\"Col2\"</span><br />    oCol:<span style=\"color: #000000;\">nWidth</span>   = <span style=\"color: #000000;\">30</span><br />    oCol:<span style=\"color: #000000;\">nHeadStrAlign</span> = AL_LEFT<br />    oCol:<span style=\"color: #000000;\">nDataStrAlign</span> = AL_LEFT    <br />    oCol:<span style=\"color: #000000;\">bClrStd</span>      = <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span>CLR_WHITE,ColorCelda<span style=\"color: #000000;\">&#40;</span>aMe<span style=\"color: #000000;\">&#91;</span>oBrw2:<span style=\"color: #000000;\">nArrayAt</span><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;\">&#41;</span><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#125;</span><br /><br />    oCol  = oBrw2:<span style=\"color: #000000;\">AddCol</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oCol:<span style=\"color: #000000;\">bStrData</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Len<span style=\"color: #000000;\">&#40;</span> aMe <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span> , Transform<span style=\"color: #000000;\">&#40;</span>aMe<span style=\"color: #000000;\">&#91;</span>oBrw2:<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: #ff0000;\">\"9\"</span><span style=\"color: #000000;\">&#41;</span> ,<span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />    oCol:<span style=\"color: #000000;\">cHeader</span>  = <span style=\"color: #ff0000;\">\"Col3\"</span><br />    oCol:<span style=\"color: #000000;\">nWidth</span>   = <span style=\"color: #000000;\">30</span><br />    oCol:<span style=\"color: #000000;\">nHeadStrAlign</span> = AL_LEFT<br />    oCol:<span style=\"color: #000000;\">nDataStrAlign</span> = AL_LEFT    <br />    oCol:<span style=\"color: #000000;\">bClrStd</span>      = <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span>CLR_WHITE,ColorCelda<span style=\"color: #000000;\">&#40;</span>aMe<span style=\"color: #000000;\">&#91;</span>oBrw2:<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><span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #000000;\">&#125;</span><br /><br />   oBrw2:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> ColorCelda<span style=\"color: #000000;\">&#40;</span>n<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> uValue, nPos, ncNum, cClr, nColor<br /><br />    n := val<span style=\"color: #000000;\">&#40;</span>n<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">if</span> n == <span style=\"color: #000000;\">1</span> .OR. n ==<span style=\"color: #000000;\">4</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   elseif n == <span style=\"color: #000000;\">3</span> .OR. n ==<span style=\"color: #000000;\">5</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">RETURN</span> nColor<br /><br /><span style=\"color: #B900B9;\">//-----------------------------</span><br /><span style=\"color: #00C800;\">Function</span> CreaArrays<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> n, aNms, aClr<br /><br />  aNms := <span style=\"color: #000000;\">&#123;</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: #000000;\">&#125;</span><br />  aClr := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'R'</span><span style=\"color: #000000;\">&#125;</span><br />  aRu := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br /><br />  <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span>aNms<span style=\"color: #000000;\">&#41;</span><br />      aadd<span style=\"color: #000000;\">&#40;</span> aRu, <span style=\"color: #000000;\">&#123;</span>,,<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />      aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := n                                    <br />      aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>                              <br />      aRu<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"V\"</span>,<span style=\"color: #ff0000;\">\"VERDE\"</span> ,;    <br />                  <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"R\"</span>,<span style=\"color: #ff0000;\">\"ROJO\"</span>  ,;<br />                  <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"N\"</span>,<span style=\"color: #ff0000;\">\"NEGRO\"</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">Next</span><br /><br />   aMe := Array<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br />   aMe<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'1'</span>,  <span style=\"color: #ff0000;\">'2'</span>,  <span style=\"color: #ff0000;\">''</span><span style=\"color: #000000;\">&#125;</span><br />   aMe<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'3'</span>,  <span style=\"color: #ff0000;\">'4'</span>,  <span style=\"color: #ff0000;\">'5'</span><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /> </div>[/code:33oz0jr7]", "time": "16:29", "topic": "Colorear celdas conforme a condicion externa", "username": "leandro" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-21", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"leandro\":2v7xdqq7]Francisco Una idea\n[img:2v7xdqq7]https&#58;//hymplus&#46;com/forofw/francisco&#46;png[/img:2v7xdqq7]\n\n[code=fw:2v7xdqq7]<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: #B900B9;\">//--------------------------------</span><br /><span style=\"color: #00C800;\">Function</span> ColorCelda<span style=\"color: #000000;\">&#40;</span>n<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> uValue, nPos, ncNum, cClr, nColor<br /><br />    n := val<span style=\"color: #000000;\">&#40;</span>n<span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">if</span> n == <span style=\"color: #000000;\">1</span> .OR. n ==<span style=\"color: #000000;\">4</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">215</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   elseif n == <span style=\"color: #000000;\">3</span> .OR. n ==<span style=\"color: #000000;\">5</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">else</span><br />      nColor := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">RETURN</span> nColor<br /><br /> </div>[/code:2v7xdqq7][/quote:2v7xdqq7]\n\nHola Leandro.\nMuchas gracias por tu atención.\nEfectivamente así funciona, ya lo había probado de esa manera. El caso es que, tanto los colores como los datos pueden ser muchos.\nLo que necesito es automatizarlo.\n\nYa lo he conseguido, aunque a medias, conforme a mi necesidad original, pero ahora se presenta otro caso extraño con el que estoy \"peleando\":\n CASE uDato $ \"0;00;1;2;3;4;5;6;7;8;9;10;11;12\"...etc\nEl caso es que los datos son tipo caracter, y unicamente coloca bien el color cuando el dato es de 2 caracteres. Los de 1 caracter lo colorea incorrectamente.\nEstoy en eso.\n\nGracias nuevamente.", "time": "17:09", "topic": "Colorear celdas conforme a condicion externa", "username": "FranciscoA" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-21", "forum": "FiveWin para Harbour/xHarbour", "text": "que bueno francisco ...\n\ny su pruebas con la función strzero()", "time": "17:23", "topic": "Colorear celdas conforme a condicion externa", "username": "leandro" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2019-11-21", "forum": "FiveWin para Harbour/xHarbour", "text": "Leando.\nPruebo y mas tarde te comento.\nSaludos.", "time": "17:36", "topic": "Colorear celdas conforme a condicion externa", "username": "FranciscoA" } ]
Colorear celdas conforme a condicion externa
[ { "date": "2006-04-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Tengo un TxBrowse() con unas 60 columnas y 30 líneas. Los campos de la DBf se llaman \"D01012006\", \"D02012006\" etc... Como se ve, esos nombres se derivan de fechas, o sea, que son variables. La próxima vez que corra el programa pueden ser \"D01042006\", \"D02042006\", etc...\n\nMe gustaría colorear el fondo de ciertas casillas de rojo o azul, según cumplan ciertas condiciones. Por ejemplo, las casillas > 1000 en rojo y las demás, en azul... El problema es que el no saber de antemano los nombres de las columnas, no puedo leer el campo directamente, sino utilizando (alias())->(Fieldget())\n\nLo mejor que he conseguido hasta ahora es:\n\n[code:3beem6fz] \n FOR i &#58;= 1 TO 60\n oBrw&#58;aCols&#91;i&#93;&#58;bClrStd &#58;= &#123;|| &#123;CLR_WHITE, iif&#40;fieldget&#40;i&#41; < 1000, CLR_BLUE, CLR_RED&#125;\n NEXT\n[/code:3beem6fz]\n\nPero esto me pone en color rojo o azul TODA la columna, no sólo la casilla que quiero. ¿Alguien podría darme un ejemplo de cómo hacerlo, por favor?\n\nGracias,\n\nRafael", "time": "17:48", "topic": "Colorear celdas de TxBrowse()", "username": "Rafael Clemente" } ]
Colorear celdas de TxBrowse()
[ { "date": "2006-04-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Oskar: \nFunciona! Muchas gracias! \nSaludos,\nRafael", "time": "21:08", "topic": "Colorear celdas de TxBrowse()", "username": "Rafael Clemente" } ]
Colorear celdas de TxBrowse()
[ { "date": "2008-04-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy buenas, estoy intentando coloreas celdas de un TwBrowse según parametros pero no lo consigo, mi versión es FWH712 y XHB 1.1.0, hay algún ejemplo por ahí.\r\n\r\nUn Saludo.", "time": "17:09", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-25", "forum": "FiveWin para Harbour/xHarbour", "text": "Tente este <!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br/Dicas/887WBrowse.zip\">http://www.fivewin.com.br/Dicas/887WBrowse.zip</a><!-- m -->", "time": "17:56", "topic": "Colorear celdas en TWBrowse", "username": "Anderson.OL" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Anderson mi problema es pintar celdas individuales no filas, ¿Me podrías decir como lo puedo conseguir?\r\n\r\nUn Saludo.", "time": "09:08", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Usando la clase TWBrowse estandard de FWH no puedes colorear celdas individuales. Necesitarías usar la clase TCBrowse, que requiere algunos cambios sobre tu código actual.\r\n\r\nO modificar la función wBrwLine() en source\\classes\\wbrowse.prg. Está en PRG y no es dificil de modificar", "time": "11:15", "topic": "Colorear celdas en TWBrowse", "username": "Antonio Linares" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Anotnio, me podrías echar una mano para ver en que parte del código tendría que modificar para no realizar cambios y no empeorarlo.\r\n\r\nUn Saludo.", "time": "11:37", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-28", "forum": "FiveWin para Harbour/xHarbour", "text": "En base a que criterio (valor de un campo, posicion, etc.) quieres colorear una determinada celda ?", "time": "12:40", "topic": "Colorear celdas en TWBrowse", "username": "Antonio Linares" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-28", "forum": "FiveWin para Harbour/xHarbour", "text": "Lo que quiero conseguir es colorear una determinada celda según si el valor de dicha celda es igual a uno dado.\r\n\r\nUn Saludo.", "time": "12:46", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy buenas Antonio, he estado mirando el código pero me gustaría que me dijeras por donde puedo tirar para no modificar código innecesario.\r\n\r\nUn Saludo.", "time": "10:32", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Haz estas dos modificaciones en source\\classes\\wbrowse.prg function wBrwLine():\r\n\r\n1: Comenta esta línea (2248):\r\n\r\n // SetBkColor( hDC, If( ValType( nClrPane ) == \"B\",;\r\n // nClrPane := Eval( nClrPane ), nClrPane ) )\r\n\r\n2: Añade lo que está en rojo (línea 2282):\r\n\r\n SetBkColor( hDC, If( nColAct != nil, If( ValType( nClrBack ) == \"B\",;\r\n Eval( nClrBack ), nClrBack ),;\r\n[color=red:1uvwvhzl] If( ValType( nClrPane ) == \"B\", Eval( nClrPane, n ), nClrPane )[/color:1uvwvhzl] ) )\r\n\r\nAqui tienes un ejemplo de uso:\r\n[code:1uvwvhzl]\n#include \"FiveWin&#46;ch\"\n\nfunction Main&#40;&#41;\n\n local oDlg, oBrw, aValues &#58;= &#123; &#123; \"One\", \"Two\", \"Three\" &#125;, &#123; \"Four\", \"Five\", \"Six\" &#125; &#125;\n \n DEFINE DIALOG oDlg TITLE \"Colored Cell\"\n \n @ 0, 0 LISTBOX oBrw ;\n FIELDS aValues&#91; oBrw&#58;nAt, 1 &#93;, aValues&#91; oBrw&#58;nAt, 2 &#93;, aValues&#91; oBrw&#58;nAt, 3 &#93; ;\n OF oDlg\n \n oBrw&#58;SetArray&#40; aValues &#41;\n oBrw&#58;nClrPane = &#123; | nCol | If&#40; aValues&#91; oBrw&#58;nAt, nCol &#93; == \"Five\", CLR_HRED, CLR_WHITE &#41; &#125;\n oDlg&#58;oClient = oBrw\n \n ACTIVATE DIALOG oDlg CENTERED ;\n ON INIT oDlg&#58;ReSize&#40;&#41;\n \nreturn nil \n[/code:1uvwvhzl]\r\n[url=http&#58;//imageshack&#46;us:1uvwvhzl][img:1uvwvhzl]http&#58;//img72&#46;imageshack&#46;us/img72/2162/colorcelllw0&#46;png[/img:1uvwvhzl][/url:1uvwvhzl]", "time": "11:46", "topic": "Colorear celdas en TWBrowse", "username": "Antonio Linares" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy buenas Antonio, he probado el código que me has proporcionado pero no lo consigo, yo utilizo la FwH v.7.12 y principalmente a la hora de modificar wbrowse.prg las líneas no coinciden con las que me das son siempre 2 líneas menos, no se si es por la version, con este código:\r\n\r\n\r\n redefine listbox oTbr FIELDS \"\";\r\n HEADERS \"Mes/Día\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"11\",\"12\",\"13\",\"14\",\"15\",\"16\",\"17\",\"18\",\"19\",\"20\",\"21\",\"22\",\"23\",\"24\",\"25\",\"26\",\"27\",\"28\",\"29\",\"30\",\"31\" ID 501 of odlg font oFontTahoma;\r\n on dblclick iif(empty(aId[oTbr:nAt,oTbr:nColAct]) .or. aId[oTbr:nAt,oTbr:nColAct]=0,msgalert(\"Debe seleccionar un día con un Servicio asignado.\",oConfiguracion:Titulo_Aplicacion),(oDlg:end(),m_ServiciosDirDet(,aId[oTbr:nAt,oTbr:nColAct])))\r\n oTbr:SetArray(acDatos)// Lo mete en el browse\r\n oTbr:bline := {|| {acDatos[oTbr:nAt,1],acDatos[oTbr:nAt,2],acDatos[oTbr:nAt,3],acDatos[oTbr:nAt,4],acDatos[oTbr:nAt,5],acDatos[oTbr:nAt,6],acDatos[oTbr:nAt,7],acDatos[oTbr:nAt,8],acDatos[oTbr:nAt,9],acDatos[oTbr:nAt,10],acDatos[oTbr:nAt,11],acDatos[oTbr:nAt,12],acDatos[oTbr:nAt,13],acDatos[oTbr:nAt,14],acDatos[oTbr:nAt,15],acDatos[oTbr:nAt,16],acDatos[oTbr:nAt,17],acDatos[oTbr:nAt,18],acDatos[oTbr:nAt,19],acDatos[oTbr:nAt,20],acDatos[oTbr:nAt,21],acDatos[oTbr:nAt,22],acDatos[oTbr:nAt,23],acDatos[oTbr:nAt,24],acDatos[oTbr:nAt,25],acDatos[oTbr:nAt,26],acDatos[oTbr:nAt,27],acDatos[oTbr:nAt,28],acDatos[oTbr:nAt,29],acDatos[oTbr:nAt,30],acDatos[oTbr:nAt,31],acDatos[oTbr:nAt,32]}}\r\n oTbr:aColSizes:= anTam\r\n \r\n oTbr:nClrPane = { | nCol | if( acDatos[ oTbr:nAt, nCol ] = \"X\", CLR_HRED, CLR_WHITE ) } \r\n oTbr:lCellStyle = .t.\r\n oTbr:lAutoEdit = .f.\r\n oTbr:lAutoSkip = .t.\r\n\r\n* da error de acceso al array por motivo de la línea:\r\noTbr:nClrPane = { | nCol | if( acDatos[ oTbr:nAt, nCol ] = \"X\", CLR_HRED, CLR_WHITE ) } \r\n\r\n* y si pongo:\r\noTbr:nClrPane = { | | if( acDatos[ oTbr:nAt, 7 ] = \"X\", CLR_HRED, CLR_WHITE ) } \r\n\r\nme pinta la línea del listbox que tenga en la columna 7 de color rojo.\r\n\r\n¿Que puedo hacer?\r\n\r\nUn Saludo.", "time": "16:47", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Ya he conseguido hacerlo quitando:\r\n\r\noTbr:lCellStyle = .t.\r\n\r\nPero mi problema es que necesito seleccionar la casilla para hacer referencia a dicha celda, entonces si hago una cosa no puedo hacer otra, ¿que solución me puedes proponer?\r\n\r\nUn Saludo.", "time": "17:29", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-29", "forum": "FiveWin para Harbour/xHarbour", "text": "Si necesitas más prestaciones en el browse tienes que plantearte pasar a un browse más potente, como el TXBrowse ó el TCBrowse que soporta objetos columnas.\r\n\r\nTambien tienes el browse de Manuel Mercado y el de Hernan. Como ves hay varias posibilidades.\r\n\r\nLa clase TWBrowse está ideada para construir browses sencillos y muy rápidos, pero claro, no ofrece toda la funcionalidad de browses más potentes (y más complicados de usar).", "time": "20:00", "topic": "Colorear celdas en TWBrowse", "username": "Antonio Linares" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy buenas, ante todo gracias Antonio, solo me falta que no me de error al ejecutar el bloque de código nCrlPane, es decir:\r\n\r\neste bloque de código da error\r\noBrw:nClrPane = { | nCol | If( aValues[ oBrw:nAt, nCol ] == \"Five\", CLR_HRED, CLR_WHITE ) } \r\n\r\ncon lCellstyle:=.t.\r\n\r\ncomo podría arreglar ese error en el listbox.\r\n\r\nUn Saludo.", "time": "12:28", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Que error te da ?", "time": "12:30", "topic": "Colorear celdas en TWBrowse", "username": "Antonio Linares" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Error de acceso al array.\r\n\r\nUn Saludo.", "time": "12:43", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "No lo hemos probado, pero intenta cambiando lo que aparece en verde:\r\n\r\nSetBkColor( hDC, If( nColAct != nil, If( ValType( nClrBack ) == \"B\",; \r\n[color=green:1hw10sio]Eval( nClrBack, n )[/color:1hw10sio], nClrBack ),; \r\n[color=red:1hw10sio]If( ValType( nClrPane ) == \"B\", Eval( nClrPane, n ), nClrPane )[/color:1hw10sio] ) )", "time": "12:52", "topic": "Colorear celdas en TWBrowse", "username": "Antonio Linares" } ]
Colorear celdas en TWBrowse
[ { "date": "2008-04-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Muy buenas Antonio, se ha solucionado el listbox con la modificación anterior,\r\nbuscando la solucion de pintar las celdas de colores en el listbox, descubri que el codeblock nCrlPane y nClrText tiene un error si se evalua.\r\n\r\nMuchas gracias por todo.\r\nUn Saludo.", "time": "16:13", "topic": "Colorear celdas en TWBrowse", "username": "softruz" } ]
Colorear celdas en TWBrowse
[ { "date": "2009-04-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Se puede colorear una columna específica en un browse ?? \n\n\nGracias", "time": "16:01", "topic": "Colorear columna", "username": "surGom" } ]
Colorear columna
[ { "date": "2009-04-24", "forum": "FiveWin para Harbour/xHarbour", "text": "Si!\n\n[code=fw:z374zisp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; br:<span style=\"color: #000000;\">oTw</span>:<span style=\"color: #000000;\">bBkColor</span> &nbsp; := <span style=\"color: #000000;\">&#123;</span>|nRow1,nCol1, nStyle1| <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>nStyle1 == <span style=\"color: #000000;\">1</span>, CLR_BLACK,<span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; br:<span style=\"color: #000000;\">oTw</span>:<span style=\"color: #000000;\">bTextColor</span> := <span style=\"color: #000000;\">&#123;</span>|nRow1,nCol1, nStyle1| <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">&#40;</span>nStyle1 == <span style=\"color: #000000;\">1</span>, CLR_WHITE,<span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:z374zisp]\n\ntenes que jugar con la variable \"nStyle1\" uso la TW de hernan... en esta caso cuando es \"1\" colorea el encabezado, cuando es \"2\" (creo) toda la columna...\n\n\n[quote=\"surGom\":z374zisp]Se puede colorear una columna específica en un browse ?? \n\n\n\nGracias[/quote:z374zisp]", "time": "22:40", "topic": "Colorear columna", "username": "goosfancito" } ]
Colorear columna
[ { "date": "2009-04-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias GoosFancito, así lo resolvi:\n oLbx:bBkColor:= {|nRow,nCol,nStyle| If( nStyle==0 .and. nCol==nColumna,RGB(223,227,247), ) }\n\nLuis", "time": "10:35", "topic": "Colorear columna", "username": "surGom" } ]
Colorear columna
[ { "date": "2009-04-26", "forum": "FiveWin para Harbour/xHarbour", "text": "Excelete. jeje\n\n[quote=\"surGom\":5zuvtuv3]Gracias GoosFancito, así lo resolvi:\n oLbx:bBkColor:= {|nRow,nCol,nStyle| If( nStyle==0 .and. nCol==nColumna,RGB(223,227,247), ) }\n\nLuis[/quote:5zuvtuv3]", "time": "13:50", "topic": "Colorear columna", "username": "goosfancito" } ]
Colorear columna
[ { "date": "2009-04-27", "forum": "FiveWin para Harbour/xHarbour", "text": "Prueba asi en el xbrowse\n\n[code=fw:2f57oaeu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBrow:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">02</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,CLR_RED<span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span> &nbsp;</div>[/code:2f57oaeu]\n\nSaludos", "time": "23:52", "topic": "Colorear columna", "username": "JavierVital" } ]
Colorear columna
[ { "date": "2015-04-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos del foro.\n\nEstoy tratando de cambiar el color a header y/o footer (indistintamente) de UNA SOLA COLUMNA, en tiempo de ejecución.\nMe explico:\nAl recorrer las columnas con las teclas right o left, o dar click a determinada columna, quiero que el header o el footer, o ambos. cambien su color pero unicamente de la columna actualmente seleccionada. (las demas deben conservar su color original)\n\nEn el foro en Inglés he posteado algo al respecto, pero le falta porque afecta la velocidad del xbrowse al bajar o subir.\nEste es el codigo: <!-- l --><a class=\"postlink-local\" href=\"http://fivetechsupport.com/forums/viewtopic.php?f=3&t=30456#p174862\">viewtopic.php?f=3&t=30456#p174862</a><!-- l -->\n\n¿Se puede hacer?. De ser así, alguien ya lo ha hecho y quiere compartirlo?\n\nGracias de antemano.", "time": "19:45", "topic": "Colorear header y/o footer de solo una columna", "username": "FranciscoA" } ]
Colorear header y/o footer de solo una columna
[ { "date": "2015-04-05", "forum": "FiveWin para Harbour/xHarbour", "text": "+1 crei tenia algo, pero no creo sea lo que buscas, igual dejo el link, aunque alli tu haces comentarios sobre el tema...saludos... <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=30004&start=0\">viewtopic.php?f=6&t=30004&start=0</a><!-- l -->", "time": "01:02", "topic": "Colorear header y/o footer de solo una columna", "username": "joseluisysturiz" } ]
Colorear header y/o footer de solo una columna
[ { "date": "2015-04-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose Luis.\nSi, ese es otro tema. Seguimos intentando.\nSaludos.", "time": "01:34", "topic": "Colorear header y/o footer de solo una columna", "username": "FranciscoA" } ]
Colorear header y/o footer de solo una columna
[ { "date": "2015-04-05", "forum": "FiveWin para Harbour/xHarbour", "text": "Alguien mas?\nNadie ha intentado esto?\nCreo que he visto en post de hace rato que intentaron hacerlo. ¿Lo consiguieron?", "time": "22:24", "topic": "Colorear header y/o footer de solo una columna", "username": "FranciscoA" } ]
Colorear header y/o footer de solo una columna