messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2013-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Saludos foro.\n\nA sugerencia de la mayoria de los usuarios que usan las aplicaciones desarrolladas, exigen ver de forma diferente los gets\nen edicion, cuando estos estan OGet:Enable() y editandose si me acepta colores definidos en:\n\noget:nClrFore\noget:nClrBack o oget:SetColor(...)\n\npero como podre desplegar los gets con los colores deseados si tan solo estoy consultado y no editando?\n\nAlguna sugerencia.", "time": "16:00", "topic": "Colores en los gets, como?", "username": "noe aburto" } ]
Colores en los gets, como?
[ { "date": "2013-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "al inicio de mi app pong esto:\n[code=fw:zxset38g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />   SetKinetic<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">&#41;</span><br />   SetDialogEsc<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">FALSE</span> <span style=\"color: #000000;\">&#41;</span><br />   SetGetColorFocus<span style=\"color: #000000;\">&#40;</span> CLR_MENTA <span style=\"color: #000000;\">&#41;</span><br /><br />   WITH OBJECT tGet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      :<span style=\"color: #000000;\">lDisColors</span>  := <span style=\"color: #00C800;\">FALSE</span><br />      :<span style=\"color: #000000;\">nClrTextDis</span> := CLR_BLUE<br />      :<span style=\"color: #000000;\">nClrPaneDis</span> := CLR_SOFTYELLOW<br />   END<br />...<br /> </div>[/code:zxset38g]\ny que modificar tget de esta forma\n[code=fw:zxset38g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />   <span style=\"color: #B900B9;\">//DATA   nClrTextDis, nClrPaneDis                 //comentar esta linea</span><br />...<br />   CLASSDATA nClrTextDis, nClrPaneDis             <span style=\"color: #B900B9;\">//agregar esta linea</span><br />..<br /> </div>[/code:zxset38g]\n\nen el metodo redefine hay que comentar estas lineas\n[code=fw:zxset38g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">//   ::nClrTextDis = nClrFore</span><br /><span style=\"color: #B900B9;\">//   ::nClrPaneDis = nClrBack</span><br /> </div>[/code:zxset38g]\n\nahora cada get que tenga WHEN .F.\nsaldra con el color azul sobre un amarillo tenue\n\nsalu2", "time": "16:15", "topic": "Colores en los gets, como?", "username": "carlos vargas" } ]
Colores en los gets, como?
[ { "date": "2013-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Noe\n\nColocar este código en el principal y todos los Gets en edición tendrán en color\n[code=fw:2b4lgxln]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> SetGetColorFocus<span style=\"color: #000000;\">&#40;</span>RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">238</span>,<span style=\"color: #000000;\">232</span>,<span style=\"color: #000000;\">170</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2b4lgxln]\n\nSaludos,\n\nAdhemar", "time": "16:16", "topic": "Colores en los gets, como?", "username": "acuellar" } ]
Colores en los gets, como?
[ { "date": "2013-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Carlos:\n\nEsto me funciona para cambiar los colores de los gets en general, y esta bien, asi los puedo modificar\n\nWITH OBJECT tGet()\n :lDisColors := .F.\n :nClrTextDis := COLOR_AZUL\n :nClrPaneDis := COLOR_SAMARILLO\nEND\n\nEl detalle aqui, es: Como indicar el color del get en particular, que no todos tengan el mismo color de texto y fondo, solo algunos\ncon colores definidos para cada get. Esa es mi cuestion.\n\ny es que tengo una proceso algo asi:\n\n@ 02,02 COLUART(1) \"art->pre_inv\" no modificar formato \"@!\";\n id 102 titulo 'Prefijo ' long {8,1,oFontPza} color {COLOR_AZUL,COLOR_SAMARILLO}\n@ 02,32 COLUART(1) \"art->bas_inv\" formato \"@!\" requerido;\n id 103 titulo 'Basico ' long {8,1,oFontPza} color {COLOR_NEGRO,COLOR_SAMARILLO}\n@ 02,59 COLUART(1) \"art->suf_inv\" formato \"@!\";\n id 104 titulo 'Sufijo ' long {6,1,oFontPza} color {COLOR_NEGRO,COLOR_SAMARILLO}\n@ 01,32 COLUART(1) \"art->des_inv\" formato \"@!S36\" requerido;\n id 105 titulo 'Descripci¢n' color COLOR_ROJO", "time": "18:31", "topic": "Colores en los gets, como?", "username": "noe aburto" } ]
Colores en los gets, como?
[ { "date": "2007-06-20", "forum": "FiveWin para CA-Clipper", "text": "Como puedo hacer para que un Listbox (con o sin datos) se pongan de colores verde y blanco como las antiguas hojas pautadas de impresion,\nes decir un renglon verde, uno blanco, uno verde uno blanco, sin importar que este vacia la base de datos.\ngracias y saludos a todos", "time": "18:12", "topic": "Colores en un LIstBox", "username": "yadira" } ]
Colores en un LIstBox
[ { "date": "2007-06-21", "forum": "FiveWin para CA-Clipper", "text": "Amigo...\nAsi se cambian los colores... lo que no se es cuando la base de datos esta vacia..\n\noBrw:NCLRPANE:={||IIF((ORDKEYNO())%2==0,RGB(230,230,230),RGB(190,215,190))}\n\nEspero te sirva", "time": "12:54", "topic": "Colores en un LIstBox", "username": "leandro" } ]
Colores en un LIstBox
[ { "date": "2011-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Harvey,\n\nI notice a lot of common elements in your code. For instance, you have about 17 sections like this:\n\n[code=fw:o09hqod6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; ADD &nbsp;<span style=\"color: #0000ff;\">TO</span> oBrw <span style=\"color: #00C800;\">DATA</span> ; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> gl->title = <span style=\"color: #ff0000;\">'-'</span> .or. gl->title = <span style=\"color: #ff0000;\">'='</span> .or. ; <br />&nbsp; &nbsp; &nbsp; gl->account $ <span style=\"color: #ff0000;\">'2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610'</span>, ; <br />&nbsp; &nbsp; &nbsp; repli<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\" \"</span>,<span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span>, trans<span style=\"color: #000000;\">&#40;</span>Eval<span style=\"color: #000000;\">&#40;</span>bty7<span style=\"color: #000000;\">&#41;</span>, &nbsp;; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">'999,999,999'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> msize ; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">RIGHT</span> ; &nbsp; <br />&nbsp; &nbsp; &nbsp; HEADER m7+cActl7; <br />&nbsp; &nbsp; &nbsp; footer <span style=\"color: #ff0000;\">\" \"</span></div>[/code:o09hqod6]\nBy converting the above to a function you could eliminate 16 of those sections of code since you could then call the function like this:\n\n[code=fw:o09hqod6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; &nbsp;cActs:= <span style=\"color: #ff0000;\">'2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610'</span> <br />&nbsp; &nbsp; &nbsp; addBrw<span style=\"color: #000000;\">&#40;</span> oBrw, cActs, <span style=\"color: #000000;\">30</span>, m7+cAct17 <span style=\"color: #000000;\">&#41;</span></div>[/code:o09hqod6]\nHere is the function:\n\n[code=fw:o09hqod6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> addBrw<span style=\"color: #000000;\">&#40;</span> oBrw, cActs, nSize, cHeader, cFooter <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">default</span> nSize:=<span style=\"color: #000000;\">30</span>, cHeader:=<span style=\"color: #ff0000;\">\" \"</span>,cFooter:=<span style=\"color: #ff0000;\">\" \"</span><br /><br />&nbsp; &nbsp; &nbsp;ADD <span style=\"color: #0000ff;\">TO</span> oBrw <span style=\"color: #00C800;\">DATA</span> ; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> gl->title = <span style=\"color: #ff0000;\">'-'</span> .or. gl->title = <span style=\"color: #ff0000;\">'='</span> .or. ; <br />&nbsp; &nbsp; &nbsp; gl->account $ cActs, ; <br />&nbsp; &nbsp; &nbsp; repli<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\" \"</span>,<span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span>, trans<span style=\"color: #000000;\">&#40;</span>Eval<span style=\"color: #000000;\">&#40;</span>bty7<span style=\"color: #000000;\">&#41;</span>, &nbsp;; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">'999,999,999'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> nSize ; <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">RIGHT</span> ; &nbsp; <br />&nbsp; &nbsp; &nbsp; HEADER cHeader; <br />&nbsp; &nbsp; &nbsp; footer cFooter<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:o09hqod6]\n\nI know you are thinking, \"if it isn't broke, then don't fix it.\" Perhaps a good philosophy, but less is more is also a good one. Less code makes the code easier to read and understand and less likely to contain bugs. If you do find a bug in a function, one fix is all that is needed.\n\nAt least do consider it for future work.\n\nRegards,\nJames", "time": "19:29", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "James Bott" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Can't get the line to color. What am I doing wrong. Here is the code\n\n[code=fw:1c80htvx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #B900B9;\">// COLOR SET UP</span><br />oBrw:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span>||<span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_WHITE<span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span>gl->ty13 < <span style=\"color: #000000;\">0</span>, CLR_YELLOW, CLR_WHITE<span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <br /><br /> oBrw:<span style=\"color: #000000;\">bClrGrad</span> := <span style=\"color: #000000;\">&#123;</span> | lInvert | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ! lInvert, ;<br />   <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.710</span>,<span style=\"color: #000000;\">8388608</span>,<span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />   <span style=\"color: #000000;\">&#123;</span>   <span style=\"color: #000000;\">0.710</span>,<span style=\"color: #000000;\">16777215</span>,<span style=\"color: #000000;\">8388608</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />   <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.710</span>,<span style=\"color: #000000;\">8388608</span>,<span style=\"color: #000000;\">16777215</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />   <span style=\"color: #000000;\">&#123;</span>   <span style=\"color: #000000;\">0.710</span>,<span style=\"color: #000000;\">16777215</span>,<span style=\"color: #000000;\">8388608</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">// TYPICAL COLUMN IN THE BROWSE</span><br /> ADD <span style=\"color: #0000ff;\">TO</span> oBrw <span style=\"color: #00C800;\">DATA</span> ; <br />      <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> gl->title = <span style=\"color: #ff0000;\">'-'</span> .or. gl->title = <span style=\"color: #ff0000;\">'='</span> .or. ; <br />      gl->account $ <span style=\"color: #ff0000;\">'2053,2514,2632,2733,2833,2933,2998,3355,3485'</span>, ; <br />      repli<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\" \"</span>,<span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span>, trans<span style=\"color: #000000;\">&#40;</span>Eval<span style=\"color: #000000;\">&#40;</span>bty1<span style=\"color: #000000;\">&#41;</span>,  ; <br />      <span style=\"color: #ff0000;\">'999,999,999'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> ; <br />      <span style=\"color: #0000ff;\">SIZE</span> msize ; <br />      <span style=\"color: #0000ff;\">RIGHT</span> ;   <br />      HEADER m1+cActl1;  <br />      footer <span style=\"color: #ff0000;\">\" \"</span><br /><br /><span style=\"color: #B900B9;\">// Nothing works.</span><br /><br /> </div>[/code:1c80htvx]", "time": "18:08", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "hag" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Instead of\n[code=fw:14t29xjj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBrw:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span>||<span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_WHITE<span style=\"color: #000000;\">&#125;</span>,<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span>gl->ty13 < <span style=\"color: #000000;\">0</span>, CLR_YELLOW, CLR_WHITE<span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <br />&nbsp;</div>[/code:14t29xjj]\nplease try:\n[code=fw:14t29xjj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBrw:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span>||If<span style=\"color: #000000;\">&#40;</span> gl->ty13 < <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">&#123;</span>CLR_BLACK,CLR_YELLOW<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 />&nbsp;</div>[/code:14t29xjj]\nResult is the row is colored Black on Yellow for negative values of ty13 and Black on White for positive values of ty13.", "time": "00:38", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "nageswaragunupudi" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao:\n\nAs always perfect.", "time": "02:51", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "hag" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Roa maybe you can help me color a cell.\nThis is the code using xbrowse.\n\nI get a bound array acess error. \n\n\n[code=fw:30j4iflq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #B900B9;\">//No array is declared </span><br /><br /><span style=\"color: #B900B9;\">// color cell...I want to color third column on a recored. FixFlag1() finds the record.</span><br /><br />oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrstd</span>    := <span style=\"color: #000000;\">&#123;</span>||If<span style=\"color: #000000;\">&#40;</span>fixFlag1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,CLR_BLACK,CLR_YELLOW<span style=\"color: #000000;\">&#41;</span>,CLR_WHITE <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">// TYPICAL column 17 of them.</span><br /><br /> ADD <span style=\"color: #0000ff;\">TO</span> oBrw <span style=\"color: #00C800;\">DATA</span> ; <br />   <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> gl->title = <span style=\"color: #ff0000;\">'-'</span> .or. gl->title = <span style=\"color: #ff0000;\">'='</span> .or. ; <br />   gl->account $ <span style=\"color: #ff0000;\">'2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610'</span>, ; <br />   repli<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"  \"</span>,<span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span>, trans<span style=\"color: #000000;\">&#40;</span>Eval<span style=\"color: #000000;\">&#40;</span>bty14<span style=\"color: #000000;\">&#41;</span>, ; <br />   <span style=\"color: #ff0000;\">'999,999,999'</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>;<br />   <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">71</span> ; <br />   <span style=\"color: #0000ff;\">RIGHT</span> ;  <br />   HEADER <span style=\"color: #ff0000;\">\"Start Up\"</span>;  <br />   footer <span style=\"color: #ff0000;\">\" \"</span></div>[/code:30j4iflq]\n\n\nI just can't get it to work.\n\nThanks again", "time": "07:48", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "hag" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:2saoefbn]<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;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrstd</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>||If<span style=\"color: #000000;\">&#40;</span>fixFlag1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, CLR_YELLOW <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 />&nbsp;</div>[/code:2saoefbn]\nor\n[code=fw:2saoefbn]<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;\">3</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrstd</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, &nbsp;<span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> fixFlag1<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, CLR_YELLOW, CLR_WHITE <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:2saoefbn]", "time": "08:41", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "nageswaragunupudi" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Can you please post your full code for the browse and explain what is it want to show?", "time": "02:39", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "nageswaragunupudi" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Messy code:\nIF YOU NEED ANYTHING ELSE LET ME KNOW.\n\nDEFINE FONT oFont3 NAME \"Ms Sans Serif\" SIZE 2,1\n DEFINE WINDOW oWnd TITLE \"View Print Edit Reports\" ;\n COLOR CLR_WHITE, CLR_WHITE\n\n if viewingMulti == 0\n\n    define dialog oDlg resource \"hagbrow\" of oWnd1 TRANSPARENT TITLE cItem Font oFont3 \n\n      REDEFINE TABS oTabs PROMPTS \"Profit And Loss\", \"Cash Flow\", \"Balance Sheet\", \"Product Analysis\", \"Credit Line Usage\",\"Information\",cCalc ID 4001 OF oDlg;\n      action(nnOPtion := oTabs:nOption,xpicard(oDlg,oBrw,nnOption,xCol,oSay35,oSay36,oSay37))   update\n   else\n      define dialog oDlg resource \"hagbrow\" of oWnd1 TRANSPARENT TITLE cItem Font oFont3 \n\n      REDEFINE TABS oTabs PROMPTS \"Profit And Loss\", \"Cash Flow\", \"Balance Sheet\", \"Product Analysis\", \"Credit Line Usage\",\"Information\",cCalc ID 4001 OF oDlg;\n      action(nnOPtion := oTabs:nOption,xpicard(oDlg,oBrw,nnOption,xCol,oSay35,oSay36,oSay37))   update\n\n   endif    \n   oDlg:oTop := oTabs\n\n   getcoors(ownd1:nTop,ownd1:nLeft,ownd1:nBottom,ownd1:nRight)\n\n   if ownd1:nright >= 1020 //.and. ownd1:nright < 1028  \n\n      if bFont[1]   <= 16\n\n         oDlg:bResized  :=                           ;\n         {|| aRect  := GetWndRect(oDlg:hWnd),    ;\n         oBrw:Move( 24,4,arect[ 4 ]-arect[ 2 ] -16, ; //16\n         aRect[3]-aRect[1]-175,.t.);       //150                                    // 130\n         ,oBtn1:move(arect[3] -aRect[1]- 89,11  ,,,.t.);   //14  *\n         ,oBtn5:move(arect[3] -aRect[1]- 89,197 ,,,.t.);   //106\n         ,oBtn7:move(arect[3] -aRect[1]- 89,380 ,,,.t.);   //16\n         ,oBtn2:move(arect[3] -aRect[1]- 119,481 ,,,.t.);  //4002\n         ,oBtn13:move(arect[3] -aRect[1]-145,422 ,,,.t.);  //20\n         ,oCbx:move(arect[3]  -aRect[1]- 89,575 ,,,.t.);   //18 Transfer data\n         ,oCbx1:move(arect[3] -aRect[1]- 119,575 ,,,.t.);  //\n         ,oCbx2:move(arect[3] -aRect[1]- 119,11  ,,,.t.);  //15 *\n         ,oCbx3:move(arect[3] -aRect[1]- 119,197 ,,,.t.);  //14\n         ,oCbx5:move(arect[3] -aRect[1]-  89,875 ,,,.t.);  //24\n         ,oSay11:move(arect[3]-aRect[1]- 119,806 ,,,.t.);  //\n         ,oSay12:move(arect[3]-aRect[1]- 111,806 ,,,.t.);  //\n         ,oCbx4:move(                    \"\",728 ,,,.t.);   //reports\n         ,oSay20:move(arect[3] -aRect[1]-145,11  ,,,.t.);  //75 *   //120\n         ,oSay21:move(arect[3] -aRect[1]-145,197 ,,,.t.);  //23 *\n         ,oBtn3:move(arect[3]  -aRect[1]-119,380 ,,,.t.)}  //103\n\n         //,oBtn4:move(                    \"\",620 ,,,.t.); //calculate\n         //,oBmp1:move(                    \"\",11 ,,,.t.);  //calculate\n         //,oBmp5:move(arect[3] -aRect[1]- 149,380 ,,,.t.);// Info \n         //,oSay13:move(                   \"\",855 ,,,.t.); //\n\n\n      else\n         //? \"2\"    \n\n\n         oDlg:bResized  :=                           ;\n         {|| aRect  := GetWndRect(oDlg:hWnd),    ;\n         oBrw:Move( 24,4,arect[ 4 ]-arect[ 2 ] -16, ; //16\n         aRect[3]-aRect[1]-207,.t.);    //150 //175                                 // 130\n         ,oBtn1:move(arect[3] -aRect[1]- 102,5  ,,,.t.);   //14  *\n         ,oBtn5:move(arect[3] -aRect[1]- 102,197 ,,,.t.);  //106\n         ,oBtn7:move(arect[3] -aRect[1]- 102,380 ,,,.t.);  //16\n         ,oBtn2:move(arect[3] -aRect[1]- 132,520 ,,,.t.);  //4002\n         ,oBtn13:move(arect[3] -aRect[1]- 145,520 ,,,.t.); //20\n         ,oCbx:move(arect[3]  -aRect[1]- 102,605 ,,,.t.);  //18 Transfer data\n         ,oCbx5:move(arect[3] -aRect[1]-  89,875 ,,,.t.);  //24\n         ,oCbx1:move(arect[3] -aRect[1]- 132,605 ,,,.t.);  //\n         ,oCbx2:move(arect[3] -aRect[1]- 132,5  ,,,.t.);   //15 *\n         ,oCbx3:move(arect[3] -aRect[1]- 132,197 ,,,.t.);  //14\n         ,oSay11:move(arect[3]-aRect[1]- 132,806 ,,,.t.);  //\n         ,oSay12:move(arect[3]-aRect[1]- 111,806 ,,,.t.);  //\n         ,oCbx4:move(                    \"\",675 ,,,.t.);   //reports\n         ,oSay20:move(arect[3] -aRect[1]-168,5  ,,,.t.);   // 75    *   //120\n         ,oSay21:move(arect[3] -aRect[1]-168,197 ,,,.t.);  // 75    *\n         ,oBtn3:move(arect[3]  -aRect[1]-132,380 ,,,.t.)}  //103\n\n         //,oBtn4:move(                    \"\",575 ,,,.t.);  //calculate\n\n         //,oBmp5:move(                    \"\",51 ,,,.t.);  //calculate\n         //,oBmp1:move(                    \"\",11 ,,,.t.);  //calculate\n         //,oBmp5:move(arect[3] -aRect[1]- 168,380 ,,,.t.); // Info \n         //,oSay13:move(                   \"\",845 ,,,.t.);  //\n\n      endif             \n   endif\n\n\n   if (oWnd1:nRight > 600 .AND. oWnd1:nRight    < 1020) \n\n      bFont := getFontInfo(hFont)   \n\n      if bFont[1]   <= 16\n         ///? \"3\"   \n\n         ODLG:BRESIZED  :=                           ;\n         {|| aRect  := GetWndRect(oDlg:hWnd),    ;\n         oBrw:Move( 24,1,arect[ 4 ]-arect[ 2 ] - 27, ;\n         aRect[3]-aRect[1]-150,.t.);\n         ,oBtn1:move(arect[3] -aRect[1]- 55,5,   , ,.t.);  //14\n         ,oBtn5:move(arect[3] -aRect[1]- 55,177  ,,,.t.);  //106\n         ,oBtn7:move(arect[3] -aRect[1]- 55,333  ,,,.t.);  //16\n         ,oBtn2:move(arect[3] -aRect[1]- 85,433  ,,,.t.);  //4002\n         ,oBtn13:move(arect[3] -aRect[1]- 115,400 ,,,.t.); //20\n         ,oCbx:move(arect[3]  -aRect[1]- 55,519  ,,,.t.);  //18 Transfer data\n         ,oCbx1:move(arect[3] -aRect[1]- 85,519  ,,,.t.);  //\n         ,oCbx2:move(arect[3] -aRect[1]- 85,5    ,,,.t.);  //15 \n         ,oCbx3:move(arect[3] -aRect[1]- 85,177  ,,,.t.);  //14\n         ,oCbx5:move(arect[3] -aRect[1]- 89,875  ,,,.t.);  //24\n         ,oSay11:move(arect[3]-aRect[1]- 85,805  ,,,.t.);  //\n         ,oSay12:move(arect[3]-aRect[1]- 52,805  ,,,.t.);  //\n         ,oSay20:move(arect[3]-aRect[1]- 115,5   ,,,.t.);  // 75    *\n         ,oSay21:move(arect[3]-aRect[1]- 115,177 ,,,.t.);  // 75    *\n         ,oBtn3:move(arect[3] -aRect[1]- 85,349  ,,,.t.),oBrw:refresh()} //103\n\n         //,oCbx4:move(                    \"\",680  ,,,.t.); //reports\n\n         //,oBtn4:move(                    \"\",600  ,,,.t.); //calculate\n         //,oBmp1:move(                    \"\",11   ,,,.t.);  //calculate\n         //,oBmp5:move(arect[3] -aRect[1]- 119,352 ,,,.t.); // Info \n         //,oSay13:move(                   \"\",804  ,,,.t.); //\n\n         // win32       \n\n      else\n         //? \"4\"\n         oDlg:bResized  :=                           ;\n         {|| aRect  := GetWndRect(oDlg:hWnd),    ;\n         oBrw:Move( 24,4,arect[ 4 ]-arect[ 2 ] -16, ;      //16\n         aRect[3]-aRect[1]-175,.t.);    //150                                // 130\n         ,oBtn1:move(arect[3] -aRect[1]- 89,5  ,,,.t.);    //14  *\n         ,oBtn5:move(arect[3] -aRect[1]- 89,197 ,,,.t.);   //106\n         ,oBtn7:move(arect[3] -aRect[1]- 89,380 ,,,.t.);   //16\n         ,oBtn2:move(arect[3] -aRect[1]- 119,400 ,,,.t.);  //4002\n         ,oBtn13:move(arect[3] -aRect[1]- 115,400 ,,,.t.); //20\n         ,oCbx:move(arect[3]  -aRect[1]-  89,605 ,,,.t.);  //18 Transfer data\n         ,oCbx5:move(arect[3] -aRect[1]- 89,875  ,,,.t.);  //24\n         ,oCbx1:move(arect[3] -aRect[1]- 119,605 ,,,.t.);  //\n         ,oCbx2:move(arect[3] -aRect[1]- 119,5  ,,,.t.);   //15 *\n         ,oCbx3:move(arect[3] -aRect[1]- 119,197 ,,,.t.);  //14\n         ,oSay11:move(arect[3]-aRect[1]- 119,806 ,,,.t.);  //\n         ,oSay12:move(arect[3]-aRect[1]- 111,806 ,,,.t.);  //\n         ,oCbx4:move(                    \"\",675 ,,,.t.);   //reports\n         ,oSay20:move(arect[3] -aRect[1]-145,5  ,,,.t.);   // 75    *   //120\n         ,oSay21:move(arect[3] -aRect[1]-145,197 ,,,.t.);  // 75    *\n         ,oBtn3:move(arect[3]  -aRect[1]-119,380 ,,,.t.)}  //103\n\n         //,oBtn4:move(                    \"\",575 ,,,.t.);  //calculate\n         //,oBmp1:move(                    \"\",11 ,,,.t.);  //calculate\n         //,oBmp5:move(                    \"\",51 ,,,.t.);  //calculate\n         //,oSay13:move(                   \"\",845 ,,,.t.);  //\n\n    endif               \n   endif\n\n   redefine column xbrowse oBrw ID 101 of oDlg cell lines //autocols //fastedit \n     oBrw:nMARQueesTYLE := MARQSTYLE_HIGHLROW    \n        \n     oBrw:bClrStd  := {||If(FixFlag(),{CLR_BLACK,CLR_YELLOW},{CLR_BLACK ,CLR_WHITE}) } \n        \n   //oBrw:aCols[3]:bClrstd := {||If(fixFlag1(), { CLR_BLACK, CLR_YELLOW },{ CLR_BLACK, CLR_WHITE } ) }\n   //oBrw:aCols[3]:bClrstd := {|| { CLR_BLACK,If( fixFlag1(), CLR_YELLOW, CLR_WHITE ) } }\n            \n   if cFixoDbf  == .f. \n      select bal        \n      database oDbf     \n      oDbf:GoTop()  \n#translate oDbf:bal: => oDbf:\n      oBrw:SetoDbf(oDbf)        \n   else\n\n      select gl\n      database oDbf     \n      oDbf:GoTop()  \n      oBrw:SetoDbf(oDbf)        \n      oBrw:cAlias   := oDbf:cAlias\n\n#translate oDbf:gl: => oDbf:\n      oBrw:nFreeze := 4       // freeze \n   endif\n\n\n   oBrw:bClrGrad := { | lInvert | If( ! lInvert, ;\n   { { 0.710,8388608,16777215 }, ;\n   {   0.710,16777215,8388608 } }, ;\n   { { 0.710,8388608,16777215 }, ;\n   {   0.710,16777215,8388608 } } ) }\n\n   msize := 68 // 78\n\n   if mWhichCountry == .t. // CANADA    \n\n      if !EMPTY(cFrecast) \n         ADD COLUMN TO xbrowse oBrw data {|| trans(oBrw:oDbf:gl:trend, '@Z 999.9') };\n         SIZE 40 COLOR CLR_BLACK, CLR_WHITE LEFT HEADER \"TrendIt\"\n\n         ADD COLUMN TO xbrowse oBrw DATA {|| if(gl->gst == 1, \"Yes\", if(gl->gst == 0, \" \",)) };\n         SIZE 25 COLOR CLR_BLACK, CLR_WHITE LEFT HEADER \"GST\" // blank cursor colm\n      else\n         ADD COLUMN TO xbrowse oBrw DATA {|| if(gl->gst == 1, \"Yes\", if(gl->gst == 0, \" \",)) };\n         SIZE 25 COLOR CLR_BLACK, CLR_WHITE LEFT HEADER \"GST\" // blank cursor colm\n      endif\n   else \n      if !EMPTY(cFrecast) \n         ADD COLUMN TO xbrowse oBrw data {|| trans(oBrw:oDbf:gl:trend, '@Z 999.9') };\n         SIZE 40 COLOR CLR_BLACK, CLR_WHITE LEFT HEADER \"TrendIt\"\n      else\n         //oBrw:hBmpCursor := LoadBitmap( GetResources(), \"Z_Finger\" )\n         ADD TO xbrowse oBrw DATA {|| if(gl->gst == 1, \"   \", if(gl->gst == 0, \" \",)) };\n         SIZE 20 COLOR CLR_BLACK, CLR_WHITE LEFT HEADER \" \" // blank cursor colm\n      endif\n   endif        \n\n   gl->(dbGoTop())\n\n   oBrw:bLDblClick := { | nRow,nCol |if (nNewVar == 1,msginfo(\"Editing is not available while vewing this report.\"),(odlg:hide(),apicard( oBrw, nRow, nCol, odlg))),oBrw:refresh();\n   ,oBrw:setfocus(),odlg:show(),needCalc(oDlg),oBrw:refresh(),oBrw:setfocus(),mPassMess := .t.}\n\n   oBrw:bKeyChar  := { | nKey,nRow,nCol | if(nKey=VK_RETURN,;\n   (IF(nNewVar == 1,msginfo(\"Editing is not available while in this report.\");\n   ,(odlg:hide(),apicard( oBrw, nRow, nCol, odlg))),whatUsing(oDlg),oDlg:update(),oBrw:refresh(),oBrw:setfocus(),odlg:show(),needCalc(oDlg)),),.t.}\n\n   // 2007\n   oBrw:bRClicked  := {| nRow,nCol | build(oBrw, nRow, nCol, odlg),oBrw:refresh(),oBrw:setfocus(),odlg:setfocus(),mPassMess := .t.}\n\n   setkey (VK_F6,{|| newInfo(),oBrw:refresh(),oBrw:setfocus()})\n\n   msgWait(\"Color coding departments. To see coding use the F12 key.\",\"Attention\",3)\n\n\n   ADD TO xBROWSE oBrw ;\n   data {|| if(gl->title == repli('-', 30), repli(' ' , 30), ;\n   if(gl->title == repli('=', 30), repli(' ', 30), ;\n   trans(gl->account,\"9999\"))) }    ;\n   SIZE 36 LEFT HEADER \"Account (dblclick to edit)\"  COLOR CLR_BLACK,CLR_HGRAY  \n\n   ADD  TO xBROWSE oBrw ;\n   SIZE 6  LEFT COLOR {||IF((gl->account >= \"1500\" .AND. gl->account <= \"2040\"),{RGB(0,0,0),RGB(128,0,0)},;\n   IF((gl->account >= \"2055\" .AND. gl->account <= \"2500\"),{RGB(0,0,0),RGB(0,0,128)},;\n   IF((gl->account >= \"2520\" .AND. gl->account <= \"2625\"),{RGB(0,0,0),RGB(0,128,0)},;\n   IF((gl->account >= \"2635\" .AND. gl->account <= \"2720\"),{RGB(0,0,0),RGB(0,128,128)},;\n   IF((gl->account >= \"2735\" .AND. gl->account <= \"2820\"),{RGB(0,0,0),RGB(128,0,128)},;\n   IF((gl->account >= \"2835\" .AND. gl->account <= \"2920\"),{RGB(0,0,0),RGB(128,128,0)},;\n   IF((gl->account >= \"3000\" .AND. gl->account <= \"3353\"),{RGB(0,0,0),RGB(0,0,255)},;\n   IF((gl->account >= \"3360\" .AND. gl->account <= \"3480\"),{RGB(0,0,0),RGB(255,0,255)},;\n   IF((gl->account >= \"3491\" .AND. gl->account <= \"3544\"),{RGB(0,0,0),RGB(255,128,0)},;\n   IF((gl->account >= \"2935\" .AND. gl->account <= \"2996\"),{RGB(0,0,0),RGB(0,255,0)},;\n   {RGB(0,0,0),RGB(255,255,255)}))))))))))}\n\n\n   ADD TO xBROWSE oBrw ;\n   data {|| if(gl->title == repli('-', 30), repli(' ' , 30), ;\n   if(gl->title == repli('=', 30), repli(' ', 30), ;\n   eval(cBal))) }   ;\n   SIZE 140  LEFT HEADER \"Account (dblclick to edit)\"  //COLOR CLR_BLACK,CLR_HGRAY  \n\n\n\n   * ADD TO oBrw DATA ; \n   * If( gl->title = '-' .or. gl->title = '='  .or. ; \n   * gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485', ; \n   * repli(\"  \",30), trans(Eval(bty13),  ; \n   * '999,999,999'),;\n   * SIZE 71 ; \n   * RIGHT ;    \n   * HEADER cone  \n\n\n   * ADD TO oBrw DATA ; \n   * If( gl->title = '-' .or. gl->title = '=' .or. ; \n   * gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485', ; \n   * repli(\"  \",30), trans(Eval(bty14), ; \n   * '999,999,999'));  \n   * SIZE 71 ; \n   * RIGHT ;    \n   * HEADER \"Start Up\";  \n   * footer \" \"\n\n   //(gl->account $ '4601,4602,4603,4604,4605,4607,4608,4609,4610',trans(Eval(bty13),'@Z 999,999,999'))) ; \n\n   // msetmths := 13\n\n   /////NEW\n\n   * ADD TO oBrw DATA ; \n   * If( gl->title = '-' .or. gl->title = '='  .or. ; \n   * gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485', ; \n   * repli(\"  \",30), trans(Eval(bty15),  ; \n   * '999,999,999')) ; \n   * SIZE 71 ; \n   * RIGHT ;    \n   * HEADER cone  \n\n   // here      \n\n   ADD TO oBrw DATA ; \n   If( gl->title = '-' .or. gl->title = '=' .or. ; \n   gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n   repli(\"  \",30), trans(Eval(bty14), ; \n   '999,999,999'));\n   SIZE 71 ; \n   RIGHT ;  \n   HEADER \"Start Up\";  \n   footer \" \"\n\n   //.or. if(gl->account $ '4601,4602,4603,4604,4605,4607,4608,4609,4610',trans(Eval(bty13),'@Z 999,999,999')) ; \n\n\n   //If( gl->account $ '3000',CLR_BLACK,CLR_BLUE)); \n   //If( gl->account $ '3000',CLR_BLACK,CLR_BLUE,\" \" ) \n\n   if msetmths >=1\n\n      if lUseThis   == .F.  .AND. gl->act1 > 1\n         cActl1 := \"-Actual\"\n      else\n         cActl1 := \"\"\n      endif\n\n      ADD TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty1),  ; \n      '999,999,999'))  ; \n      SIZE msize       ; \n      RIGHT            ;    \n      HEADER m1+cActl1 ;  \n      footer \" \"\n\n   endif\n   if msetmths >=2\n\n      if lUseThis   == .F.  .AND. gl->act2 > 1\n         cActl2 := \"-Actual\"\n      else\n         cActl2 := \"\"\n      endif\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty2),  ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m2+cActl2;  \n      footer \" \"\n\n      if msetmths = 2\n\n         ADD  TO oBrw DATA ; \n         If( gl->title = '-' .or. gl->title = '=' .or. ; \n         gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n         repli(\" \",30),trans(Eval(bPercent),; \n         '999.9'))  ;\n         SIZE msize ; \n         RIGHT ;    \n         HEADER \"%\";  \n         footer \" \"\n\n      endif\n\n   endif\n   if msetmths >=3\n\n      if lUseThis   == .F.  .AND. gl->act3 > 1\n         cActl3 := \"-Actual\"\n      else\n         cActl3 := \"\"\n      endif\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty3),  ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m3+cActl3;  \n      footer \" \"\n\n      if msetmths == 3\n\n         ADD  TO oBrw DATA ; \n         If( gl->title = '-' .or. gl->title = '=' .or. ; \n         gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n         repli(\" \",30), trans(Eval(bPercent),  ; \n         '999.9' )) ;\n         SIZE msize ; \n         RIGHT ;    \n         HEADER \"%\" ; \n         footer \" \"\n\n      endif\n\n   endif\n   if msetmths >=4\n\n      if lUseThis   == .F.  .AND. gl->act4 > 1\n         cActl4 := \"-Actual\"\n      else\n         cActl4 := \"\"\n      endif\n\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty4),  ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m4+cActl4;  \n      footer \" \"\n\n\n\n   endif\n   if msetmths >=5\n\n      if lUseThis   == .F.  .AND. gl->act5 > 1\n         cActl5 := \"-Actual\"\n      else\n         cActl5 := \"\"\n      endif\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty5),  ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m5+cActl5;  \n      footer \" \"\n\n   endif\n   if msetmths >=6\n\n      if lUseThis   == .F.  .AND. gl->act6 > 1\n         cActl6 := \"-Actual\"\n      else\n         cActl6 := \"\"\n      endif\n\n      ADD  TO oBrw DATA ; \n      If(  gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty6),  ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m6+cActl6;  \n      footer \" \"\n\n\n   endif\n   if msetmths >=7\n\n      if lUseThis   == .F.  .AND. gl->act7 > 1\n         cActl7 := \"-Actual\"\n      else\n         cActl7 := \"\"\n      endif\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty7),  ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m7+cActl7; \n      footer \" \"\n\n\n   endif\n   if msetmths >=8\n      if lUseThis   == .F.  .AND. gl->act8 > 1\n         cActl8 := \"-Actual\"\n      else\n         cActl8 := \"\"\n      endif\n\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty8),  ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m8+cActl8;  \n      footer \" \"\n\n   endif\n   if msetmths >=9\n\n      if lUseThis   == .F.  .AND. gl->act9 > 1\n         cActl9 := \"-Actual\"\n      else\n         cActl9 := \"\"\n      endif\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty9),  ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m9+cActl9;  \n      footer \" \"\n\n   endif\n   if msetmths >=10\n\n      if lUseThis   == .F.  .AND. gl->act10 > 1\n         cActl10 := \"-Actual\"\n      else\n         cActl10 := \"\"\n      endif\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty10), ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m10+cActl10;  \n      footer \" \"\n\n\n   endif\n   if msetmths >=11\n\n      if lUseThis   == .F.  .AND. gl->act11 > 1\n         cActl11 := \"-Actual\"\n      else\n         cActl11 := \"\"\n      endif\n\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty11), ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m11+cActl11 ;  \n      footer \" \"\n\n\n   endif\n   if msetmths >=12\n\n      if lUseThis   == .F.  .AND. gl->act12 > 1\n         cActl12 := \"-Actual\"\n      else\n         cActl12 := \"\"\n      endif\n\n      ADD  TO oBrw DATA ; \n      If( gl->title = '-' .or. gl->title = '=' .or. ; \n      gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485,4601,4602,4603,4604,4605,4607,4608,4609,4610', ; \n      repli(\" \",30), trans(Eval(bty12), ; \n      '999,999,999')) ; \n      SIZE msize ; \n      RIGHT ;   \n      HEADER m12+cActl12; \n      footer \" \"\n\n   endif\n\n   /////NEW\n\n   if cFixOdbf  == .t. \n\n      if msetmths > 3   \n\n         ADD  TO oBrw DATA ; \n         If( gl->title = '-' .or. gl->title = '=' .or. ; \n         gl->account $ '2053,2514,2632,2733,2833,2933,2998,3355,3485', ; \n         repli(\" \",30), trans(Eval(bPercent), ; \n         '999.9'))  ;\n         SIZE msize ; \n         RIGHT ;    \n         HEADER \"%\";  \n         footer \" \"\n\n      endif\n   endif\n\n   REDEFINE SAY ID 12 OF ODLG  COLOR CLR_WHITE, CLR_RED \n\n   // DISPALAY SENSITIVITY          \n\n   redefine button obtn1 id 14 of oDlg ;\n   ACTION(oDlg:hide(),setcalc(),lsetmess := .t.,whatifi(),oDlg:show(),openfilter := .f., asetfilter(.f.,obrw),setcalc2(obrw,odlg,2),oBrw:setfocus())    \n\n   if !EMPTY(cFrecast) \n      REDEFINE SAY oSay10 prompt alltrim(cFrecast) ID 51 OF ODLG  COLOR CLR_WHITE, CLR_RED //COLOR CLR_RED, CLR_WHITE\n   else\n      REDEFINE SAY oSay10 ID 51 OF ODLG  \n   endif        \n\n   * if viewingMulti == 0\n\n   REDEFINE SAY oSay35  ID 412  OF ODLG COLOR CLR_WHITE,CLR_BLUE \n   REDEFINE SAY oSay36  ID 413  OF ODLG COLOR CLR_WHITE,CLR_BLUE \n   REDEFINE SAY oSay37  ID 414  OF ODLG COLOR CLR_WHITE,CLR_BLUE \n   REDEFINE SAY oSay11  ID 200  OF ODLG COLOR CLR_WHITE,CLR_BLUE \n   REDEFINE SAY oSay12  ID 201  OF ODLG COLOR CLR_WHITE,CLR_BLUE \n\n   * endif\n\n   //REDEFINE SAY oSay13 prompt cWhatView ID 400 OF ODLG  update COLOR CLR_WHITE,CLR_RED\n\n   * if viewingMulti == 0   \n\n   REDEFINE SAY oSay20 prompt cWhichSales ID 75 OF ODLG update COLOR CLR_WHITE,CLR_BLUE  \n   REDEFINE SAY oSay21 prompt cWhichCost  ID 23 OF ODLG update COLOR CLR_WHITE,CLR_BLUE  \n\n   * endif\n\n   // RUN MULTI YEAR\n   redefine button obtn9 id 17 of oDlg  ;           \n   action(toCalcOrNot(obrw,oDlg),isMultiYear(),msgwait(\"Multi year forecast updated.\",\"Please Wait\",1))\n\n   redefine button obtn2 id 4002 of odlg  ;\n   action(toCalcOrNot(obrw,oDlg),toExitPrint(oDlg,oBrw,nNewVar,nIndex,msize)) \n\n   redefine button obtn13 id 20 of odlg  ;\n   action(find2(2,oBrw,\" \",.f.,oDlg,oDbf,2)) \n\n   redefine button obtn3 id 103 of oDlg ;\n   action(nRecNo := gl->(recno()),oDlg:hide(),openfilter := .t.,addnewaccounts(obrw,odlg,msendtitle,nNewVar),asetfilter(.t.,obrw),gl->(dbgoto(nRecno)),oDlg:show(),oBrw:refresh(),oBrw:setfocus()) \n\n   * redefine button obtn4 id 105 of oDlg ;\n   * action(asetcalc(obrw,ODLG),setTheOrder(),gl->(dbgoto(1)),obrw:refresh(),obrw:setfocus())\n\n   redefine button obtn5 prompt cCaption id 106 of oDlg ;\n   action(oDlg:hide(),addexp(obrw,odlg,.f.,.f.,nNewVar),goforward := .t.,odlg:show(),gl->(dbgotop()),oBrw:refresh(),oBrw:setfocus(),mPassMess := .t.,setMess(oDlg,oBrw),cPrompt := \"Select accounts to display\", oDlg:update(),.t.) \n\n   // new 1/25/2009\n\n   redefine button obtn7 prompt cPrompt id 16 of oDlg ;\n   action(if(nWhichDisp == 1,(openfilter := .f., asetfilter(.f.,obrw),gl->(dbgoto(1)),oBtn7:setText(\"Select accounts to display\"), nWhichDisp := 0),;\n   (nRecNo := gl->(recno()),oDlg:hide(),openfilter := .t.,addnewaccounts(obrw,odlg,msendtitle,nNewVar),asetfilter(.t.,obrw),gl->(dbgoto(nRecno),oDlg:show(),oBtn7:setText(\"Display only accounts being used\"),nWhichDisp := 1)) ),oBrw:setFocus()) \n\n   * redefine button obtn7 id 16 of oDlg ;\n   * action(openfilter := .f., asetfilter(.f.,obrw),gl->(dbgoto(1)),oBrw:setfocus(),oBrw:refresh(),oBrw:setfocus()) \n\n   if lusingOnehr == .f.\n\n      if nfp == .T. \n         cPandl1 := \"         < Other Activity Items >\"     \n\n         REDEFINE COMBOBOX OCBX1 VAR cPandl1 ITEMS { \"         < Other Activity Items >\",;\n         \"Credit line financing and Interest expense\"                 ,;\n         \"Amortization of prepaid expenses\"                           ,;\n         \"Due to from owners/affiliate and Interest owners\"           ,;\n         \"Expense as a percent of change in net assets\"               ,;\n         \"Interest on cash balances\"                                  ,;    \n         \"Investment activity and Revenue From Investments\"           ,;\n         \"Notes rec'able amortization and Interest income\"            ,;\n         \"Sale of equipment and Gain or loss on the sale of assets\"   ,;\n         \"Service contracts receivable and Service income\"            ,;\n         \"Start up expenses\"                                          ,;\n         \"Term loan amortization and Interest expense\"                };\n         ID 19 OF oDlg on change(asetfilter(.f.,obrw),setup1(cPandl1,10,oDlg,nNewVar),mmcurrec := gl->(recno()),openfilter := .f.,;\n         asetfilter(.f.,obrw),oDlg:show()                             ,;\n         setcalc2(obrw,odlg,2)                                        ,;\n         fixIt(oDlg,oBrw,oCbx1),setTheOrder(),WhatUsing(oDlg),gl->(dbgotop()),oBrw:setfocus())         ;\n         UPDATE\n\n      else      \n\n         cPandl1 := \"         < Other Profit And Loss Items >\"      \n\n         REDEFINE COMBOBOX OCBX1 VAR cPandl1 ITEMS { \"         < Other Profit And Loss Items >\",;\n         \"Amortization of prepaid expenses\"                           ,;\n         \"Credit line financing and Interest expense\"                 ,;\n         \"Due to from owners/affiliate and Interest owners\"           ,;\n         \"Expense as a percent of net income\"                         ,;\n         \"Income tax expense and estimated tax payments\"              ,;\n         \"Interest on cash balances\"                                  ,;    \n         \"Investment activity and Income From Investments\"            ,;\n         \"Notes rec'able amortization and Interest income\"            ,;\n         \"Sale of equipment and Gain or loss on the sale of assets\"   ,;\n         \"Service contracts receivable and Service income\"            ,;\n         \"Start up expenses\"                                          ,;\n         \"Term loan amortization and Interest expense\"                };\n         ID 19 OF oDlg on change(asetfilter(.f.,obrw),setup1(cPandl1,10,oDlg,nNewVar),mmcurrec := gl->(recno()),openfilter := .f.,;\n         asetfilter(.f.,obrw),oDlg:show()                             ,;\n         setcalc2(obrw,odlg,2)                                        ,;\n         fixIt(oDlg,oBrw,oCbx1),setTheOrder(),WhatUsing(oDlg),gl->(dbgotop()),oBrw:setfocus())         ;\n         UPDATE\n      endif \n\n\n\n      cItem2 := \"    < Driver Calculator >\"     \n\n      REDEFINE COMBOBOX OCBX5 VAR cItem2 ITEMS { \"    < Driver Calculator >\",;\n      \"Sales, regular\"                   ,;\n      \"Sales by product, customer etc.\"  ,;\n      \"Inventory\"                        ,;\n      \"Deposits\"                         ,;\n      \"Partners draw\"                    ,;\n      \"Other assets\"                     ,;\n      \"Depreciation Dept. 1\"             ,;\n      \"Depreciation Dept. 2\"             ,;\n      \"Depreciation Dept. 3\"             ,;\n      \"Depreciation Dept. 4\"             ,;\n      \"Beginning accounts payable\"       ,;\n      \"Beginning accrued expenses\"       ,;\n      \"Beginning other payables\"}        ;\n      ID 24 OF oDlg on change(getwhichOne(cItem2),setcalc2(obrw,odlg,2),setTheOrder(),asetfilter(.f.,obrw),;\n      oBrw:refresh(),oBrw:setfocus(),cItem2 :=  \"    < Driver Calculator >\",oCbx5:refresh(),.t.)\n\n      cPandl4 := \" < Reports >\"\n\n      if nfp == .T. \n         REDEFINE COMBOBOX OCBX4 VAR cPandl4 ITEMS { \" < Reports >\",;\n         \"Cash Flow\"                ,;\n         \"Financial Position\"           ,;\n         \"Program Analysis\"  ,;\n         \"Activities\"          };\n         ID 50 OF oDlg on change(getCash(oBtn12,oBtn10,oBrw,oDlg,aCol,oBtn4),;\n         oBrw:refresh(),oDlg:update(),oBrw:setfocus(),oCbx4:refresh(),.t.)\n\n      else  \n\n         REDEFINE COMBOBOX OCBX4 VAR cPandl4 ITEMS { \" < Reports >\",;\n         \"Cash Flow\"                ,;\n         \"Balance Sheets\"           ,;\n         \"Prod./cust. analysis\"     ,;\n         \"Profit and Loss\"                  ,;\n         \"Credit line analysis\"}     ;\n         ID 50 OF oDlg on change(getCash(oBtn12,oBtn10,oBrw,oDlg,aCol,oBtn4),;\n         oBrw:refresh(),oDlg:update(),oBrw:setfocus(),oCbx4:refresh(),.t.)\n      endif\n\n\n      if lusingOnehr == .f.\n\n         if nfp == .T. \n\n            //whatUsing(oDlg)   \n\n            cPandl2 := \"   < Revenue >\"\n\n            REDEFINE COMBOBOX OCBX2 VAR cPandl2 ITEMS { \"   < Revenue >\",;\n            \"Revenue by program\" ,;\n            \"Miscellaneous income\"};\n            ID 15 OF oDlg on change(asetfilter(.f.,obrw),setup1(cPandl2,10,oDlg,nNewVar),setTheOrder(),oDlg:show(),setcalc2(obrw,odlg,2),openfilter := .f.,asetfilter(.f.,obrw),;\n            fixIt(oDlg,oBrw,oCbx1),setTheOrder(),WhatUsing(oDlg),gl->(dbgotop()),oBrw:setfocus());\n            Update\n         else\n\n            //whatUsing(oDlg)   \n\n            cPandl2 := \"   < Sales/Income >\"\n\n            REDEFINE COMBOBOX OCBX2 VAR cPandl2 ITEMS { \"   < Sales/Income >\",;\n            \"Annual, monthly, collections\",;\n            \"By product/customer/employee etc.\",;\n            \"% completion method\",;\n            \"Miscellaneous income\"};\n            ID 15 OF oDlg on change(asetfilter(.f.,obrw),setup1(cPandl2,10,oDlg,nNewVar),setTheOrder(),oDlg:show(),setcalc2(obrw,odlg,2),openfilter := .f.,asetfilter(.f.,obrw),;\n            fixIt(oDlg,oBrw,oCbx1),setTheOrder(),WhatUsing(oDlg),gl->(dbgotop()),oBrw:setfocus());\n            Update\n         endif      \n\n\n         if nfp == .T. \n\n            cPandl3 := \"      < Program Costs >\"                                 \n            REDEFINE COMBOBOX OCBX3 VAR cPandl3 ITEMS { \"    < Program Costs >\",;\n            \"As a percentage of revenue\",;\n            \"In detail (33 items)\",;\n            \"By program\"};\n            ID 13 OF oDlg on change(asetfilter(.f.,obrw),setup1(cPandl3,9,oDlg,nNewVar),oDlg:show(),setTheOrder(),setcalc2(obrw,odlg,2),openfilter := .f.,asetfilter(.f.,obrw),;\n            fixIt(oDlg,oBrw,oCbx1),setTheOrder(),WhatUsing(oDlg),gl->(dbgotop()),oBrw:setfocus());\n            Update\n\n         else   \n            cPandl3 := \"      < Cost Of Sales >\"\n            REDEFINE COMBOBOX OCBX3 VAR cPandl3 ITEMS { \"    < Cost Of Sales >\",;\n            \"As a percentage of sales\",;\n            \"In detail (33 items)\",;\n            \"By product/customer/employee etc.\"};\n            ID 13 OF oDlg on change(asetfilter(.f.,obrw),setup1(cPandl3,9,oDlg,nNewVar),oDlg:show(),setTheOrder(),setcalc2(obrw,odlg,2),openfilter := .f.,asetfilter(.f.,obrw),;\n            fixIt(oDlg,oBrw,oCbx1),setTheOrder(),WhatUsing(oDlg),gl->(dbgotop()),oBrw:setfocus());\n            Update\n         endif\n\n         cPandl := \"       < Cash Flow And Other Items >\" \n\n         if nfp == .T.  \n            REDEFINE COMBOBOX OCBX VAR cPandl ITEMS { \"         < Cash Flow And Other Items >\",;\n            \"Adjust other assets\"                        ,;\n            \"Beginning financial position\"               ,;\n            \"Beginning payables-payment of same\"         ,;\n            \"Customer deposits\"                          ,;\n            \"Deposits to be made\"                        ,;\n            \"Loans due to/from owners/affiliates\"        ,;\n            \"Loans from others\"                          ,;\n            \"Loans to others\"                            ,;\n            \"Name, fiscal period, plan year \"            ,;\n            \"New borrowings and investor activities\"     ,;\n            \"Purchase of equipment\",;\n            \"Sales tax collection and payment\"};\n            ID 18 OF oDlg on change(asetfilter(.f.,obrw),setup1(cPandl,9,oDlg,nNewVar),oDlg:show(),setcalc2(obrw,odlg,2),openfilter := .f.,asetfilter(.f.,obrw),;\n            fixIt(oDlg,oBrw,oCbx1),setTheOrder(),WhatUsing(oDlg),gl->(dbgotop()),oBrw:setfocus());\n            Update\n\n         else   \n\n            REDEFINE COMBOBOX OCBX VAR cPandl ITEMS { \"         < Cash Flow And Other Items >\",;\n            \"Adjust other assets\",;\n            \"Beginning balance sheet\",;\n            \"Beginning payables-payment of same\",;\n            \"Customer deposits\"                          ,;\n            \"Deposits to be made\", ;\n            \"Dividends to be paid\",;\n            \"Enter actual products sold\", ;\n            \"Loans due to/from owners/affiliates\",;\n            \"Loans from others\",;\n            \"Loans to others\",;\n            \"Name, fiscal period, plan year \",;\n            \"New borrowings and investor activities\",;\n            \"Preferred stock/Treasury stock\",;\n            \"Proprietors draw\",;\n            \"Purchase of equipment\",;\n            \"Sales tax collection and payment\"};\n            ID 18 OF oDlg on change(asetfilter(.f.,obrw),setup1(cPandl,9,oDlg,nNewVar),oDlg:show(),setcalc2(obrw,odlg,2),openfilter := .f.,asetfilter(.f.,obrw),;\n            fixIt(oDlg,oBrw,oCbx1),setTheOrder(),WhatUsing(oDlg),gl->(dbgotop()),oBrw:setfocus());\n            Update\n         endif\n      endif \n\n      //REDEFINE BTNBMP OBMP1  ID 116 OF ODLG   file \"TESTBMP2.BMP\" \n\n      oCbx:cToolTip := \"To set a trend for an item double click on \"+CRLF+\"the 'TrendIt' column and\"+;\n      \"enter the amount (%)\"+CRLF+\" you wish to have the item trend by to future years.\"\n\n      //REDEFINE BTNBMP OBMP5  ID  21 OF ODLG   file \"TESTBMP2.BMP\" \n\n      oBtn3:cToolTip := \"Select expense departments to be displayed.\"+CRLF+;\n      \"Edit a standard payment assumption for all expenses.\"\n\n      oBtn5:cTooltip := \"All planning options available and a program map\"                                      \n\n      * oBmp5:cToolTip := \"To edit an expense (cell) left double click on the expense.\"+CRLF+;\n      * \"Left click, the following is available: eleven methods for developing the expense. \"+CRLF+;\n      * \"For additional options highlight the expense (cell) then right click on the expense.\"+CRLF+;\n      * \"Right click, the following is available:\"+CRLF+;\n      * \"Remove an expense, edit notes, move an expense from one department to another,\"+CRLF+;\n      * \"expense Driver Calculator, allocate the expense to a product, customer etc.\"\n\n\n                \n\n      // SHOW EXPLANATION ONY IF NO SALES ENTERED       \n\n\n      if nNewVar == 1\n         oBtn2:hide()\n         oBtn3:hide()\n         //oBtn4:hide()\n         oBtn5:hide()\n         oBtn7:hide()\n         oCbx4:hide()\n         oCbx5:hide()\n         oCbx1:hide()\n         oCbx2:hide()\n         oCbx3:hide()\n         oCbx:hide()\n      endif\n\n      * mDontShow := .T. \n      * small_font := 80    \n\n      if small_font <= 96 .OR. oWnd1:nRight >= 1020 \n         if mDontShow   \n            activate dialog odlg centered on init(oBrw:maximize(),oDlg:maximize(),addsales(oDlg,oBrw),nIndex(nIndex),donotshow(oBtn1,obtn3,oBtn4,oBtn5,oBtn7,oCbx4,oCbx1,oCbx2,oCbx3,oCbx,nNewVar,oBmp1,cFrecast,oBmp5),; \n            asetfilter(.f.,obrw),intuit(nNewVar,oBrw,oDlg),gl->(dbgotop()),oBrw:setfocus(),oSay35:hide(),oSay36:hide(),oSay37:hide());\n            ON PAINT (Gradpaint0( hDC, oDlg,.t.)  )  \n         endif      \n      else\n         if mDontShow   \n            gl->(dbgotop())\n            if !EMPTY(cFrecast) .AND. noDisp <> 2   \n               activate dialog odlg centered on init(donotshow(oBtn1,obtn3,oBtn4,oBtn5,oBtn7,oCbx4,oCbx1,oCbx2,oCbx3,oCbx,nNewVar,oBmp1,cFrecast,oBmp5),;\n               odlg:maximize(),oBrw:maximize(),gl->(dbgotop(),addsales(oDlg,oBrw),nIndex(nIndex),obrw:setfocus()),oBtn9:hide(),oBtn12:hide(),oBrw:setfocus(),asetfilter(.f.,obrw),intuit(nNewVar,oBrw,oDlg),oSay35:hide(),oSay36:hide(),oSay37:hide());\n               ON PAINT (Gradpaint0( hDC, oDlg,oBrw )  )  \n\n            elseif EMPTY(cFrecast)                                                                                                                                                                                                                                                               \n               activate dialog odlg centered on init(donotshow(oBtn1,obtn3,oBtn4,oBtn5,oBtn7,oCbx4,oCbx1,oCbx2,oCbx3,oCbx,nNewVar,oBmp1,cFrecast,oBmp5),;\n               odlg:maximize(),oBrw:maximize(),gl->(dbgotop(),addsales(oDlg,oBrw),nIndex(nIndex),obrw:setfocus()),oBtn9:hide(),oBtn12:hide(),oBrw:setfocus(),asetfilter(.f.,obrw),intuit(nNewVar,oBrw,oDlg),oSay35:hide(),oSay36:hide(),oSay37:hide());\n               ON PAINT (Gradpaint0( hDC, oDlg,oBrw )  )  \n            elseif !EMPTY(cFrecast) .AND. noDisp == 2                                                                                                                                                                    \n               activate dialog odlg centered on init(donotshow(oBtn1,obtn3,oBtn4,oBtn5,oBtn7,oCbx4,oCbx1,oCbx2,oCbx3,oCbx,nNewVar,oBmp1,cFrecast,oBmp5),;\n               odlg:maximize(),oBrw:maximize(),gl->(dbgotop(),addsales(oDlg,oBrw),nIndex(nIndex),obrw:setfocus()),oBtn12:hide(),oBrw:setfocus(),asetfilter(.f.,obrw),intuit(nNewVar,oBrw,oDlg),oSay35:hide(),oSay36:hide(),oSay37:hide());\n               ON PAINT (Gradpaint0( hDC, oDlg,oBrw )  )  \n            endif       \n\n         endif      \n      endif\n [", "time": "04:32", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "hag" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Roa tried both of your recommendations ...always a bound array acess error on that line of code.\nHere is the error. Maybe it will help.\n\n[code=fw:2q5uwxwv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Error occurred <span style=\"color: #00C800;\">at</span>: <span style=\"color: #000000;\">01</span>/<span style=\"color: #000000;\">13</span>/<span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">08</span>:<span style=\"color: #000000;\">43</span>:<span style=\"color: #000000;\">25</span><br />   Error description: <span style=\"color: #000000;\">Error</span> BASE/<span style=\"color: #000000;\">1132</span>  Bound error: <span style=\"color: #000000;\">array</span> access<br />   Args:<br />     <span style=\"color: #000000;\">&#91;</span>   <span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> = A   <span style=\"color: #000000;\">&#123;</span> ... <span style=\"color: #000000;\">&#125;</span><br />     <span style=\"color: #000000;\">&#91;</span>   <span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> = N   <span style=\"color: #000000;\">3</span><br /> </div>[/code:2q5uwxwv]\n\nI even tried use oCol[3] instead of aCols[3] and got an argument error.", "time": "17:49", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "hag" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "James thanks for the good advice. And code. The code that you want to reduce was suggested by you many years ago. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \nBut as life goes on we hopefully get better. \nYou do me sometimes.\n\n\nAn clue how i can color a cell. Always get bound array acess.", "time": "20:04", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "hag" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Harvey,\n\nTo color a cell try changing this:\n\n// COLOR SET UP\noBrw:bClrStd := {||{CLR_BLACK,CLR_WHITE},{ If(gl->ty13 < 0, CLR_YELLOW, CLR_WHITE) } }\n\nTo this:\n\n// COLOR SET UP\noBrw:bClrStd := {|| If(gl->ty13 < 0, {CLR_BLACK,CLR_YELLOW}, {CLR_BLACK,CLR_WHITE} ) }\n\nRegards,\nJames", "time": "21:00", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "James Bott" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Harvey,\n\nOr, this is probably what you were trying to do:\n\noBrw:bClrStd := {|| {CLR_BLACK, If(gl->ty13 < 0, CLR_YELLOW, CLR_WHITE) } }\n\nJames", "time": "21:13", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "James Bott" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-14", "forum": "FiveWin for Harbour/xHarbour", "text": "This colors line which was my first request. It works fine\noBrw:bClrStd := {|| {CLR_BLACK, If(gl->ty13 < 0, CLR_YELLOW, CLR_WHITE) } }\n\nI want to color one field on a certain record.\nRoa sent me this but I get error\nfixflag1() gets the record.\n\noBrw:aCols[3]:bClrstd := {||If(fixFlag1(), { CLR_BLACK, CLR_YELLOW },{ CLR_BLACK, CLR_WHITE } ) }\noBrw:aCols[3]:bClrstd := {|| { CLR_BLACK, If( fixFlag1(), CLR_YELLOW, CLR_WHITE ) } }\n\nError occurred at: 01/13/11, 08:43:25\n Error description: Error BASE/1132 Bound error: array access\n Args:\n [ 1] = A { ... }\n [ 2] = N 3\n\n\n Any ideas?", "time": "21:28", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "hag" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Harvey,\n\nCan we see the first 15 lines of the error that show the line numbers and functions? We need to see where the error is occuring.\n\nJames", "time": "00:13", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "James Bott" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Harvey,\n\nOK, I have recreated your error. This will happen if the column has not yet been defined. When it has not been defined, there is no corresponding array in oBrw, thus the array access error.\n\nSo make sure the column you are coloring has been defined, then use this line:\n\noBrw:aCols[3]:bClrstd := {|| { CLR_BLACK, If( fixFlag1(), CLR_YELLOW, CLR_WHITE ) } }\n\n(Where 3 is the number of the column)\n\nJames", "time": "00:34", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "James Bott" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2011-01-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Amazing. \nAll I needed to do was move declaration to below columns and it worked like a charm. \nThanks again you are a tremendous help.", "time": "01:57", "topic": "Coloring a line Solved. Now coloring an individual cell", "username": "hag" } ]
Coloring a line Solved. Now coloring an individual cell
[ { "date": "2020-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "I use a brush to colorize a dialog\nDEFINE BRUSH oBrush1 COLOR COLORE_MIO\noApp:oMyDialog:SetBrush(oBrush1)\n\nfor reasons that I am not here to list now I would need to know if I can color a two-color dialog\n\n i.e. having a light blue color for two fingers above and another color for the rest of the dialog\n\nfor example I would like to do this\n\n[img:2iprhk4a]https&#58;//i&#46;postimg&#46;cc/fTDPkmdH/Immagine&#46;png[/img:2iprhk4a]\n\noApp:oMyDialog is a tPanel", "time": "12:37", "topic": "Colorize a dialog two colors", "username": "Silvio.Falconi" } ]
Colorize a dialog two colors
[ { "date": "2020-03-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nYou may use:\n\nSetDlgGradient( { { 0.3, CLR_CYAN, CLR_CYAN }, { 0.7, CLR_YELLOW, CLR_YELLOW } } )", "time": "13:20", "topic": "Colorize a dialog two colors", "username": "Antonio Linares" } ]
Colorize a dialog two colors
[ { "date": "2020-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\nI use it for a Panel I made\n\n oApp:oSpiaggia:bPainted:= {|hDC, cPS| ;\n SetDlgGradient( { { 0.1, CLR_CYAN, CLR_CYAN }, { 0.9, COLORE_SABBIA, COLORE_SABBIA } } );\n }\n\nthen on this tPanel I use btnbmp and ( on top ) the objects Ximage\nthe colors are bpainted but there is something not run ok because I see a white background \nit is strange because btnbmps and xmage are transparent \n\nLoook :\n\n[img:6j4lhb3w]https&#58;//i&#46;postimg&#46;cc/NGV6VN75/look&#46;jpg[/img:6j4lhb3w]", "time": "10:55", "topic": "Colorize a dialog two colors", "username": "Silvio.Falconi" } ]
Colorize a dialog two colors
[ { "date": "2020-04-01", "forum": "FiveWin for Harbour/xHarbour", "text": "I found the error \nthe Panel is not trasparent \nthen I made oApp:oSpiaggia:lTransparent :=.t.\nand then I saw the problem \nall btnbmp are not transparent ( look at your email)", "time": "11:12", "topic": "Colorize a dialog two colors", "username": "Silvio.Falconi" } ]
Colorize a dialog two colors
[ { "date": "2015-03-02", "forum": "FiveWin for Harbour/xHarbour", "text": "I have created a procedure to insert the absences of a teacher, from an initial selection, the final user can view the weekly timetable of the teacher absent and the second display browse all teachers who have available for those hours when the teacher is absent\n\n[img:2vqc75k1]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2015/03/SOSTITUZIONI&#46;jpg[/img:2vqc75k1]\n\nI need to colorize the columns of second xbrowse at the same point of the red lines to highlight the hours to be covered by the substitutions weekly teacher absent\n\nor colorize only the lines (nColDividerStyle) with another color to highlight\n\nany solution ?", "time": "13:12", "topic": "Colorize a second xbrowse", "username": "Silvio.Falconi" } ]
Colorize a second xbrowse
[ { "date": "2022-03-04", "forum": "FiveWin for Harbour/xHarbour", "text": "I have to color the xbrowse cells on each line with a different color depending on the value of the cell, I made \n WITH OBJECT oBrw\n\n....\nFOR i := 1 TO LEN(:aCols)\noCol := :aCols[ i ]\noCol:nWidth := 30\n if i >1\n oCol:bClrStd := {|i| { ChangeColor( oBrw, i ) } }\n endif\n NEXT\n\n :CreateFromCode()\nEND\n\nstatic function ChangeColor( oBrw, n )\nreturn {|| { CLR_BLACK, ColorCell( oBrw:aRow[ n ]:VALUE ) } }\n\nstatic function ColorCell( num )\n local nColor := GetSysColor( 15 ) //for demo\n local nColor1 := CLR_HGREEN\n local nColor2 := CLR_HRED\n local ncolor3 := GetSysColor( 15 )\n\n\n /* IF num<3\n nColor :=nColor1\n elseif num>3\n nColor := nColor2\n elseif num<9\n nColor := nColor3\n endif*/\n\n return nColor\n\n\nwhere is the error ?", "time": "11:16", "topic": "Colorized cell of xbrowse", "username": "Silvio.Falconi" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nI think you should change this \n\n oCol:bClrStd := {|i| { ChangeColor( oBrw, i ) } }\n\nFor this:\n\n oCol:bClrStd := {|| { ChangeColor( oBrw, i ) } }\n\nBut \"i\" is the variable of the FOR and when the browse is created the value of \"i\" will be the size of oBrw:aCols + 1", "time": "12:39", "topic": "Colorized cell of xbrowse", "username": "vilian" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"vilian\":2hs12tnw]Silvio,\n\nI think you should change this \n\n oCol:bClrStd := {|i| { ChangeColor( oBrw, i ) } }\n\nFor this:\n\n oCol:bClrStd := {|| { ChangeColor( oBrw, i ) } }\n\nBut \"i\" is the variable of the FOR and when the browse is created the value of \"i\" will be the size of oBrw:aCols + 1[/quote:2hs12tnw]\n\nthe problem is then the function ChangeColor() not found the \"i\" variable", "time": "09:17", "topic": "Colorized cell of xbrowse", "username": "Silvio.Falconi" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe you have also the issue with Detached Locals ?\n\n[url:u8gayfb4]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=41373&hilit=detached+local[/url:u8gayfb4]", "time": "11:56", "topic": "Colorized cell of xbrowse", "username": "Marc Venken" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Marc Venken\":2sjo6sj0]Maybe you have also the issue with Detached Locals ?\n\n[url:2sjo6sj0]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=41373&hilit=detached+local[/url:2sjo6sj0][/quote:2sjo6sj0]\n\nI need something of this\n[img:2sjo6sj0]https&#58;//i&#46;postimg&#46;cc/BZj0CppK/HHH&#46;png[/img:2sjo6sj0]", "time": "12:53", "topic": "Colorized cell of xbrowse", "username": "Silvio.Falconi" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:zuxqetpp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCol:<span style=\"color: #000000;\">bClrStd</span> := ChangeColor<span style=\"color: #000000;\">&#40;</span> oBrw, i <span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:zuxqetpp]", "time": "02:36", "topic": "Colorized cell of xbrowse", "username": "nageswaragunupudi" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-06", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":39pa5n40][code=fw:39pa5n40]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCol:<span style=\"color: #000000;\">bClrStd</span> := ChangeColor<span style=\"color: #000000;\">&#40;</span> oBrw, i <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:39pa5n40][/quote:39pa5n40]\n\nNages,\ngive me error \n\n\n WITH OBJECT oBrw\n :nRowHeight := 22\n :nClrBorder := CLR_GRAY\n :lDrawBorder := .t.\n :nColorBox := CLR_HRED\n :nMarqueeStyle := MARQSTYLE_HIGHLWIN7\n :lHscroll := .f.\n :l2007 := .F.\n :l2015 := .f.\n :nStretchCol := STRETCHCOL_WIDEST\n :lAllowRowSizing := .F.\n :lAllowColSwapping := .F.\n :lAllowColHiding := .F.\n :lRecordSelector := .F.\n :nColDividerStyle := LINESTYLE_LIGHTGRAY\n :nRowDividerStyle := LINESTYLE_LIGHTGRAY\n :nRowDividerStyle := LINESTYLE_NOLINES\n :nColDividerStyle := LINESTYLE_LIGHTGRAY\n :lDisplayZeros := .t. //Ineed the value zero\nFOR i := 1 TO LEN(:aCols)\n oCol := :aCols[ i ]\n oCol:nWidth := 30\n if i >1 \n oCol:bClrStd := ChangeColor( oBrw, i )\n oCol:bClrSelFocus := {|| { CLR_BLACK, { { 1, RGB( 252, 235, 220 ), RGB( 255, 0,0 ) } }}}\n endif\n NEXT\n:CreateFromCode()\n :aCols[ 1 ]:nWidth := 100\n :aCols[ 1 ]:nDataStrAlign := AL_LEFT\n :SetStyle( 2018 )\n end with\n\n\nstatic function ChangeColor( oBrw, n )\nreturn {|| { CLR_BLACK, ColorCell( oBrw:aRow[ n ]:VALUE ) } }\n\nstatic function ColorCell( num )\n local nColor := GetSysColor( 15 )\n If num= 0\n nColor := CLR_HGREEN\n elseif num >0 .and. num < 8\n nColor := CLR_WHITE\n elseif num >9\n nColor := CLR_HRED\n endif\n return nColor", "time": "17:19", "topic": "Colorized cell of xbrowse", "username": "Silvio.Falconi" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-07", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Silvio.Falconi\":2g88ha0o][quote=\"nageswaragunupudi\":2g88ha0o][code=fw:2g88ha0o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oCol:<span style=\"color: #000000;\">bClrStd</span> := ChangeColor<span style=\"color: #000000;\">&#40;</span> oBrw, i <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2g88ha0o][/quote:2g88ha0o]\n\nNages,\ngive me error \n\n\n WITH OBJECT oBrw\n :nRowHeight := 22\n :nClrBorder := CLR_GRAY\n :lDrawBorder := .t.\n :nColorBox := CLR_HRED\n :nMarqueeStyle := MARQSTYLE_HIGHLWIN7\n :lHscroll := .f.\n :l2007 := .F.\n :l2015 := .f.\n :nStretchCol := STRETCHCOL_WIDEST\n :lAllowRowSizing := .F.\n :lAllowColSwapping := .F.\n :lAllowColHiding := .F.\n :lRecordSelector := .F.\n :nColDividerStyle := LINESTYLE_LIGHTGRAY\n :nRowDividerStyle := LINESTYLE_LIGHTGRAY\n :nRowDividerStyle := LINESTYLE_NOLINES\n :nColDividerStyle := LINESTYLE_LIGHTGRAY\n :lDisplayZeros := .t. //Ineed the value zero\nFOR i := 1 TO LEN(:aCols)\n oCol := :aCols[ i ]\n oCol:nWidth := 30\n if i >1 \n oCol:bClrStd := ChangeColor( oBrw, i )\n oCol:bClrSelFocus := {|| { CLR_BLACK, { { 1, RGB( 252, 235, 220 ), RGB( 255, 0,0 ) } }}}\n endif\n NEXT\n:CreateFromCode()\n :aCols[ 1 ]:nWidth := 100\n :aCols[ 1 ]:nDataStrAlign := AL_LEFT\n :SetStyle( 2018 )\n end with\n\n\nstatic function ChangeColor( oBrw, n )\nreturn {|| { CLR_BLACK, ColorCell( oBrw:aRow[ n ]:VALUE ) } }\n\nstatic function ColorCell( num )\n local nColor := GetSysColor( 15 )\n If num= 0\n nColor := CLR_HGREEN\n elseif num >0 .and. num < 8\n nColor := CLR_WHITE\n elseif num >9\n nColor := CLR_HRED\n endif\n return nColor[/quote:2g88ha0o]\n\n\n[code=fw:2g88ha0o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> ChangeColor<span style=\"color: #000000;\">&#40;</span> oBrw, n <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//return {|| { CLR_BLACK, ColorCell( oBrw:aRow[ n ]:VALUE ) } }    //Aquí hay un error. Cambia esta linea por la siguiente. &nbsp;//There is an error here. Change this line to the next.</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, ColorCell<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> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:2g88ha0o]", "time": "03:12", "topic": "Colorized cell of xbrowse", "username": "FranciscoA" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-07", "forum": "FiveWin for Harbour/xHarbour", "text": "I have also error\n\n Error occurred at: 07-03-2022, 12:37:57\n Error description: Error BASE/1075 Parametro errato: >\n Args:\n [ 1] = U \n [ 2] = N 0\n\nStack Calls\n===========\n Called from: source\\tipico.prg => COLORCELL( 189 )\n Called from: source\\tipico.prg => (b)CHANGECOLOR( 183 )\n\n\nthe xbrowse\n[code=fw:91f39kc1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />@ <span style=\"color: #000000;\">90</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> &nbsp;oBrw <span style=\"color: #0000ff;\">OF</span> oDlgRitardo &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-80</span> <span style=\"color: #0000ff;\">PIXEL</span> NOBORDER<br />&nbsp; &nbsp; &nbsp; oBrw:<span style=\"color: #000000;\">SetArray</span><span style=\"color: #000000;\">&#40;</span>aData,,,.F.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; SetupBrowserRit<span style=\"color: #000000;\">&#40;</span>oBrw<span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:91f39kc1]\n\n\n[b:91f39kc1]proc SetupBrowserTip(oBrw)[/b:91f39kc1]\n\n[code=fw:91f39kc1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />proc SetupBrowserTip<span style=\"color: #000000;\">&#40;</span>oBrw<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Combinazione\"</span> <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Ba\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Ca\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"FI\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Ge\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Mi\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Na\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Pa\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Ro\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"To\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Ve\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br />&nbsp; &nbsp;ADD COLUMN <span style=\"color: #0000ff;\">TO</span> oBrw HEADER <span style=\"color: #ff0000;\">\"Nz\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> <span style=\"color: #000000;\">&#123;</span>|v,oCol| oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">aArrayData</span><span style=\"color: #000000;\">&#91;</span>oCol:<span style=\"color: #000000;\">oBrw</span>:<span style=\"color: #000000;\">nArrayAt</span>,<span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #0000ff;\">CENTER</span><br /><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br />&nbsp; <br /><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nRowHeight</span> &nbsp; &nbsp;:= <span style=\"color: #000000;\">22</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nClrBorder</span> := CLR_GRAY<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lDrawBorder</span> := .t.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nColorBox</span> := CLR_HRED<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp; &nbsp; &nbsp; := MARQSTYLE_HIGHLWIN7<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lHscroll</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">l2007</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">l2015</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nStretchCol</span> &nbsp; &nbsp; &nbsp; &nbsp; := STRETCHCOL_WIDEST<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lAllowRowSizing</span> &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lAllowColSwapping</span> &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lAllowColHiding</span> &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lRecordSelector</span> &nbsp; &nbsp; := .F.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nColDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nRowDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nRowDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_NOLINES<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nColDividerStyle</span> &nbsp; &nbsp;:= LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lDisplayZeros</span> &nbsp; &nbsp; &nbsp; := .t.<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> i := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span>:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol := :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> i <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style=\"color: #000000;\">nWidth</span> &nbsp; := <span style=\"color: #000000;\">30</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> i ><span style=\"color: #000000;\">1</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oCol:<span style=\"color: #000000;\">bClrStd</span> := ChangeColor<span style=\"color: #000000;\">&#40;</span> oBrw, i <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nWidth</span> &nbsp; := <span style=\"color: #000000;\">100</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">nDataStrAlign</span> &nbsp; := AL_LEFT<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetStyle</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">2018</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;end with<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> ChangeColor<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>|| <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, ColorCell<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> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> ColorCell<span style=\"color: #000000;\">&#40;</span> num <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nColor &nbsp;:= &nbsp;GetSysColor<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">If</span> num= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; nColor := CLR_HGREEN<br />&nbsp; &nbsp; elseif num ><span style=\"color: #000000;\">0</span> .and. num < <span style=\"color: #000000;\">8</span><br />&nbsp; &nbsp; &nbsp; nColor := CLR_WHITE<br />&nbsp; &nbsp; elseif num ><span style=\"color: #000000;\">9</span><br />&nbsp; &nbsp; &nbsp; &nbsp; nColor := CLR_HRED<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">return</span> nColor<br /><br /><br /><br />&nbsp;</div>[/code:91f39kc1]", "time": "12:42", "topic": "Colorized cell of xbrowse", "username": "Silvio.Falconi" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-07", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Silvio,\n\nyou try to \"add\" Codeblock in a Loop but your \"Counter\" does not work that Way.\n\nyou need to use a \"String\" to build a Codeblock so this might work\n[code=fw:3fg1p52c]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">LOCAL</span> cString := <span style=\"color: #ff0000;\">\"{|| { CLR_BLACK, ColorCell( oBrw:aRow[\"</span> + STR<span style=\"color: #000000;\">&#40;</span> n <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\"] ) } }\"</span><br /><span style=\"color: #00C800;\">RETURN</span> &cString</div>[/code:3fg1p52c]", "time": "14:56", "topic": "Colorized cell of xbrowse", "username": "Jimmy" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[b:2gd91ka0]Resolved!!![/b:2gd91ka0]\n\n[img:2gd91ka0]https&#58;//i&#46;postimg&#46;cc/RVJpVKyB/yes&#46;png[/img:2gd91ka0]\n\n FOR i := 2 TO LEN(:aCols)\n oCol := :aCols[ i ]\n oCol:nWidth := 30\n :aCols[ i ]:bClrStd := ChangeColor( oBrw, i )\n NEXT", "time": "13:30", "topic": "Colorized cell of xbrowse", "username": "Silvio.Falconi" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "If I use \n:nMarqueeStyle := MARQSTYLE_HIGHLWIN7\nthe n I not see the right color\n\nHow I can to hav the bar nmarquee on only first column ?", "time": "13:39", "topic": "Colorized cell of xbrowse", "username": "Silvio.Falconi" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Silvio.Falconi\":wl8x30dh]\nHow I can to hav the bar nmarquee on only first column ?[/quote:wl8x30dh]\n\nI do it like that:\n\n[code=fw:wl8x30dh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">   WITH OBJECT oBrw<br />      :<span style=\"color: #000000;\">nMarqueeStyle</span>       := MARQSTYLE_HIGHLCELL <br />      :<span style=\"color: #000000;\">lColChangeNotify</span>  := .t.  <br />      :<span style=\"color: #000000;\">bChange</span>               := <span style=\"color: #000000;\">&#123;</span> |o| <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">nColSel</span><><span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">nColSel</span>:=<span style=\"color: #000000;\">1</span>, o:<span style=\"color: #000000;\">RefreshCurrent</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END</div>[/code:wl8x30dh]", "time": "02:13", "topic": "Colorized cell of xbrowse", "username": "FranciscoA" } ]
Colorized cell of xbrowse
[ { "date": "2022-03-09", "forum": "FiveWin for Harbour/xHarbour", "text": "THANKS\n\n[img:y6v5axum]https&#58;//i&#46;postimg&#46;cc/ydhHSdcM/JJJJ&#46;png[/img:y6v5axum]", "time": "13:19", "topic": "Colorized cell of xbrowse", "username": "Silvio.Falconi" } ]
Colorized cell of xbrowse
[ { "date": "2021-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello friends!\n\nI need a little help, I have a color in decimal (for example 6736896). How to get tones above or below, what's the logic?\n\nThanks", "time": "00:27", "topic": "Colors (SOLVED)", "username": "ctoas" } ]
Colors (SOLVED)
[ { "date": "2021-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Christiano,\n\n? hb_NumToHex( 6736896 ) => 0x[color=#FF0000:r6k6f0b7]66[/color:r6k6f0b7][color=#008040:r6k6f0b7]CC[/color:r6k6f0b7][color=#0000FF:r6k6f0b7]00[/color:r6k6f0b7] (hexadecimal)\n\n? hb_NumToHex( hb_bitAnd( 6736896, 0x[color=#FF0000:r6k6f0b7]FF[/color:r6k6f0b7]0000 ) / 0xFF00 ) \n? hb_NumToHex( hb_bitAnd( 6736896, 0x00[color=#008000:r6k6f0b7]FF[/color:r6k6f0b7]00 ) / 0x00FF ) \n? hb_NumToHex( hb_bitAnd( 6736896, 0x0000[color=#0000FF:r6k6f0b7]FF[/color:r6k6f0b7] ) ) \n\nIn FWH\\include\\colors.ch there is a:\n\n#translate RGB( <nRed>, <nGreen>, <nBlue> ) => ;\n ( <nRed> + ( <nGreen> * 256 ) + ( <nBlue> * 65536 ) )", "time": "08:09", "topic": "Colors (SOLVED)", "username": "Antonio Linares" } ]
Colors (SOLVED)
[ { "date": "2021-06-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Antonio", "time": "18:56", "topic": "Colors (SOLVED)", "username": "ctoas" } ]
Colors (SOLVED)
[ { "date": "2021-06-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nabout the color-adjustment of a given color\ncan be selected with the slider or a imageclick\n\n[quote:eue8k7le][b:eue8k7le]How to get tones above or below, what's the logic?[/b:eue8k7le][/quote:eue8k7le]\n\n[b:eue8k7le]Visual adjustment[/b:eue8k7le]\nA gradient created from < white . Your color. black >\nThis tool uses a given value as Dec or RGB\nthe startposition is 0.5 and can be adjusted to lighter or darker\n[size=150:eue8k7le][color=#0000FF:eue8k7le]6736896[/color:eue8k7le][/size:eue8k7le]\n\n[img:eue8k7le]http&#58;//www&#46;service-fivewin&#46;de/images/Coloradjust1&#46;jpg[/img:eue8k7le]\n\nis that what You want to do <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "13:58", "topic": "Colors (SOLVED)", "username": "ukoenig" } ]
Colors (SOLVED)
[ { "date": "2021-06-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Uwe, thanks for replying.\n\nI'm adjusting the visual part of my calendar, as the user can change the predominant color of the screen, the calendar has differences in the colors of today, Sundays and holidays. In the way I'm doing it, in some situations it's out of color.\n\nSo I want to calculate to get a few shades above or below the predominant color.\n\n[img:2adg5hjd]http&#58;//maxxtech&#46;com&#46;br/forum/calendario&#46;jpg[/img:2adg5hjd]\n\nHugs", "time": "14:24", "topic": "Colors (SOLVED)", "username": "ctoas" } ]
Colors (SOLVED)
[ { "date": "2021-06-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe useful for You\n\npaint colors from a given DEC or RGB-value\nor use predefined colors\nYou can save and restore 4 colors\nadjust the color with the slider or click inside the image\nas well You get the colornames\nthe ??? buttons will paint the color and shows the values\n\n[img:11lkm6ur]http&#58;//www&#46;service-fivewin&#46;de/images/CAdjust1&#46;jpg[/img:11lkm6ur]\n\nDownload\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/CAdjust.zip\">http://www.service-fivewin.de/DOWNLOADS/CAdjust.zip</a><!-- m -->\n\nbest regards\nUwe", "time": "16:34", "topic": "Colors (SOLVED)", "username": "ukoenig" } ]
Colors (SOLVED)
[ { "date": "2021-06-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi.\n\nI haven't touched it yet but that's almost what I need when using the slider but automatically, I think it would be more interesting in my case although I could do something similar and let the user choose the tone they prefer.\n\nWould it be possible to share so you can have a beginning?\n\nHugs", "time": "16:53", "topic": "Colors (SOLVED)", "username": "ctoas" } ]
Colors (SOLVED)
[ { "date": "2021-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":vbloth36]Christiano,\n\n? hb_NumToHex( 6736896 ) => 0x[color=#FF0000:vbloth36]66[/color:vbloth36][color=#008040:vbloth36]CC[/color:vbloth36][color=#0000FF:vbloth36]00[/color:vbloth36] (hexadecimal)\n\n? hb_NumToHex( hb_bitAnd( 6736896, 0x[color=#FF0000:vbloth36]FF[/color:vbloth36]0000 ) / 0xFF00 ) \n? hb_NumToHex( hb_bitAnd( 6736896, 0x00[color=#008000:vbloth36]FF[/color:vbloth36]00 ) / 0x00FF ) \n? hb_NumToHex( hb_bitAnd( 6736896, 0x0000[color=#0000FF:vbloth36]FF[/color:vbloth36] ) ) \n[/quote:vbloth36]\nI must disagree, the correct formulas are:\n? hb_NumToHex( hb_bitAnd( 6736896, 0x[color=#FF0000:vbloth36]FF[/color:vbloth36]0000 ) / 0x10000 ) \n? hb_NumToHex( hb_bitAnd( 6736896, 0x00[color=#008000:vbloth36]FF[/color:vbloth36]00 ) / 0x100 ) \n? hb_NumToHex( hb_bitAnd( 6736896, 0x0000[color=#0000FF:vbloth36]FF[/color:vbloth36] ) ) \nor better\n? hb_NumToHex( hb_bitShift( hb_bitAnd( 6736896, 0x[color=#FF0000:vbloth36]FF[/color:vbloth36]0000 ) ,-16) ) \n? hb_NumToHex( hb_bitShift( hb_bitAnd( 6736896, 0x00[color=#008000:vbloth36]FF[/color:vbloth36]00 ) ,-8) ) \n? hb_NumToHex( hb_bitAnd( 6736896, 0x0000[color=#0000FF:vbloth36]FF[/color:vbloth36] ) )", "time": "15:51", "topic": "Colors (SOLVED)", "username": "AntoninoP" } ]
Colors (SOLVED)
[ { "date": "2021-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "I added some new options\n\n1, testing the color as a dialog-brush ( ON / OFF )\n2. saving a color to INI pos. 1, this color is displayed at new start\n3. copy to clipboard\n4. some internal fixes\n\nctoas \nwhat sections do You need ?\nI can delete the unneeded parts for better reading. \n\n[img]http:/CAdjust2.jpg[/img]\n\nDownload\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/CAdjus1t.zip\">http://www.service-fivewin.de/DOWNLOADS/CAdjus1t.zip</a><!-- m -->\n\n\n[size=150:fga4y0ih]The extracted main-functions[/size:fga4y0ih]\nnow it is easy to include this color-adjustment in Your own application\n\n[img:fga4y0ih]http&#58;//www&#46;service-fivewin&#46;de/images/CAdjust3&#46;jpg[/img:fga4y0ih]\n\nDownload\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/CAdjus12.zip\">http://www.service-fivewin.de/DOWNLOADS/CAdjus12.zip</a><!-- m -->\n\nbest regards\nUwe", "time": "12:24", "topic": "Colors (SOLVED)", "username": "ukoenig" } ]
Colors (SOLVED)
[ { "date": "2021-06-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Uwe, thanks for the reply.\n\nIt's already a good size for you to share. Now I turn around!\n\nI appreciate the help!", "time": "19:19", "topic": "Colors (SOLVED)", "username": "ctoas" } ]
Colors (SOLVED)
[ { "date": "2021-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I tested and added a horizontal solution\na little colorpicker and control-fields of the pickpositions as a info\nare included as well.\n\nBecause of the 2. slider it is posssible to compare 2 colorlevels\nlike the image shows ( bright and dark )\n< Create > a new color will update both sliders and all fields\n\nI think it will give You the basics to create Your own tool.\n\n[img:qpfcfkhc]http&#58;//www&#46;service-fivewin&#46;de/images/CAdjust4&#46;jpg[/img:qpfcfkhc]\n\nDownload\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/CAdjust3.zip\">http://www.service-fivewin.de/DOWNLOADS/CAdjust3.zip</a><!-- m -->\n\nthe needed calculations are included inside the prg\n[code=fw:qpfcfkhc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// calculation vertical</span><br /><span style=\"color: #B900B9;\">// ------------------------</span><br /><span style=\"color: #B900B9;\">// imageheight = 300</span><br /><span style=\"color: #B900B9;\">// sliderheight = 330</span><br /><span style=\"color: #B900B9;\">// slidertop = imagetop - 15</span><br /><span style=\"color: #B900B9;\">// slidermarks = 11 = 10 spaces</span><br /><span style=\"color: #B900B9;\">// slider-pixelrowpos = slider rowpos * 10</span><br /><span style=\"color: #B900B9;\">// sliderpos on imageclick = imagepixelpos / 300</span><br /><span style=\"color: #B900B9;\">// imagepos on sliderclick = sliderpos * 30</span><br /><span style=\"color: #B900B9;\">// image-columnpos = imagewidth / 2 = 25</span><br /><br /><span style=\"color: #B900B9;\">// calculation horizontal</span><br /><span style=\"color: #B900B9;\">// --------------------------</span><br /><span style=\"color: #B900B9;\">// imagewidth = 340</span><br /><span style=\"color: #B900B9;\">// sliderwidth = 370</span><br /><span style=\"color: #B900B9;\">// sliderleft = imagejeft - 15</span><br /><span style=\"color: #B900B9;\">// slidermarks = 11 = 10 spaces</span><br /><span style=\"color: #B900B9;\">// slider-pixel-colpos = slider colpos * 10</span><br /><span style=\"color: #B900B9;\">// sliderpos on imageclick = imagepixelpos / 340</span><br /><span style=\"color: #B900B9;\">// imagepos on sliderclick = sliderpos * 34</span><br /><span style=\"color: #B900B9;\">// image-rowpos = imageheight / 2 = 22</span><br /> </div>[/code:qpfcfkhc]\n\nbest regards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "07:52", "topic": "Colors (SOLVED)", "username": "ukoenig" } ]
Colors (SOLVED)
[ { "date": "2019-06-03", "forum": "FiveWin for Harbour/xHarbour", "text": "How add color on RptAddColumn ?\n\nsample : list of products like Paint shop and I want to show the color in print\n\nI saw with Printer class it is possible but with Report Class I not understood How make it", "time": "18:16", "topic": "Colors RptAddColumn", "username": "Silvio.Falconi" } ]
Colors RptAddColumn
[ { "date": "2008-09-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear friends!\r\n\r\nExists a way to change the colors of font at treeview but, one color for each item?", "time": "18:45", "topic": "Colors for TTreeView, one for each item!?", "username": "JC" } ]
Colors for TTreeView, one for each item!?
[ { "date": "2008-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "anybody?", "time": "20:35", "topic": "Colors for TTreeView, one for each item!?", "username": "JC" } ]
Colors for TTreeView, one for each item!?
[ { "date": "2008-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Julio,\r\n\r\nHave you ever seen that on a tree control before? I doubt that it is possible as it would require a different font for each item.\r\n\r\nJames", "time": "20:55", "topic": "Colors for TTreeView, one for each item!?", "username": "James Bott" } ]
Colors for TTreeView, one for each item!?
[ { "date": "2008-09-04", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":2jfm9l8a]Julio,\n\nHave you ever seen that on a tree control before? I doubt that it is possible as it would require a different font for each item.\n\nJames[/quote:2jfm9l8a]\r\n\r\nYes but, not in fivewin. I have used the setColor() method and setFont() too... but, has changed all tree.\r\nReally, I want to make the nodes with bold style and another color different of the children. Some like this!", "time": "21:02", "topic": "Colors for TTreeView, one for each item!?", "username": "JC" } ]
Colors for TTreeView, one for each item!?
[ { "date": "2008-09-05", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"James Bott\":1b0d3u2e]Julio,\n\nHave you ever seen that on a tree control before? I doubt that it is possible as it would require a different font for each item.\n\nJames[/quote:1b0d3u2e]\r\nJames, I found same examples of this TreeView. All they are very pretty!\r\n[img:1b0d3u2e]http&#58;//www&#46;infovark&#46;com/blog/wp-content/uploads/2007/11/treeview&#46;gif[/img:1b0d3u2e]\r\n[img:1b0d3u2e]http&#58;//www&#46;filebuzz&#46;com/software_screenshot/full/22251-tree_view_outliner&#46;gif[/img:1b0d3u2e]\r\n[img:1b0d3u2e]http&#58;//www&#46;sharewareplaza&#46;com/images/screenshot/32950&#46;gif[/img:1b0d3u2e]", "time": "13:22", "topic": "Colors for TTreeView, one for each item!?", "username": "JC" } ]
Colors for TTreeView, one for each item!?
[ { "date": "2008-09-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Julio,\r\n\r\nWell, it seems that it can be done with the tree common control.\r\n\r\nI have found some information about doing this with C here:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://msdn.microsoft.com/en-us/library/bb761817(VS.85\">http://msdn.microsoft.com/en-us/library/bb761817(VS.85</a><!-- m -->).aspx\r\n\r\nBut, it is beyond my knowledge and understanding of how to do it.\r\n\r\nRegards,\r\nJames", "time": "16:15", "topic": "Colors for TTreeView, one for each item!?", "username": "James Bott" } ]
Colors for TTreeView, one for each item!?
[ { "date": "2009-08-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Any news to this one?\nI could use different fonts in TTreeView as well!\n\nRegards,\nDietmar", "time": "13:11", "topic": "Colors for TTreeView, one for each item!?", "username": "Dietmar Jahnel" } ]
Colors for TTreeView, one for each item!?
[ { "date": "2006-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nHow to place a blue bar in the left side of the menus? \n\nThanks,", "time": "02:59", "topic": "Colors in menus", "username": "vilian" } ]
Colors in menus
[ { "date": "2006-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Vilian,\n\nYou need to modify MENUDRAWITEM() in source\\winapi\\menus.c", "time": "07:43", "topic": "Colors in menus", "username": "Antonio Linares" } ]
Colors in menus
[ { "date": "2006-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Antonio,\n\nThanks.", "time": "14:43", "topic": "Colors in menus", "username": "vilian" } ]
Colors in menus
[ { "date": "2008-07-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\r\n\r\nIt's maybe a stange question but is it possible to give a color instead of a bitmap calling BTNBMP?\r\nI'm using this buttons in a touchscreen application and the customer can change the color of the buttons.\r\nWhat I did till now is creating a bitmap-drawing for each main color (YELLOW,RED, GREEN,...) with that color.\r\nThe customer can chose a color from a list and than I'm setting that bitmap to the button.\r\nNow I have 9 colors to chose from, but if I want to have more colors I have to create a new bitmap for each color.\r\nIt would be easyer to just call the button with the color...\r\n\r\nThanks", "time": "10:03", "topic": "Colors of btnbmp", "username": "Marc Vanzegbroeck" } ]
Colors of btnbmp
[ { "date": "2008-07-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[code:17a7f0qh]#include \"Fivewin&#46;ch\"\n\n\nFUNCTION MAIN&#40;&#41;\n\n LOCAL oDlg, oBtn\n\n LOCAL cVar &#58;= SPACE&#40; 20 &#41;\n\n DEFINE DIALOG oDlg\n\n @ 1, 1 GET cVar\n\n @ 30, 10 BTNBMP oBtn PROMPT \"Close\";\n ACTION oDlg&#58;End&#40;&#41;\n\n oBtn&#58;SetColor&#40; CLR_RED, CLR_YELLOW &#41;\n\n ACTIVATE DIALOG oDlg;\n CENTER\n\n RETURN NIL[/code:17a7f0qh]\r\n\r\nEMG", "time": "10:17", "topic": "Colors of btnbmp", "username": "Enrico Maria Giordano" } ]
Colors of btnbmp
[ { "date": "2008-07-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Enrico,\r\n\r\nIt's working very nice!!\r\n\r\nMarc", "time": "10:45", "topic": "Colors of btnbmp", "username": "Marc Vanzegbroeck" } ]
Colors of btnbmp
[ { "date": "2006-01-09", "forum": "FiveMac / FivePhone (iPhone, iPad)", "text": "When I preview a multiple page report and then print it, the Dialog box that prompts for printing pages range has a white background color instead of the Dialog box color behind all the text. Can this be fixed? It looks a bit strange.\n\nDan", "time": "13:00", "topic": "Colors on Multiple Page Printing Dialog", "username": "Dan Landon" } ]
Colors on Multiple Page Printing Dialog
[ { "date": "2006-01-09", "forum": "FiveMac / FivePhone (iPhone, iPad)", "text": "Dan,\n\nCould you please post a screenshot of it ? \n\nPlease use <!-- m --><a class=\"postlink\" href=\"http://www.imageshack.us\">http://www.imageshack.us</a><!-- m --> to host the image and place here the provided url.", "time": "14:05", "topic": "Colors on Multiple Page Printing Dialog", "username": "Antonio Linares" } ]
Colors on Multiple Page Printing Dialog
[ { "date": "2006-01-10", "forum": "FiveMac / FivePhone (iPhone, iPad)", "text": "Hello Antonio,\n\nThe newer prev32.dll fixed the problem. I was using an older version of the prev32.dll.\n\nThanks\nDan", "time": "23:58", "topic": "Colors on Multiple Page Printing Dialog", "username": "Dan Landon" } ]
Colors on Multiple Page Printing Dialog
[ { "date": "2014-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola,\nQuería comunicaros que he liberado el código fuente de mi programa de contraseñas.\n\n[url:ia2yc2lh]http&#58;//cincomundos&#46;wordpress&#46;com/2014/06/04/colossus-es-ahora-lgpl/[/url:ia2yc2lh]\n\nSaludos,\nJosé Luis", "time": "16:26", "topic": "Colossus es ahora LGPL", "username": "José Luis Sánchez" } ]
Colossus es ahora LGPL
[ { "date": "2014-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Jose Luís:\n\nMuchas gracias por tu generosidad.", "time": "21:00", "topic": "Colossus es ahora LGPL", "username": "Manuel Aranda" } ]
Colossus es ahora LGPL
[ { "date": "2014-06-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Gracias José Luis por el aporte.\n\nSaludos,\n\nAdhemar", "time": "21:09", "topic": "Colossus es ahora LGPL", "username": "acuellar" } ]
Colossus es ahora LGPL
[ { "date": "2014-06-09", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias, és posible compilar con xHarbour ó solo en Harbour?\n\nGracias, saludos.", "time": "14:38", "topic": "Colossus es ahora LGPL", "username": "karinha" } ]
Colossus es ahora LGPL
[ { "date": "2014-06-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas Gracias Jose\nes un programa que le doy gran utilidad, lo llevo conmigo en el PEN, hoy dia uso tantas password y configuraciones que no podia recordar todas\nmuy generoso de tu parte", "time": "22:24", "topic": "Colossus es ahora LGPL", "username": "postinelli" } ]
Colossus es ahora LGPL
[ { "date": "2018-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi\n\n oSheet:Cells( 5, 10 ):Value=\"*ABC\"\n\nHow to say \"*\" in red and \"ABC\" in black.\n\nThanks\n\nACWoo\nUsing FWH + bcc582\n\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a\u001a", "time": "13:02", "topic": "Colour", "username": "acwoo1" } ]
Colour
[ { "date": "2018-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "oSheet:Cells(5,10):Characters(1,1):Font:Color := CLR_HRED\noSheet:Cells(5,10):Characters(2,3):Font:Color := CLR_BLACK", "time": "15:42", "topic": "Colour", "username": "Massimo Linossi" } ]
Colour
[ { "date": "2018-04-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks\n\nIt works.\n\nRegards\n\nACWoo", "time": "02:21", "topic": "Colour", "username": "acwoo1" } ]
Colour
[ { "date": "2005-10-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello !\n\n At this time TwBrowse have 2 possibilities to colour background of active row - logic lCellStyle . If choose ! lCellStyle , then all active row coloured with one color and the active cell too . I want to do something mix of both styles - paint active row with wanted color and underline with other color active cell . Is it possible ?\n\n Here is my own background painting for bBkColor color :\n\nMETHOD GrPair( nRow, nCol, nStyle, oSel, nFtr ) CLASS TWBrowse // Rimantas U.\n local nClr := ::nClrPane\n default nFtr := NIL\n\n if nStyle == 1 .or. nStyle == 2 // headers and footers\n nClr := GetSysColor( 15 )\n if nStyle == 1 .and. nFtr # NIL\n if nFtr == nCol\n nClr := nRGB( 192, 192, 192 )\n endif\n endif\n elseif nStyle == 3 // active cells\n nClr := GetSysColor( 13 )\n if ( ::lCellStyle .and. nCol == ::nColAct ) .or. !::lCellStyle\n if oSel <> NIL .and. oSel:lSelect\n nClr := nRGB( 128, 128, 128 ) // CLR_GRAY\n endif\n endif\n elseif nStyle == 0 // normal cells\n if oSel <> NIL .and. oSel:lSelect\n nClr := nRGB( 192, 192, 192 ) // CLR_HGRAY\n else\n if ::aGrPair[ 1 ] # ::aGrPair[ 2 ]\n if ::nGrRec != if( upper( ::cAlias ) # \"ARRAY\", ( ::cAlias )->( recno() ), ::nAt ) .and. ::lScrolling\n ::nGrRec := if( upper( ::cAlias ) # \"ARRAY\", ( ::cAlias )->( recno() ), ::nAt )\n nClr := ::aGrPair[ 1 ]\n ::aGrPair[ 1 ] := ::aGrPair[ 2 ]\n ::aGrPair[ 2 ] := nClr\n endif\n if nRow % 2 == 0\n nClr := ::aGrPair[ 2 ]\n else\n nClr := ::aGrPair[ 1 ]\n endif\n else\n nClr := NIL\n endif\n // for active row\n if nRow == ::nRowPos\n nClr := nRGB( 0, 200, 255 )\n endif\n endif\n endif\nreturn( nClr )\n\n The problem : repainting of background after moving with Up and Down keys . It leave the same background colour an the previuos line . I tried to correct GoUp() and GoDown() methods adding Refresh . It did the job , but it slowness browse too .. :-(( . With PgDown and PgUp it works OK , because here its repainting of all browse . Maybe you can help me in this situation ?\n\n With best regards ! Rimantas .", "time": "06:08", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi ! After some tests I did what I wanted . Maybe it's not so good solution , but that works fine . In GoUp and GoDown methods I added some lines :\n\nMETHOD GoUp() CLASS TWBrowse\n\n local nSkipped\n local nLines := ::nRowCount()\n // 2 new lines here\n local nRowPrv := ::nRowPos\n local nRecNew := nRecPrv := ( ::cAlias )->( recno() )\n\n if ( ::nLen := Eval( ::bLogicLen ) ) < 1\n return nil\n endif\n\n if ! ::lHitTop\n ::DrawLine()\n if ::Skip( -1 ) == -1\n ::lHitBottom := .f.\n if ::nRowPos > 1\n ::nRowPos--\n else\n ::lScrolling := .T. //fgam\n WBrwScrl( ::hWnd, -1, If( ::oFont != nil, ::oFont:hFont, 0 ), ::nLineStyle )\n endif\n else\n ::lHitTop := .t.\n endif\n ::DrawSelect()\n if ::oVScroll != nil\n If ::bLogicPos != Nil // By CeSoTech\n ::oVScroll:SetPos( _POSVSCROLL_ )\n else\n ::oVScroll:GoUp()\n endif\n endif\n // it's needful to repaint previuos line\n // ::lCellMix , my new parameter \n if !::lHitTop .and. ::lCellStyle .and. ::lCellMix\n if nRowPrv == 1 // if go up at the top of browse\n nRowPrv ++\n endif\n nRecNew := ( ::cAlias )->( recno() )\n ( ::cAlias )->( dbgoto( nRecPrv ) )\n ::DrawLine( nRowPrv )\n ( ::cAlias )->( dbgoto( nRecNew ) )\n endif\n\n if ::bChange != nil\n Eval( ::bChange, Self )\n endif\n endif\n\nreturn nil\n\n//----------------------------------------------------------------------------//\n\nMETHOD GoDown() CLASS TWBrowse\n\n local nSkipped\n local nLines := ::nRowCount()\n local nRecPrv := ( ::cAlias )->( recno() )\n local nRowPrv := ::nRowPos\n local nRecNew\n\n if ( ::nLen := Eval( ::bLogicLen ) ) < 1\n return nil\n endif\n\n if ! ::lHitBottom\n ::DrawLine()\n if ::Skip( 1 ) == 1\n ::lHitTop := .f.\n if ::nRowPos < nLines\n ::nRowPos++\n else\n ::lScrolling := .T. //fgam\n WBrwScrl( ::hWnd, 1, If( ::oFont != nil, ::oFont:hFont, 0 ), ::nLineStyle )\n endif\n else\n ::lHitBottom := .t.\n endif\n ::DrawSelect()\n if ::oVScroll != nil\n If ::bLogicPos != Nil // By CeSoTech\n ::oVScroll:SetPos( _POSVSCROLL_ )\n else\n ::oVScroll:GoDown()\n endif\n endif\n if !::lHitBottom .and. ::lCellStyle .and. ::lCellMix\n if nRowPrv == nLines\n nRowPrv --\n endif\n nRecNew := ( ::cAlias )->( recno() )\n ( ::cAlias )->( dbgoto( nRecPrv ) )\n ::DrawLine( nRowPrv )\n ( ::cAlias )->( dbgoto( nRecNew ) )\n endif\n if ::bChange != nil\n Eval( ::bChange, Self )\n endif\n endif\n\nreturn nil\n\n Now I'm seeing actual row in selected color and with active cell . One my customer asked about that possibility , because it's more easy to detect in which row you are and then only with <- and -> keys you can go to needful column and then press enter to correct data .\n\n With best regards ! Rimantas .", "time": "09:45", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Just curious if you are using Borland or MSVC as your C++ compiler. I would like to be able to re-compile TWbrowse with Microsoft but am hung up on the naitave .c code.\n\nRick Lipkin\nSC Dept of Health, USA", "time": "15:07", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rick Lipkin" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Rick Lipkin\"]Just curious if you are using Borland or MSVC as your C++ compiler. I would like to be able to re-compile TWbrowse with Microsoft but am hung up on the naitave .c code.\n\n Hi Rick ! I can't to run FWH with MS C++ compiler . It seems that my olds FWH libraries ( 2.5 ver of 2004 October ) are buggies for that compiler . Antonio , as ussual , promised to view about that . But that was promise ... So I leaved with BC ++ . \n\n With best regards ! Rimantas .", "time": "06:37", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Also I did this my paint fully - as for DBF as for array . For mouse move too . It works fine . I did one method :\n\nMETHOD LineRepaint( nRowPrv, nRecPrv, nDirection ) CLASS TWBrowse\nlocal nRecNew := if( upper( ::cAlias ) != \"ARRAY\", ( ::cAlias )->( recno() ), ::nAt )\ndefault nDirection := 0\n\nif ::lCellStyle\n\n if nDirection == 1\n if !::lHitTop .and. nRowPrv == 1\n nRowPrv ++\n endif\n elseif nDirection == 2\n if !::lHitBottom .and. nRowPrv == ::nRowCount()\n nRowPrv --\n endif\n endif\n if nRowPrv # ::nRowPos\n\n if upper( ::cAlias ) != \"ARRAY\"\n ( ::cAlias )->( dbgoto( nRecPrv ) )\n else\n ::nAt := nRecPrv\n endif\n\n ::DrawLine( nRowPrv )\n\n if upper( ::cAlias ) != \"ARRAY\"\n ( ::cAlias )->( dbgoto( nRecNew ) )\n else\n ::nAt := nRecNew\n endif\n\n endif\n\nendif\nreturn( NIL )\n\n And in GoUp, GoDown, LButtonDow, PageDown I added this method after ::DrawSelect() . In mentioned methods two vars added :\n\nlocal nRowPrv := ::nRowPos\nlocal nRecPrv := if( upper( ::cAlias ) # \"ARRAY\", ( ::cAlias )->( recno() ), ::nAt )\n\n only in GoUp and GoDown nDirection it's needful . Because if you reach browse top and bottom , but don't lHitTop and lHitBottom , then only this lines are repainted , so it's needful ++ or -- for this the previuos line .\n \n With best regards ! Rimantas", "time": "06:46", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\n[quote=\"Rimantas\":3tyfcv3r]It seems that my olds FWH libraries ( 2.5 ver of 2004 October ) are buggies for that compiler . Antonio , as ussual , promised to view about that. But that was promise ... So I leaved with BC ++.[/quote:3tyfcv3r]\n\nIts an old version and new Microsoft compiler versions. We can't make miracles, sorry <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "09:22", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Antonio Linares" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":1pa2em5r]Rimantas,\n\nIts an old version and new Microsoft compiler versions. We can't make miracles, sorry <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->[/quote:1pa2em5r]\n\n Excuse , Antonio , but I can't agree . When I buyed FWH I don't checked have bugs your libs for MS compiler or not . But in my opinion , your libs must be without bugs . So please , give me information which MS compiler works with your libs ( 2004 October ) or give libs without bugs .\n\n With best regards ! Rimantas", "time": "09:46", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\nTell me a software product that does not have bugs. Software is constantly in evolution, towards a new version, with more functionality and as few bugs as possible.\n\nFWH 2.4 version has more than two years. Our software is constantly evolving, and its quite difficult to support a two years old version.", "time": "10:27", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Antonio Linares" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "[Tell me a software product that does not have bugs. Software is constantly in evolution, towards a new version, with more functionality and as few bugs as possible.\n\nFWH 2.4 version has more than two years. Our software is constantly evolving, and its quite difficult to support a two years old version.[/quote]\n\n All other softwares have freely accessible correction of bugs . I buyed your libs at 2004 September , you let me upgrade to October version also , because you promised for that ActiveX support . That's OK . With BCC all is working . Today is 2005 October. One year passed . At July-August I tried your libs with MS VC and found that they are buggy . But it's true to believe , that at this time from 2004.09 to 2005.07 nothing was working with 2004.09-10 FWH versions with MS VC compiler and that they buyed new version for that compiler , without bugs ... Of course , I can't to direct how to organize your own job . But ... I think that this discusion is a waste of time . Because I don't have any means for you to correct libs or something similar . And you and I have own trues and opinions . So good luck to you , please , create software without bugs <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> . Be more careful .\n\n With best regards ! Rimantas .", "time": "19:07", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Rimantas,\n\n> At July-August I tried your libs with MS VC and found that they are buggy \n\nCould you please describe what bugs are them and how to reproduce them ? Thanks.", "time": "20:33", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Antonio Linares" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-16", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2por9vnz]Rimantas,\n\n> At July-August I tried your libs with MS VC and found that they are buggy \n\nCould you please describe what bugs are them and how to reproduce them ? Thanks.[/quote:2por9vnz]\n\n Of course ! At first I tried to build FWH samples with MS VC ( mine Visual studio 98 , VC++ 6 ver. ) . xHarbour binaries downloaded from xHarbour.org ( 0.99.50 version ) . I only changed needful paths in your buildxm.bat . All buildings of samples are stopped on the same error . Log of trying to build testtcbr :\n\n rtl.lib(dateshb.obj) : warning LNK4006: \"void __cdecl HB_FUN_STOD(void)\" \n\n(?HB_FUN_STOD@@YAXXZ) already defined in FiveHCM.lib(OR.obj); second definition ignored\nrtl.lib(math.obj) : warning LNK4006: __matherr already defined in \n\nLIBC.lib(matherr.obj); second definition ignored\nFiveHCM.lib(FFDLGPRC.obj) : error LNK2001: unresolved external symbol \"struct METHOD * \n\n__cdecl hb_objGetpMethod(struct _HB_ITEM *,struct HB_SYMB *)\" \n\n(?hb_objGetpMethod@@YAPAUMETHOD@@PAU_HB_ITEM@@PAUHB_SYMB@@@Z)\ntesttcbr.exe : fatal error LNK1120: 1 unresolved externals\n\n In all builds the same : the 2 warnings and the error on FFDLGPRC.obj . Maybe it's the only one bug . Sorry , but my compilation allways stopped on this error and I don't know exist them more or not ...\n\n With best regards ! Rimantas .", "time": "18:36", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-17", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":54hcrqq1]Rimantas,\n\nTell me a software product that does not have bugs. Software is constantly in evolution, towards a new version, with more functionality and as few bugs as possible.\n\nFWH 2.4 version has more than two years. Our software is constantly evolving, and its quite difficult to support a two years old version.[/quote:54hcrqq1]\n\n Excuse me , I mixed up years and version <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> . Mine is FWH 2.5 of 2004 October .\n\n With best regards !", "time": "05:35", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2005-10-18", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":2m2fnwaz]Rimantas,\n\n> At July-August I tried your libs with MS VC and found that they are buggy \n\nCould you please describe what bugs are them and how to reproduce them ? Thanks.[/quote:2m2fnwaz]\n \n Excuse me , but maybe I'm not so patient <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( --> . Are any news about that ?\n\n With best regards ! Rimantas .", "time": "10:09", "topic": "Colouring TwBrowse ( Hernan's )", "username": "Rimantas" } ]
Colouring TwBrowse ( Hernan's )
[ { "date": "2017-10-12", "forum": "FiveWin for Harbour/xHarbour", "text": "hi to all,\nI would Like a column in XBROWSE with result of function:\n[code=fw:yuxx3n48]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />oRs := FW_OpenRecordSet<span style=\"color: #000000;\">&#40;</span> oCn, tuple, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />@ <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-50</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />RECORDSET oRs ;<br />      COLUMNS <span style=\"color: #ff0000;\">\"ONE\"</span>, <span style=\"color: #ff0000;\">\"TWO\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"B\"</span>,  <span style=\"color: #ff0000;\">'MYFUNCTION(fieldC)'</span> ;<br />      <span style=\"color: #0000ff;\">OF</span> oDlg2  <br />....<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MYFUNCTION<span style=\"color: #000000;\">&#40;</span>fieldC<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> x = <span style=\"color: #000000;\">0</span><br />x = fieldc * x<br /><span style=\"color: #00C800;\">return</span> x<br /> </div>[/code:yuxx3n48]\nbut in xbrowse I get costant MYFUNCTION(fieldC) in fifth column instead of x value.\n\nany help?\nthank you", "time": "16:45", "topic": "Column Function in XBROWSE", "username": "damianodec" } ]
Column Function in XBROWSE
[ { "date": "2017-10-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Try removing the single quotes around the function.\n\nEMG", "time": "18:28", "topic": "Column Function in XBROWSE", "username": "Enrico Maria Giordano" } ]
Column Function in XBROWSE
[ { "date": "2017-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "hi Enrico, thank you for your help but if I remove single quote xbrowse goes in myfunction only one time.\nI changed my prg:\n[code=fw:1ivnykmi]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />oYORD := FW_OpenRecordSet<span style=\"color: #000000;\">&#40;</span> oCn, tuple, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />oYORD:<span style=\"color: #000000;\">MoveFirst</span><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> oDlg2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span>  <span style=\"color: #0000ff;\">FONT</span> oFont;<br /><span style=\"color: #0000ff;\">STYLE</span> nOR<span style=\"color: #000000;\">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;<br />              WS_MAXIMIZEBOX, WS_MINIMIZEBOX, WS_THICKFRAME <span style=\"color: #000000;\">&#41;</span> ;<br />              <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"ANALISI IMPLOSIONE: \"</span>+m_get<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">02</span><span style=\"color: #000000;\">&#93;</span><br /><br />@ <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-50</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />     RECORDSET oYord ;<br />  COLUMNS <span style=\"color: #ff0000;\">\"LEVEL\"</span>, <span style=\"color: #ff0000;\">\"FIELD1\"</span>, <span style=\"color: #ff0000;\">\"FIELD2\"</span>, <span style=\"color: #ff0000;\">\"TIPO\"</span>, <span style=\"color: #ff0000;\">\"TIME\"</span>, <span style=\"color: #ff0000;\">\"PROGR\"</span>, MRP00421<span style=\"color: #000000;\">&#40;</span>oYORD:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"FIELD1\"</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">value</span>,oCn<span style=\"color: #000000;\">&#41;</span> ;<br />  HEADERS <span style=\"color: #ff0000;\">\"LIV\"</span>, <span style=\"color: #ff0000;\">\"BASE\"</span>, <span style=\"color: #ff0000;\">\"APERTO\"</span>, <span style=\"color: #ff0000;\">\"TIPO\"</span>, <span style=\"color: #ff0000;\">\"LEAD\"</span>, <span style=\"color: #ff0000;\">\"PROGR\"</span>, <span style=\"color: #ff0000;\">\"IN ORDINE\"</span> ;<br />  <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@ZE 999\"</span>,,,,<span style=\"color: #ff0000;\">\"@ZE 999\"</span>, <span style=\"color: #ff0000;\">\"@ZE 999\"</span> ;<br />  <span style=\"color: #0000ff;\">OF</span> oDlg2 <br />...<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">NIL</span><br /><br />*-----------------------------------------------------------------------------------<br /><span style=\"color: #00C800;\">FUNCTION</span> MRP00421<span style=\"color: #000000;\">&#40;</span>field, oCn<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> tuple, oRs<br /><span style=\"color: #00C800;\">local</span> totale := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span>Field<span style=\"color: #000000;\">&#41;</span><br /><br />    tuple := +;<br />    <span style=\"color: #ff0000;\">\"SELECT a.Totale as Totale...\"</span> +;<br />       etc...etc...etc...<br />    <span style=\"color: #ff0000;\">\"WHERE ARTICOLO = '\"</span>+FIELD+<span style=\"color: #ff0000;\">\"' AND WORKIT = 8 \"</span><br />       etc... etc...<br /><br />oRs := FW_OpenRecordSet<span style=\"color: #000000;\">&#40;</span> oCn, tuple, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">if</span> oRs:<span style=\"color: #000000;\">EOF</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    totale = <span style=\"color: #000000;\">0.00</span><br /><span style=\"color: #00C800;\">else</span><br />    oRs:<span style=\"color: #000000;\">MoveFirst</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    totale = oRs:<span style=\"color: #000000;\">Fields</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Totale\"</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">value</span><br />    <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">&#40;</span>str<span style=\"color: #000000;\">&#40;</span>totale<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span><br /><br />oRs:<span style=\"color: #000000;\">Close</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> Str<span style=\"color: #000000;\">&#40;</span>Totale<span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1ivnykmi]\nI put MSGINFO into FUNCTION MRP00421 for check FIELD and it shows me msginfo only one time with NULL field.\nthe original RECORDSET oYord in XBROWSE had 25 rows and MRP00421 function should return calculate TOTALE (in another SELECT) for each row.\nbut COLUMN \"IN ORDINE\" in XBROWSE retrun 0,00 in each row\n\nI have another my XBROWSE:\n[code=fw:1ivnykmi]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">800</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span>  <span style=\"color: #0000ff;\">FONT</span> oFont;<br />    <span style=\"color: #0000ff;\">STYLE</span> nOR<span style=\"color: #000000;\">&#40;</span> DS_MODALFRAME, WS_POPUP, WS_CAPTION, WS_SYSMENU, ;<br />              WS_MAXIMIZEBOX, WS_MINIMIZEBOX, WS_THICKFRAME <span style=\"color: #000000;\">&#41;</span> ;<br />              <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"SCHEDA MOVIMENTI DI ACQUISTO FORNITORE: \"</span>+CDFOR<br /><br />    @ <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-50</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />      RECORDSET oRsMovimenti ;<br />      COLUMNS <span style=\"color: #ff0000;\">'dAAAAMMGGadata(DATA)'</span>,<span style=\"color: #ff0000;\">\"CODICE\"</span>,<span style=\"color: #ff0000;\">\"DESCR\"</span>,<span style=\"color: #ff0000;\">\"RIFER\"</span>,<span style=\"color: #ff0000;\">\"QTA\"</span>,<span style=\"color: #ff0000;\">\"IMPORT\"</span>,<span style=\"color: #ff0000;\">\"COSTO\"</span> ;<br />      HEADERS <span style=\"color: #ff0000;\">\"DATA\"</span>,<span style=\"color: #ff0000;\">\"CODICE\"</span>,<span style=\"color: #ff0000;\">\"DESCRIZIONE\"</span>,<span style=\"color: #ff0000;\">\"RIFERIM.\"</span>,<span style=\"color: #ff0000;\">\"QUANTITA\"</span>,<span style=\"color: #ff0000;\">\"IMPORTO\"</span>,<span style=\"color: #ff0000;\">\"COSTO\"</span> ;<br />      <span style=\"color: #0000ff;\">PICTURE</span> ,,,,<span style=\"color: #ff0000;\">\"@ZE 99,999,999.999\"</span>, <span style=\"color: #ff0000;\">\"@ZE 99,999,999.999\"</span>, <span style=\"color: #ff0000;\">\"@ZE 99,999,999.999\"</span> ;</div>[/code:1ivnykmi]\nin this XBROWSE there is dAAAAMMGGadata FUNCTION whit single quotes that convert field DATA from YYYYMMDD to DD/MM/YYYY and it works for each row in oRsMovimenti\n\nthank you", "time": "08:00", "topic": "Column Function in XBROWSE", "username": "damianodec" } ]
Column Function in XBROWSE
[ { "date": "2017-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Sorry, let's wait for Rao advice.\n\nEMG", "time": "08:48", "topic": "Column Function in XBROWSE", "username": "Enrico Maria Giordano" } ]
Column Function in XBROWSE
[ { "date": "2017-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi ,\nWhen i have to do that, i insert a column and use a code block with my function :\n\n oCol:=oLbxp:inscol(4) \n oCol:bStrData:={||QSTOCK(oRsp:Fields(\"NB\"):Value)} \n oCol:cHeader:=\"Total\" \n*\n\n*\nfunction QSTOCK(p)\nreturn p/2\n\n\nPhilippe .", "time": "11:47", "topic": "Column Function in XBROWSE", "username": "Jack" } ]
Column Function in XBROWSE
[ { "date": "2017-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hola,\n\ntry to use a codeblock\n\n[code=fw:2l0fs7ny]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oRs := FW_OpenRecordSet<span style=\"color: #000000;\">&#40;</span> oCn, tuple, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />@ <span style=\"color: #000000;\">40</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-10</span>,<span style=\"color: #000000;\">-50</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />RECORDSET oRs ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style=\"color: #ff0000;\">\"ONE\"</span>, <span style=\"color: #ff0000;\">\"TWO\"</span>, <span style=\"color: #ff0000;\">\"A\"</span>, <span style=\"color: #ff0000;\">\"B\"</span>, &nbsp;<span style=\"color: #000000;\">&#123;</span>|| MYFUNCTION<span style=\"color: #000000;\">&#40;</span>fieldC<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">OF</span> oDlg2 &nbsp;<br />....<br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MYFUNCTION<span style=\"color: #000000;\">&#40;</span>fieldC<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> x = <span style=\"color: #000000;\">0</span><br />x = fieldc * x<br /><span style=\"color: #00C800;\">return</span> x</div>[/code:2l0fs7ny]\n\nBut here we have a performance problem, because xBrowse repaint many time all the data\n\nRegards\n\nMarcelo", "time": "14:13", "topic": "Column Function in XBROWSE", "username": "Marcelo Via Giglio" } ]
Column Function in XBROWSE
[ { "date": "2017-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "hi thank you for your help\nIf I use codeblock, performance is very very slow.\n\nI do not understand because If I use function 'dAAAAMMGGadata(DATA)' that works and with 'MRP00421(oYORD:Fields(\"FIELD1\"):value,oCn)' not works", "time": "14:43", "topic": "Column Function in XBROWSE", "username": "damianodec" } ]
Column Function in XBROWSE
[ { "date": "2017-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "COLUMNS \"ONE\", \"TWO\", \"A\", \"B\", { || MYFUNCTION(fieldC) } ;", "time": "15:04", "topic": "Column Function in XBROWSE", "username": "nageswaragunupudi" } ]
Column Function in XBROWSE
[ { "date": "2017-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "thank you Mr.Rao\nbut is very slowly with codeblock.\n\nwhy in a XBROWSE 'dAAAAMMGGadata(DATA)' works and 'MYFUNCTION(DATA1)' no ?", "time": "15:37", "topic": "Column Function in XBROWSE", "username": "damianodec" } ]
Column Function in XBROWSE
[ { "date": "2017-10-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Speed depends purely on the implementation of the function.\n\n[quote:9pm48u1x]why in a XBROWSE 'dAAAAMMGGadata(DATA)' works and 'MYFUNCTION(DATA1)' no ?[/quote:9pm48u1x]\n\nIf the function is a public function ( i.e., not a static function ) and all parameters are either public/private or field variables, \"MYFUNCTION(PARAMETERS)\" works. In other words, XBrowse should be able to call the function with the parameters from inside xbrowse.\n\nOtherwise, you need to use it as codeblock.", "time": "15:56", "topic": "Column Function in XBROWSE", "username": "nageswaragunupudi" } ]
Column Function in XBROWSE