messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2006-01-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi.\n\nI'm looking at catching GPF's in xHarbour using SetUnhandledExceptionfilter. Has anybody done this already that can provide me with a sample?\n\nThanks,\nAlex", "time": "08:47", "topic": "Catching GPF's", "username": "AlexSchaft" } ]
Catching GPF's
[ { "date": "2006-01-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Alex,\n\nIf you use the xHarbour build we provide from <!-- w --><a class=\"postlink\" href=\"http://www.fivetechsoft.com/files/xharbour.exe\">www.fivetechsoft.com/files/xharbour.exe</a><!-- w --> it already include GPFs catching using SetUnhandledExceptionfilter().\n\nBoth Harbour and xHarbour already include support for SetUnhandledExceptionfilter() but you have to build them using this flag: -DHB_INCLUDE_WINEXCHANDLER\n\nAlso in xharbour this fix is needed in source\\vm\\mainwin.c:\n\n[code:606zwdul]\nint WINAPI WinMain&#40; HINSTANCE hInstance, /* handle to current instance */\n HINSTANCE hPrevInstance, /* handle to previous instance */\n LPSTR lpCmdLine, /* pointer to command line */\n int iCmdShow &#41; /* show state of window */\n&#123;\n #ifdef HB_INCLUDE_WINEXCHANDLER\n LONG WINAPI hb_UnhandledExceptionFilter&#40; struct _EXCEPTION_POINTERS * ExceptionInfo &#41;;\n \n LPTOP_LEVEL_EXCEPTION_FILTER ef = SetUnhandledExceptionFilter&#40; hb_UnhandledExceptionFilter &#41;;\n #endif\n[/code:606zwdul]\n\nAnd rename UnhandledExceptionFilter() as hb_UnhandledExceptionFilter() in source\\vm\\estack.c.\n\nThis code is already included in Harbour CVS files, but it is not in xharbour CVS.", "time": "09:37", "topic": "Catching GPF's", "username": "Antonio Linares" } ]
Catching GPF's
[ { "date": "2006-01-23", "forum": "FiveWin for Harbour/xHarbour", "text": "We're currently using the commercial version of xHarbour. I'll see what I can find out from their newsgroup.\n\nAlex", "time": "09:40", "topic": "Catching GPF's", "username": "AlexSchaft" } ]
Catching GPF's
[ { "date": "2018-04-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Its been a long time since this conversation happened in the Harbour development group:\n\n[url:2uao77ti]https&#58;//groups&#46;google&#46;com/d/msg/harbour-devel/WFnOTGO91gk/RdLiu_JyAWYJ[/url:2uao77ti]\n\nToday I tried to understand Przemek's words again:\n[quote:2uao77ti]Such redirection should be implemented using GT API \nbecause it will in all cases, is portable and much simpler. \nAnyhow it's still not necessary because we have PRG API for it \nso it's enough to catch RTE. [/quote:2uao77ti]\n\nAnd after carefully reviewing Przemek's source code, I found the right way to do it. There is an undocumented second parameter than when specified as .T. it generates RTE (run time errors) that we can easily catch:\n\nErrorBlock( { | o | MsgInfo( o:Description ), DoBreak() } )\noHrb = HB_CompileFromBuf( cCode, [b:2uao77ti].T.[/b:2uao77ti], \"-n\" ) // The .T. does the magic <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nbetter later than never <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->", "time": "04:14", "topic": "Catching HB_CompileFromBuf() errors", "username": "Antonio Linares" } ]
Catching HB_CompileFromBuf() errors
[ { "date": "2018-04-02", "forum": "FiveWin for Harbour/xHarbour", "text": "How I discovered it:\n\nfunction HB_CompileFromBuf() is declared in c:\\harbour\\src\\compiler\\hbcmplib.c and it makes this call:\n\nhb_compGenArgList( 2, hb_pcount(), &argc, &argv, &pIncItem, &pOpenFunc, &pMsgFunc );\n\nNotice the 2. In hb_compGenArgList() we find this code:\n[code=fw:lx8ry9nz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">   <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> pMsgFunc <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #000000;\">&#123;</span><br />      *pMsgFunc = <span style=\"color: #00C800;\">NULL</span>;<br />      <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> HB_ISLOG<span style=\"color: #000000;\">&#40;</span> iFirst <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #000000;\">&#123;</span><br />         <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> hb_parl<span style=\"color: #000000;\">&#40;</span> iFirst <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />            *pMsgFunc = s_pp_msg;<br />         ++iFirst;<br />      <span style=\"color: #000000;\">&#125;</span><br />   <span style=\"color: #000000;\">&#125;</span></div>[/code:lx8ry9nz]\n\nWhich means: If the second parameter (the number 2) is logical and it is true, then s_pp_msg is used to route the compiler msgs.\n\nAnd from s_pp_msg() the runtime error is created:\n[code=fw:lx8ry9nz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">      pError = hb_errRT_New<span style=\"color: #000000;\">&#40;</span> ES_ERROR, <span style=\"color: #ff0000;\">\"COMPILER\"</span>, <span style=\"color: #000000;\">1001</span>, <span style=\"color: #000000;\">&#40;</span> HB_ERRCODE <span style=\"color: #000000;\">&#41;</span> iValue,<br />                             szMsgBuf, szLine, <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">/*OsCode*/</span>, EF_NONE <span style=\"color: #000000;\">&#41;</span>;<br />      hb_errLaunch<span style=\"color: #000000;\">&#40;</span> pError <span style=\"color: #000000;\">&#41;</span>;<br />      hb_errRelease<span style=\"color: #000000;\">&#40;</span> pError <span style=\"color: #000000;\">&#41;</span>;</div>[/code:lx8ry9nz]", "time": "04:29", "topic": "Catching HB_CompileFromBuf() errors", "username": "Antonio Linares" } ]
Catching HB_CompileFromBuf() errors
[ { "date": "2006-05-16", "forum": "FiveWin for CA-Clipper", "text": "Hello all\nHow can I determine what error code a dos app returns. I’m using the blat command line mailer. When the email doesn’t get sent the app returns an non zero errorlevel code. Is there a way to get that code without writing a second app to trap it and pass it along to the main app through a file or something. For exaple\n\n[code:3l9f57k3]\nnError &#58;= WaitRun&#40;‘BLAT&#46;EXE &#46;\\BODY&#46;HTM –s “Test email 11” –t dummy@dummy&#46;dum –html -noh2 –try 3’&#41;\n[/code:3l9f57k3]\n\nAlso can the command be passed to WaitRun through a var.\nThank you", "time": "14:54", "topic": "Catching errorlevel from old dos app", "username": "kronos911" } ]
Catching errorlevel from old dos app
[ { "date": "2006-05-16", "forum": "FiveWin for CA-Clipper", "text": "Try ErrorLevel() function.\n\nEMG", "time": "15:15", "topic": "Catching errorlevel from old dos app", "username": "Enrico Maria Giordano" } ]
Catching errorlevel from old dos app
[ { "date": "2006-05-16", "forum": "FiveWin for CA-Clipper", "text": "Here is a beeter example.\n\n[code:1dkofsb2]\n// erelvl&#46;prg\n#include \"fivewin&#46;ch\"\n\nPROCEDURE Main&#40;&#41;\n LOCAL nErr\n\n nErr &#58;= WaitRun&#40;\"tst2&#46;exe\"&#41;\n MSGInfo&#40;nErr&#41;\n MSGInfo&#40;errorlevel&#40;&#41;&#41; // returns 0\nRETURN\n\n// tst2&#46;prg\n? \"hello to you\"\nerrorlevel&#40;1&#41;\ninkey&#40;3&#41;\n[/code:1dkofsb2]", "time": "15:36", "topic": "Catching errorlevel from old dos app", "username": "kronos911" } ]
Catching errorlevel from old dos app
[ { "date": "2006-05-16", "forum": "FiveWin for CA-Clipper", "text": "Sorry, I don't think that ErrorLevel() function can help you.\n\nEMG", "time": "15:54", "topic": "Catching errorlevel from old dos app", "username": "Enrico Maria Giordano" } ]
Catching errorlevel from old dos app
[ { "date": "2015-03-22", "forum": "FiveWin for Harbour/xHarbour", "text": "I have a table for categories\nI want to show in xBrowse with a tree\n\ncan someone help me?\n\nTable Structure\nID N 3\nParent N 3\nBez C 30\n\n[list:1o4no1ev] Local aData := { ;\n { 1,0 , \"Neu\" }, ;\n { 2,0 , \"OK Kat1\"}, ;\n { 3,0 , \"OK Marken\"}, ;\n { 4,0 , \"OK Kat3\"}, ;\n { 5,3 , \"UK Ford\"}, ;\n { 6,3 , \"UK Opel\"}, ;\n { 7,3 , \"UK VW\"}, ;\n { 8,3 , \"UK Porsche\"}, ;\n { 9,3 , \"OUK Gel„ndewagen\"}, ;\n { 10,9, \"UUK Q7\"}, ;\n { 11,9, \"UUK Kuga\" }, ;\n { 12,9, \"UUK Tucson\"}, ;\n { 13,9, \"UUK Sorento\"}, ;\n { 14,0, \"OK Kat4\"} }\n\n[/list:u:1o4no1ev]\n\nGreeting Manfred", "time": "19:50", "topic": "Category tree with xBrowse", "username": "Gross" } ]
Category tree with xBrowse
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:2zqbmyj4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oFont, oBrw<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oTree<br /><br />&nbsp; &nbsp;CreateTestDBF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oTree &nbsp; &nbsp;:= MakeTree<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</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;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE oTree CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> FWDArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, FwRArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nStretchCol</span> &nbsp;:= <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;oTree:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> MakeTree<br /><br />&nbsp; &nbsp;field <span style=\"color: #0000ff;\">ID</span>,PARENT,BEZ<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oTree, n<br /><br />&nbsp; &nbsp;USE CATG <span style=\"color: #00C800;\">NEW</span> SHARED<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> STR<span style=\"color: #000000;\">&#40;</span>PARENT,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>+STR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">ID</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> TAG PARID <span style=\"color: #0000ff;\">TO</span> TMP MEMORY<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;TREE oTree<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> ! eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n &nbsp; &nbsp; := PARENT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREEITEM <span style=\"color: #ff0000;\">\"Parent - \"</span> + Str<span style=\"color: #000000;\">&#40;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> PARENT == n .and. ! eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREEITEM BEZ<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SKIP<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">enddo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ENDTREE<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">enddo</span><br />&nbsp; &nbsp;ENDTREE<br /><br />&nbsp; &nbsp;oTree:<span style=\"color: #000000;\">OpenAll</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> oTree<br /><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> CreateTestDBF<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aCols := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ID\"</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Parent\"</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Bez\"</span>, &nbsp;<span style=\"color: #ff0000;\">'C'</span>, &nbsp;<span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span> ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">0</span> , <span style=\"color: #ff0000;\">\"Neu\"</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">0</span> , <span style=\"color: #ff0000;\">\"OK Kat1\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">0</span> , <span style=\"color: #ff0000;\">\"OK Marken\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">0</span> , <span style=\"color: #ff0000;\">\"OK Kat3\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"UK Ford\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"UK Opel\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"UK VW\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"UK Porsche\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">9</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"OUK Gel„ndewagen\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"UUK Q7\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">11</span>,<span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"UUK Kuga\"</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">12</span>,<span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"UUK Tucson\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">13</span>,<span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"UUK Sorento\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">14</span>,<span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"OK Kat4\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;DBCREATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CATG\"</span>, aCols, <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, .t., <span style=\"color: #ff0000;\">\"CTG\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;FW_ArrayToDBF<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;CLOSE CTG<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:2zqbmyj4]", "time": "02:23", "topic": "Category tree with xBrowse", "username": "nageswaragunupudi" } ]
Category tree with xBrowse
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "This is cool!\nIf someone want show 2 columns, ID and Bez, \nhow the code becomes ?\nRegards,\nPerry", "time": "11:44", "topic": "Category tree with xBrowse", "username": "AntoninoP" } ]
Category tree with xBrowse
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"AntoninoP\":csymuz6d]This is cool!\nIf someone want show 2 columns, ID and Bez, \nhow the code becomes ?\nRegards,\nPerry[/quote:csymuz6d]\n[code=fw:csymuz6d]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br />REQUEST DBFCDX<br /><br /><span style=\"color: #00C800;\">function</span> main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oFont, oBrw<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oTree<br /><br />&nbsp; &nbsp;CreateTestDBF<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oTree &nbsp; &nbsp;:= MakeTree<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"TAHOMA\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-14</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>,<span style=\"color: #000000;\">500</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</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;\">-10</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE oTree COLUMNS <span style=\"color: #000000;\">1</span> ;<br />&nbsp; &nbsp; &nbsp; HEADERS <span style=\"color: #ff0000;\">\"ID\"</span>, <span style=\"color: #ff0000;\">\"BEZ\"</span> ;<br />&nbsp; &nbsp; &nbsp; COLSIZES <span style=\"color: #000000;\">100</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">AddBitmap</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">&#123;</span> FWDArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, FwRArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"c:<span style=\"color: #000000;\">\\f</span>wh<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\n</span>ew2.bmp\"</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">nStretchCol</span> &nbsp;:= <span style=\"color: #000000;\">2</span><br />&nbsp; &nbsp;oBrw:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">oTreeItem</span>:<span style=\"color: #000000;\">nLevel</span> == <span style=\"color: #000000;\">1</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; &nbsp;oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br />&nbsp; &nbsp;oTree:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> MakeTree<br /><br />&nbsp; &nbsp;field <span style=\"color: #0000ff;\">ID</span>,PARENT,BEZ<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oTree, n<br /><br />&nbsp; &nbsp;USE CATG <span style=\"color: #00C800;\">NEW</span> SHARED<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">INDEX</span> <span style=\"color: #0000ff;\">ON</span> STR<span style=\"color: #000000;\">&#40;</span>PARENT,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>+STR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">ID</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> TAG PARID <span style=\"color: #0000ff;\">TO</span> TMP MEMORY<br />&nbsp; &nbsp;GO TOP<br /><br />&nbsp; &nbsp;TREE oTree<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> ! eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;n &nbsp; &nbsp; := PARENT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREEITEM Str<span style=\"color: #000000;\">&#40;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> CARGO <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Parent - \"</span> + Str<span style=\"color: #000000;\">&#40;</span> n, <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">while</span> PARENT == n .and. ! eof<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TREEITEM STR<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">ID</span>,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span> CARGO <span style=\"color: #000000;\">&#123;</span> BEZ <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SKIP<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">enddo</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ENDTREE<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">enddo</span><br />&nbsp; &nbsp;ENDTREE<br /><br />&nbsp; &nbsp;oTree:<span style=\"color: #000000;\">OpenAll</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> oTree<br /><br /><br /><span style=\"color: #00C800;\">static</span> <span style=\"color: #00C800;\">function</span> CreateTestDBF<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aCols := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"ID\"</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Parent\"</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">\"Bez\"</span>, &nbsp;<span style=\"color: #ff0000;\">'C'</span>, &nbsp;<span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aData := <span style=\"color: #000000;\">&#123;</span> ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">0</span> , <span style=\"color: #ff0000;\">\"Neu\"</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">0</span> , <span style=\"color: #ff0000;\">\"OK Kat1\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">0</span> , <span style=\"color: #ff0000;\">\"OK Marken\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">0</span> , <span style=\"color: #ff0000;\">\"OK Kat3\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"UK Ford\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">6</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"UK Opel\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">7</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"UK VW\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"UK Porsche\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">9</span>,<span style=\"color: #000000;\">3</span> , <span style=\"color: #ff0000;\">\"OUK Gel„ndewagen\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"UUK Q7\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">11</span>,<span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"UUK Kuga\"</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">12</span>,<span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"UUK Tucson\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">13</span>,<span style=\"color: #000000;\">9</span>, <span style=\"color: #ff0000;\">\"UUK Sorento\"</span><span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">14</span>,<span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"OK Kat4\"</span><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp;DBCREATE<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"CATG\"</span>, aCols, <span style=\"color: #ff0000;\">\"DBFCDX\"</span>, .t., <span style=\"color: #ff0000;\">\"CTG\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;FW_ArrayToDBF<span style=\"color: #000000;\">&#40;</span> aData <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;CLOSE CTG<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:csymuz6d]", "time": "12:02", "topic": "Category tree with xBrowse", "username": "nageswaragunupudi" } ]
Category tree with xBrowse
[ { "date": "2015-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank Rao\nUnfortunately, I did not wanted.\n\nthe tree should be\n-Neu\n-OK Kat1\n-OK Marken\n--UK Ford\n--UK Opel\n--UK VW\n--UK Porsche\n--OUK Geländewagen\n---UUK Q7\n---UUK Kuga\n---UUK Tucson\n---UUK Sorento\n-OK Kat3\n-OK Kat4\n\nI have found the solution !\n\n[code=fw:1cr9ng66]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// -----------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">FUNCTION</span> BuildXbTree<span style=\"color: #000000;\">&#40;</span> oCon<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">// -----------------------------------------------------------------------------------------------</span><br />    <span style=\"color: #00C800;\">LOCAL</span> oTree  := <span style=\"color: #00C800;\">NIL</span><br />    <span style=\"color: #00C800;\">LOCAL</span> aRows  := <span style=\"color: #00C800;\">NIL</span><br />    <span style=\"color: #00C800;\">LOCAL</span> oRs<br />    <span style=\"color: #00C800;\">LOCAL</span> cSql := <span style=\"color: #ff0000;\">'SELECT * FROM OSKAT'</span><br /><br />    oRs := TRecSet<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oRs :<span style=\"color: #000000;\">Open</span><span style=\"color: #000000;\">&#40;</span> cSql, oCon <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">if</span> oRs :<span style=\"color: #000000;\">Used</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />        <span style=\"color: #00C800;\">IF</span> oRs:<span style=\"color: #000000;\">RecordCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span><br />            aRows := oRs:<span style=\"color: #000000;\">GetRows</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />            <span style=\"color: #B900B9;\">//oTree := GenSubTree(aRows,0,0,-1)</span><br />            oTree := GenSubTree<span style=\"color: #000000;\">&#40;</span>aRows,<span style=\"color: #00C800;\">NIL</span>,<span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-1</span><span style=\"color: #000000;\">&#41;</span><br />        <span style=\"color: #00C800;\">ENDIF</span><br />       <br />    <span style=\"color: #00C800;\">endif</span><br /><br /><br /><span style=\"color: #00C800;\">return</span> oTree<br /><br /><span style=\"color: #B900B9;\">// -----------------------------------------------------------------------------------------------</span><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> GenSubTree<span style=\"color: #000000;\">&#40;</span> aRows, cSuchId, nAktLevel, nLastLevel<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">// -----------------------------------------------------------------------------------------------</span><br /><br />    <span style=\"color: #00C800;\">local</span> oTree, oItem<br />    <span style=\"color: #00C800;\">LOCAL</span> cBez   := <span style=\"color: #ff0000;\">\"\"</span><br />    <span style=\"color: #00C800;\">LOCAL</span> aRow   := <span style=\"color: #00C800;\">NIL</span><br />    <span style=\"color: #00C800;\">LOCAL</span> nItems := <span style=\"color: #000000;\">0</span><br /><br />    <span style=\"color: #B900B9;\">//altd()</span><br /><br />    <span style=\"color: #00C800;\">IF</span> len<span style=\"color: #000000;\">&#40;</span>aRows <span style=\"color: #000000;\">&#41;</span>> <span style=\"color: #000000;\">0</span><br /><br />        <span style=\"color: #00C800;\">FOR</span> each aRow in aRows<br />            cBez := aRow<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span><br /><br />            <span style=\"color: #00C800;\">if</span> aRow<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> == cSuchId<br />                <span style=\"color: #00C800;\">if</span> nAktLevel > nLastLevel<br />                    TREE oTree<br />                <span style=\"color: #00C800;\">ENDIF</span><br />                TREEITEM oItem <span style=\"color: #0000ff;\">PROMPT</span> aRow<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span><br />                oItem:<span style=\"color: #000000;\">Cargo</span>  := <span style=\"color: #000000;\">&#123;</span> space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span> , space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span>, space<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">30</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />                <span style=\"color: #00C800;\">if</span> nAktLevel > nLastLevel<br />                    nLastLevel := nAktLevel<br />                <span style=\"color: #00C800;\">endif</span><br />                nAktLevel++<br />                GenSubTree<span style=\"color: #000000;\">&#40;</span>  aRows, aRow<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, nAktLevel, nLastLevel <span style=\"color: #000000;\">&#41;</span><br />                nAktLevel--<br />            <span style=\"color: #00C800;\">endif</span><br />        <span style=\"color: #00C800;\">NEXT</span><br />        <span style=\"color: #00C800;\">if</span> nAktLevel == nLastLevel<br />            ENDTREE<br />        <span style=\"color: #00C800;\">ENDIF</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> oTree<br /> </div>[/code:1cr9ng66]\n\ngreeting\nManfred", "time": "15:03", "topic": "Category tree with xBrowse", "username": "Gross" } ]
Category tree with xBrowse
[ { "date": "2007-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "How does one cater for different screen resolutions?\n\nI have designed my screens for 800x600, assuming that it would suite most people, even those with large screens and finer resolutions. Typical data input screens e.g.:\nCompany: XXX Acc no. XXXX\nSurname: XXXX Firstname: XXXX etc.\n\nSome users that run 1024 x 768 and better have asked if the screen can be made large for them. How does one cater for this?", "time": "15:13", "topic": "Catering for Different User Screen Resolutions", "username": "Ollie" } ]
Catering for Different User Screen Resolutions
[ { "date": "2007-06-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n1.Modify dialog.prg:\n\nadd\n\nMETHOD Autoresize(ntop,nleft)\nlocal i,rsl0,rsl1,oCtrol,aRect\nDEFAULT ntop:=0\nDEFAULT nleft:=0\n\n \n rsl0:=getsysmetrics(0)/800\n if rsl0<=1; return ; end //<=800*600, not needed \n rsl1:=getsysmetrics(1)/600\n for i:=1 TO LEN(::acontrols)\n oCtrol = ::aControls[i]\n aRect = GetCoors( oCtrol:hWnd )\n if oCtrol:classname()==\"TCOMBOBOX\"\n oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1)\n else \n oCtrol:Move( aRect[1]*rsl0, aRect[2]*rsl1, (aRect[4] - aRect[2])*rsl0, (aRect[3] - aRect[1])*rsl1, .t. ) \n end\n next\n \n aRect = GetWndRect( ::hWnd )\n \n ::Move( ntop,nleft,::nWidth*rsl0, ::nHeight*rsl1, .T. )\n \n if ::lCentered\n WndCenter( ::hWnd )\n else\n if Empty( ::cResName )\n ::Move( ::nTop, ::nLeft )\n endif\n endif\n \n\nreturn \n\n2. on app\n\n activate dialog mydialog on init mydialog:autoresize()\n\n3. need enhance , on 1280*800 wider screen , it's not work fine,it must set to normail, like 1280*1024, 1024*768, 800*600.\n\nRegards\n\nShuming Wang", "time": "02:14", "topic": "Catering for Different User Screen Resolutions", "username": "ShumingWang" } ]
Catering for Different User Screen Resolutions
[ { "date": "2007-06-27", "forum": "FiveWin for Harbour/xHarbour", "text": "hi, works in windows (mdi) too?? thanks", "time": "02:37", "topic": "Catering for Different User Screen Resolutions", "username": "Nop" } ]
Catering for Different User Screen Resolutions
[ { "date": "2007-06-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Not yet.", "time": "02:06", "topic": "Catering for Different User Screen Resolutions", "username": "ShumingWang" } ]
Catering for Different User Screen Resolutions
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Reported by Alaska:\n\n[quote:2sw0a4ed]// Caution: Windows 10 Fall Creators Update \n\nOur final tests with Windows 10 Version 1709 (Fall Creators Update) revealed timing issues with the \nlocal file system, which may lead to changed application behavior as well as application runtime \nerrors. In fact, all coding patterns which first delete a file on the local storage and then assume \nthe file is gone may fail. This is valid for all programming languages used as the behaviour is \nintroduced on the Windows API/file-system level. In other words, an FErase( \"test.dbf\" ) may lead to \nFile( \"test.dbf\" ) == .T. in some but not all cases. \n\nWith that finding in mind we can not recommend updating production systems right now to Windows 10 \nFall Creators Update.[/quote:2sw0a4ed]", "time": "04:35", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Antonio Linares" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Antonio,\n\nI noticed such behaviour with SMB2 as well.\nI am not sure but I think Directory() gives better result than file.\nIs this technically possible or are the underlying function the same?\n\nThanks in advance\nOtto", "time": "09:39", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Otto" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nThe underlying function is the same: hb_fsFindFirst() (also hb_fsFindNext() on Directory())\n\n[url:1ry58puq]https&#58;//github&#46;com/harbour/core/blob/master/src/rtl/file&#46;c[/url:1ry58puq]\n[url:1ry58puq]https&#58;//github&#46;com/harbour/core/blob/master/src/rtl/direct&#46;c[/url:1ry58puq]\n\nbut as Directory() has to work with more than one file, maybe that makes Windows process pending tasks\n\nThis is just a guess", "time": "11:16", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Antonio Linares" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio, Otto\n\nUnfortunately .. the Fall Creator has been rolled out to almost everyone in the US .. and as you know, there is no way you can really stop the updates in Windows 10 .. \n\nI see many customers walk into the repair shop with the 'spinning wheel of death' 9 out of 10 times due to the Fall Creator update fails for some reason. Also with the Intel and AMD 'meltdown' and 'specter' vulnerabilities .. we have seen 3 ( count um ) 3 January Windows 10 Cumulative security roll ups.... where one roll-up fixes that last roll-up.\n\nIn my opinion .. Microsoft is it's own worst 'virus' and needs to be slapped with a class action law suit' to stop updates without your consent ... no one should be allowed to update your computer without your permission.\n\nAs far as the confirmation of deletions ... I generally have one folder in my app for temp file creation and I always wipe all the files in that folder every time anyone logs into my systems .. just in case of a run-time error leaves clutter in the TempFile folder or I forget to ( rarely ) clean up after myself.\n\nRick Lipkin", "time": "16:05", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Rick Lipkin" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "I also had problems in this case when I create temporary tables locally.\nTo solve the problem I had to invent a routine.\n\n[code=fw:ajp8fb46]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> TAds_TableErase<span style=\"color: #000000;\">&#40;</span>f_nConnection,f_cTableName<span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Local</span> oDs_Qry, lExecute := .F., iFor := <span style=\"color: #000000;\">0</span><br /><br />&nbsp; <span style=\"color: #00C800;\">Default</span> f_nConnection := tAds_GetConnectionDefault<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; <span style=\"color: #00C800;\">If</span> HB_ISNIL<span style=\"color: #000000;\">&#40;</span>st_lExeTableErase<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; st_lExeTableErase := .F.<br />&nbsp; <span style=\"color: #00C800;\">EndIf</span><br /><br />&nbsp; <span style=\"color: #00C800;\">For</span> iFor := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">50</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> st_lExeTableErase<br />&nbsp; &nbsp; &nbsp; hb_idleSleep<span style=\"color: #000000;\">&#40;</span>.<span style=\"color: #000000;\">02</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Else</span><br />&nbsp; &nbsp; &nbsp; Exit<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">EndIf</span><br />&nbsp; <span style=\"color: #00C800;\">Next</span><br /><br />&nbsp; st_lExeTableErase := .T.<br />&nbsp; <br />&nbsp; <span style=\"color: #00C800;\">If</span> !TAds_TableExist<span style=\"color: #000000;\">&#40;</span>f_nConnection,f_cTableName<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; TADS_LOGFILE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"tAdsError.log\"</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TAds_TableErase - TAds_TableExist() / Incorrect erase / Table not exist: \"</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;f_cTableName +<span style=\"color: #ff0000;\">\" Con: \"</span>+Alltrim<span style=\"color: #000000;\">&#40;</span>Str<span style=\"color: #000000;\">&#40;</span>f_nConnection<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>, ProcName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" (\"</span>+AllTrim<span style=\"color: #000000;\">&#40;</span>Str<span style=\"color: #000000;\">&#40;</span>ProcLine<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\")\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; st_lExeTableErase := .F.<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Return</span> .T.<br />&nbsp; <span style=\"color: #00C800;\">EndIf</span><br /><br />&nbsp; <span style=\"color: #00C800;\">If</span> f_nConnection == <span style=\"color: #000000;\">121</span> <span style=\"color: #B900B9;\">// Temporary Table local // error in Windows 10</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style=\"color: #00C800;\">For</span> iFor := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">50</span><br />&nbsp; &nbsp; &nbsp; AdsConnection<span style=\"color: #000000;\">&#40;</span>tAds_GetConnectionHandle<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">121</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; lExecute := AdsDDRemoveTable<span style=\"color: #000000;\">&#40;</span>f_cTableName,.T.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> lExecute<br />&nbsp; &nbsp; &nbsp; &nbsp; Exit <br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; TADS_LOGFILE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"tAdsError.log\"</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"iFor = \"</span>+Alltrim<span style=\"color: #000000;\">&#40;</span>Str<span style=\"color: #000000;\">&#40;</span>iFor<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" Con: \"</span>+AllTrim<span style=\"color: #000000;\">&#40;</span>Str<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">121</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #ff0000;\">\"TAds_TableErase - AdsDDRemoveTable / Not Remove table: \"</span>+f_cTableName, ProcName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" (\"</span>+AllTrim<span style=\"color: #000000;\">&#40;</span>Str<span style=\"color: #000000;\">&#40;</span>ProcLine<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\")\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hb_idleSleep<span style=\"color: #000000;\">&#40;</span>.<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">EndIf</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Next</span><br />&nbsp; &nbsp; AdsConnection<span style=\"color: #000000;\">&#40;</span>tAds_GetConnectionDefault<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Else</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; oDs_Qry := tAds<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">DsNew</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">2</span>,f_nConnection<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oDs_Qry:<span style=\"color: #000000;\">cQrySql</span> := <span style=\"color: #ff0000;\">\"DROP TABLE \"</span>+f_cTableName+<span style=\"color: #ff0000;\">\" FROM DATABASE ;\"</span><br />&nbsp; &nbsp; lExecute := oDs_Qry:<span style=\"color: #000000;\">DsExecute</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oDs_Qry:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; <span style=\"color: #00C800;\">EndIf</span><br />&nbsp; <br />&nbsp; <span style=\"color: #00C800;\">If</span> f_nConnection == <span style=\"color: #000000;\">121</span> <span style=\"color: #B900B9;\">// Temporary Table local</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">For</span> iFor := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">80</span> <br />&nbsp; &nbsp; &nbsp; fErase<span style=\"color: #000000;\">&#40;</span>tAds_GetPathTemp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>+f_cTableName+<span style=\"color: #ff0000;\">\".adt\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; fErase<span style=\"color: #000000;\">&#40;</span>tAds_GetPathTemp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\".adi\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; fErase<span style=\"color: #000000;\">&#40;</span>tAds_GetPathTemp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>+f_cTableName+<span style=\"color: #ff0000;\">\".adm\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> !File<span style=\"color: #000000;\">&#40;</span>tAds_GetPathTemp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>+f_cTableName+<span style=\"color: #ff0000;\">\".adt\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; Exit<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hb_idleSleep<span style=\"color: #000000;\">&#40;</span>.<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">EndIf</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">Next</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">If</span> File<span style=\"color: #000000;\">&#40;</span>tAds_GetPathTemp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>+f_cTableName+<span style=\"color: #ff0000;\">\".adt\"</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; TADS_LOGFILE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"tAdsError.log\"</span>,<span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"TAds_TableErase() - Not fErase \"</span>+f_cTableName, ProcName<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\" (\"</span>+AllTrim<span style=\"color: #000000;\">&#40;</span>Str<span style=\"color: #000000;\">&#40;</span>ProcLine<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>+<span style=\"color: #ff0000;\">\")\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">EndIf</span><br />&nbsp; <span style=\"color: #00C800;\">EndIf</span><br />&nbsp; <br /><span style=\"color: #00C800;\">RETURN</span> lExecute <br />&nbsp;</div>[/code:ajp8fb46]", "time": "18:11", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Giovany Vecchi" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "When Satya Nadella took over as CEO, he established the \"freedom to create\" philosophy and shared it with all Microsoft staff ( in a memo later made public ). It places an emphasis on ideas and creative exploration rather than the stability of products, and their use in the \"real world.\"\n\nI expressed my concerns at the time ( directly to him by email which he did read, and to which he responded ), followed by specific reports to his assistant. In some cases, I worked with the administrative team for months following up on bugs in their own hardware ( Surface ), and specific software issues. In most cases, the programming engineers will do little or nothing to fix the mistakes they have made.\n\nMicrosoft support has fallen apart. It is mostly scripted responses to input that often do not at all relate to the actual problems reported. My clients are growing very frustrated with these updates. Every time they happen overnight, the networking doesn't work. They get no real notifications. Instead they are learning to down all computers, and then bring them back up to complete the updates, and return ( hopefully ) to operation.\n\nI share this because we are all experiencing issues. I would like to encourage you to send an email with your concerns directly to Satya Nadella. Maybe enough input will get him to return some focus to quality control on a product most of the world's computers depend on to operate essential services and businesses.", "time": "18:23", "topic": "Caution: Windows 10 Fall Creators Update", "username": "TimStone" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "<!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nAnyway, I didn't notice that problem so far...\n\nEMG", "time": "19:34", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Enrico Maria Giordano" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Maybe doing a Sysrefresh() before the File() would be a workaround.\n\nIf that works, you could create your own file checking routine:\n\n[code=fw:1ost20v6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> xfile<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;Sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> File<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:1ost20v6]", "time": "20:12", "topic": "Caution: Windows 10 Fall Creators Update", "username": "James Bott" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-05", "forum": "FiveWin for Harbour/xHarbour", "text": "To All\n\nJust my 2 cents worth ( again ) .... sounds like a latency hard disk write problem ... whether it be on a network or a local drive.... unfortunately not everyone can afford a solid state drive .... there is basically zero latency with disk writes and I have a SSD and not seen the problem on my machine.\n\nRick Lipkin", "time": "22:00", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Rick Lipkin" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-06", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\n[quote=\"James Bott\":4ie5kg50]Maybe doing a Sysrefresh() before the File() would be a workaround.\n\nIf that works, you could create your own file checking routine:\n\n[code=fw:4ie5kg50]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> xfile<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   Sysrefresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Return</span> File<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:4ie5kg50][/quote:4ie5kg50]\n\nyes, very good idea", "time": "07:59", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Antonio Linares" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nI found this post:\n\n<!-- m --><a class=\"postlink\" href=\"https://support.microsoft.com/en-us/help/4034314/smbv1-is-not-installed-windows-10-and-windows-server-version-1709\">https://support.microsoft.com/en-us/hel ... rsion-1709</a><!-- m -->\n\nMaybe missing SMB is the problem.\n\nBest regards,\nOtto", "time": "17:59", "topic": "Caution: Windows 10 Fall Creators Update", "username": "Otto" } ]
Caution: Windows 10 Fall Creators Update
[ { "date": "2006-08-17", "forum": "Utilities / Utilidades", "text": "Original Cayetano's BarLib to create barcodes:\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/02bd8de195/barlib.zip.html\">http://hyperupload.com/download/02bd8de ... b.zip.html</a><!-- m -->", "time": "18:40", "topic": "Cayetano's BarLib", "username": "Antonio Linares" } ]
Cayetano's BarLib
[ { "date": "2006-08-17", "forum": "Utilities / Utilidades", "text": "Cayetano's BarLib enhanced by Enrico:\n<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/029e8f4142/BarLib2.zip.html\">http://hyperupload.com/download/029e8f4 ... 2.zip.html</a><!-- m -->", "time": "18:42", "topic": "Cayetano's BarLib", "username": "Antonio Linares" } ]
Cayetano's BarLib
[ { "date": "2006-08-17", "forum": "Utilities / Utilidades", "text": "Not so enhanced. Only some little bugfixes.\n\nEMG", "time": "19:00", "topic": "Cayetano's BarLib", "username": "Enrico Maria Giordano" } ]
Cayetano's BarLib
[ { "date": "2006-08-20", "forum": "Utilities / Utilidades", "text": "EMG or Antonio\nWhen I download from Hypersys there is a bug I not can see anything into Barlib2.zip\n\nCan you correct the problem ?\n\nBest Regards", "time": "16:00", "topic": "Cayetano's BarLib", "username": "Silvio" } ]
Cayetano's BarLib
[ { "date": "2006-08-20", "forum": "Utilities / Utilidades", "text": "I just tried to download it and it seems ok. Anyway, I'm going to send it to your private mailbox.\n\nEMG", "time": "16:10", "topic": "Cayetano's BarLib", "username": "Enrico Maria Giordano" } ]
Cayetano's BarLib
[ { "date": "2008-02-21", "forum": "Utilities / Utilidades", "text": "All,\n\nMay I know the availability of barlib2? Looks like not found in the download site.\n\nThanks,\n\nJose", "time": "23:17", "topic": "Cayetano's BarLib", "username": "xhbcoder" } ]
Cayetano's BarLib
[ { "date": "2008-02-22", "forum": "Utilities / Utilidades", "text": "All,\n\nMay I know the availability of barlib2? Looks like not found in the mentioned download site. \n\n(<!-- m --><a class=\"postlink\" href=\"http://hyperupload.com/download/029e8f4142/BarLib2.zip.html\">http://hyperupload.com/download/029e8f4 ... 2.zip.html</a><!-- m -->)\n\n\nThanks,\n\nJose", "time": "17:18", "topic": "Cayetano's BarLib2", "username": "xhbcoder" } ]
Cayetano's BarLib2
[ { "date": "2008-02-25", "forum": "Utilities / Utilidades", "text": "Barlib2 is a Barlib modified from EMG\ntry to ask to Emg please\nNot send me any message please", "time": "08:44", "topic": "Cayetano's BarLib2", "username": "Silvio" } ]
Cayetano's BarLib2
[ { "date": "2008-02-25", "forum": "Utilities / Utilidades", "text": "I have no Barlib2. I only made a little fix to Barlib, nothing more.\n\nEMG", "time": "09:29", "topic": "Cayetano's BarLib2", "username": "Enrico Maria Giordano" } ]
Cayetano's BarLib2
[ { "date": "2008-02-25", "forum": "Utilities / Utilidades", "text": "Jose,\n\n Try this link <!-- m --><a class=\"postlink\" href=\"http://www.esnips.com/doc/1e78c161-35ce-4cb8-acf0-1c918b403853/BarLib\">http://www.esnips.com/doc/1e78c161-35ce ... 853/BarLib</a><!-- m --> . I'm not sure whether this is the one you wanted or not", "time": "10:39", "topic": "Cayetano's BarLib2", "username": "hua" } ]
Cayetano's BarLib2
[ { "date": "2009-01-04", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimado Colegas \n\nComo puedo mostrar el body del email solamente en testpop3 y grabarlo en un txt\nsi alguien me puede orientar \n\ndesde ya mucha gracias\nFabian", "time": "23:07", "topic": "Ccmo puedo mostrar solo el body de email en testpop3", "username": "Databaselab2002" } ]
Ccmo puedo mostrar solo el body de email en testpop3
[ { "date": "2009-02-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimados;\nEn un browse, en el que se puede editar una celda para introducir un valor numérico quisiera:\nQue detecte el valor pulsado tanto si es desde el teclado horizontal (ya lo probé y funciona), como desde el teclado numérico (cual es codigo inkey)\nLa otra es: como muevo el cursor a la derecha del valor ingresado, esperando por un próximo ingreso\n\nmuchas gracias\nSaludos", "time": "21:31", "topic": "Celda editable en Browse", "username": "MarioG" } ]
Celda editable en Browse
[ { "date": "2009-02-20", "forum": "FiveWin para Harbour/xHarbour", "text": "Mario...\nTienes varias opciones\nPuedes usar FastEdit, esto hara que el \"cursor\" se dirija hasta la proxima celda editable, en cambio si no quieres usar el FastEdit puedes usar en en el bOnPostEdit, GoRight(), tienes otra opcion es una modificacion a la clase que te permite ir a la direccion que quieras despues de la edicion, usando fastedit o no, revisa este post \n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?p=75203#p75203\">viewtopic.php?p=75203#p75203</a><!-- l -->", "time": "22:02", "topic": "Celda editable en Browse", "username": "Daniel Garcia-Gil" } ]
Celda editable en Browse
[ { "date": "2009-02-20", "forum": "FiveWin para Harbour/xHarbour", "text": "muchas gracias Daniel;\nme olvidé de un detalle muuuuy importante uso FWH DIC2007 y wBrowse, si bien es el de Hernán, uso el método lEditcol <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: --> <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "22:14", "topic": "Celda editable en Browse", "username": "MarioG" } ]
Celda editable en Browse
[ { "date": "2019-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola amigos.\n\nEn xBrowse tenemos la data oBrw:lTransparent := .t., que pinta todo el browse transparente, sobre el dialogo o ventana contenedora.\n\nPregunta:\nEs posible, basado en una condicion, pintar transparentes determinadas celdas?\n\nMe explico:\nTenemos un dialog que contiene una imagen como background.\nSobre esta imagen tenemos un xBrowse, con varias lineas y columnas.\nAlgunas celdas contienen valores, otras no.\n\nPrecisamente, las celdas que no contienen valores son las que se desea presentar transparentes. Es decir, hacer transparente el fondo de estas celdas y que se vea como fondo la imagen-background de la ventana o dialogo contenedor.\nEs posible?\n\nGracias.", "time": "15:24", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Lo siguiente no hace nada:\n[code=fw:1cxnehjd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> CeldaTransparente<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">local</span> n1, n, uVal<br /><br />&nbsp; <span style=\"color: #00C800;\">For</span> n1 := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> oBrw2:<span style=\"color: #000000;\">nLen</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; uVal := oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Value</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span>uVal<span style=\"color: #000000;\">&#41;</span> .or. uVal = <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lColTransparent</span> := .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span> <br />&nbsp; <span style=\"color: #00C800;\">Next</span><br /><br />&nbsp; oBrw2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:1cxnehjd]", "time": "16:27", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-14", "forum": "FiveWin para Harbour/xHarbour", "text": "Otro intento sin resultados deseados:\n[code=fw:34zdun2g]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> CeldaTransparente<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> n1, n<br /><br />  <span style=\"color: #00C800;\">For</span> n1 := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> oBrw2:<span style=\"color: #000000;\">nLen</span><br />     <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#41;</span><br />        oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lColTransparent</span> := TranspDeCelda<span style=\"color: #000000;\">&#40;</span> oBrw2, n <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">Next</span> <br />&nbsp; &nbsp; &nbsp;oBrw2:<span style=\"color: #000000;\">GoDown</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">Next</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> TranspDeCelda<span style=\"color: #000000;\">&#40;</span> oBrw, n <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> uDato := oBrw:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>, lTransparent := .f.<br /><br />   <span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span>uDato<span style=\"color: #000000;\">&#41;</span> .or. uDato = <span style=\"color: #00C800;\">nil</span><br />      lTransparent := .t.<br />   <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> lTransparent<br /> </div>[/code:34zdun2g]", "time": "17:26", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Parece que encontré la solución:\n\n[code=fw:s26pnzls]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//Celdas sin valor serán transparentes. Para ello, oBrw2:lTransparent := .t., y ClrBck de celda debe ser NIL</span><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> CeldaTransparente<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">local</span> n<br /><br />&nbsp; <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> oBrw2:<span style=\"color: #000000;\">nLen</span><br />&nbsp; &nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> oBrw2:<span style=\"color: #000000;\">aCols</span>, <span style=\"color: #000000;\">&#123;</span> |o|o:<span style=\"color: #000000;\">lColTransparent</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Empty<span style=\"color: #000000;\">&#40;</span>o:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span>,.t.,.f.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp;oBrw2:<span style=\"color: #000000;\">GoDown</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Next</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:s26pnzls]\nSaludos.", "time": "01:38", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-15", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"FranciscoA\":11glm4fy]Parece que encontré la solución:\n\n[code=fw:11glm4fy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">//Celdas sin valor serán transparentes. Para ello, oBrw2:lTransparent := .t., y ClrBck de celda debe ser NIL</span><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> CeldaTransparente<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">local</span> n<br /><br />  <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> oBrw2:<span style=\"color: #000000;\">nLen</span><br />     AEval<span style=\"color: #000000;\">&#40;</span> oBrw2:<span style=\"color: #000000;\">aCols</span>, <span style=\"color: #000000;\">&#123;</span> |o|o:<span style=\"color: #000000;\">lColTransparent</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Empty<span style=\"color: #000000;\">&#40;</span>o:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span>,.t.,.f.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <br />     oBrw2:<span style=\"color: #000000;\">GoDown</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">Next</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:11glm4fy]\nSaludos.[/quote:11glm4fy]\n\noCol:lTransparent applies to the entire column, not to individual cells", "time": "06:46", "topic": "Celda transparente", "username": "nageswaragunupudi" } ]
Celda transparente
[ { "date": "2019-12-15", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote:27eeafvq]oCol:lTransparent applies to the entire column, not to individual cells[/quote:27eeafvq]\nNages.\nI know it.\n\nAfter so much testing I reached that solution, and it's working for the litle proyect I am making.\n\nDespues de muchas pruebas salió esa solución y está funcionando para el pequeño proyecto, hasta el momento.\n\n[url:27eeafvq]https&#58;//www&#46;4shared&#46;com/photo/7kj6nn-mea/ruleta&#46;html[/url:27eeafvq]", "time": "19:22", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-15", "forum": "FiveWin para Harbour/xHarbour", "text": "He notado que si en la ultima fila hay celda sin valor, pone transparente toda esa columna.", "time": "20:30", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Aqui dejo el codigo, por si alguien quiere mejorarlo.\n\n[code=fw:13igl5r7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> aM, aR, cClr := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">static</span> oBrw1, oBrw2<br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oFont1<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBrush, cBrush := <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\F</span>WH1204<span style=\"color: #000000;\">\\B</span>ITMAPS<span style=\"color: #000000;\">\\B</span>ACKGRND<span style=\"color: #000000;\">\\B</span>EACH.BMP\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nWd := <span style=\"color: #000000;\">240</span> <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nHt := <span style=\"color: #000000;\">600</span> &nbsp;<br /><br />&nbsp; &nbsp;CreaMatrices<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"CONSOLAS\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-16</span> BOLD ITALIC<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> nWd,nHt <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE cBrush RESIZE<br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> oBrush <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrush:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;PintaBrowse<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> CeldaTransparente<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> oFont1<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br />&nbsp; &nbsp; <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> CreaMatrices<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><span style=\"color: #00C800;\">local</span> n, aNms, aClr &nbsp; &nbsp; <br /><br />&nbsp; &nbsp;aNms := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'00'</span>, <span style=\"color: #ff0000;\">'27'</span>, <span style=\"color: #ff0000;\">'10'</span>, <span style=\"color: #ff0000;\">'25'</span>, <span style=\"color: #ff0000;\">'29'</span>, <span style=\"color: #ff0000;\">'12'</span>, <span style=\"color: #ff0000;\">'8'</span>, <span style=\"color: #ff0000;\">'19'</span>, <span style=\"color: #ff0000;\">'31'</span>, <span style=\"color: #ff0000;\">'18'</span>, <span style=\"color: #ff0000;\">'6'</span>, <span style=\"color: #ff0000;\">'21'</span>, <span style=\"color: #ff0000;\">'33'</span>, <span style=\"color: #ff0000;\">'16'</span>, <span style=\"color: #ff0000;\">'4'</span>, <span style=\"color: #ff0000;\">'23'</span>, <span style=\"color: #ff0000;\">'35'</span>, <span style=\"color: #ff0000;\">'14'</span>, <span style=\"color: #ff0000;\">'2'</span>, &nbsp;<span style=\"color: #ff0000;\">'0'</span>, <span style=\"color: #ff0000;\">'28'</span>, <span style=\"color: #ff0000;\">'9'</span>, <span style=\"color: #ff0000;\">'26'</span>, <span style=\"color: #ff0000;\">'30'</span>, <span style=\"color: #ff0000;\">'11'</span>, <span style=\"color: #ff0000;\">'7'</span>, <span style=\"color: #ff0000;\">'20'</span>, <span style=\"color: #ff0000;\">'32'</span>, <span style=\"color: #ff0000;\">'17'</span>, <span style=\"color: #ff0000;\">'5'</span>, <span style=\"color: #ff0000;\">'22'</span>, <span style=\"color: #ff0000;\">'34'</span>, <span style=\"color: #ff0000;\">'15'</span>, <span style=\"color: #ff0000;\">'3'</span>, <span style=\"color: #ff0000;\">'24'</span>, <span style=\"color: #ff0000;\">'36'</span>, <span style=\"color: #ff0000;\">'13'</span>, <span style=\"color: #ff0000;\">'1'</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aClr := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">'V'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp; <span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; aR := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span>aNms<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aadd<span style=\"color: #000000;\">&#40;</span> aR, <span style=\"color: #000000;\">&#123;</span>,,,<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Posicion</span><br />&nbsp; &nbsp; &nbsp; aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>len<span style=\"color: #000000;\">&#40;</span>aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>=<span style=\"color: #000000;\">1</span>, aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>+<span style=\"color: #ff0000;\">\" \"</span>, aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//Numero (debe ser long 2 char)</span><br />&nbsp; &nbsp; &nbsp; aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"V\"</span>,<span style=\"color: #ff0000;\">\"VERDE\"</span> ,; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Color</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"R\"</span>,<span style=\"color: #ff0000;\">\"ROJO\"</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"N\"</span>,<span style=\"color: #ff0000;\">\"NEGRO\"</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Next</span><br /><br />&nbsp; aM := Array<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'0 '</span>, <span style=\"color: #ff0000;\">'00'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'2 '</span>, <span style=\"color: #ff0000;\">'3 '</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'5 '</span>, <span style=\"color: #ff0000;\">'6 '</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'7 '</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'10'</span>, <span style=\"color: #ff0000;\">'11'</span>, <span style=\"color: #ff0000;\">'12'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'16'</span>, <span style=\"color: #ff0000;\">'17'</span>, <span style=\"color: #ff0000;\">'18'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'20'</span>, <span style=\"color: #ff0000;\">'21'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'23'</span>, <span style=\"color: #ff0000;\">'24'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'25'</span>, <span style=\"color: #ff0000;\">'26'</span>, <span style=\"color: #ff0000;\">'27'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'28'</span>, <span style=\"color: #ff0000;\">'29'</span>, <span style=\"color: #ff0000;\">'30'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'31'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'33'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'34'</span>, <span style=\"color: #ff0000;\">'35'</span>, <span style=\"color: #ff0000;\">'36'</span><span style=\"color: #000000;\">&#125;</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> PintaBrowse<span style=\"color: #000000;\">&#40;</span>oDlg<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> n, cCol, oFont<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-24</span> BOLD ITALIC<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-1</span>,<span style=\"color: #000000;\">-1</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;DATASOURCE aM ; <br />&nbsp; &nbsp;COLUMNS <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span> &nbsp;HEADERS <span style=\"color: #ff0000;\">\"Col1\"</span>,<span style=\"color: #ff0000;\">\"Col2\"</span>,<span style=\"color: #ff0000;\">\"Col3\"</span> ;<br />&nbsp; &nbsp;CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> EACH cCol IN <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"COL1\"</span>, <span style=\"color: #ff0000;\">\"COL2\"</span>, <span style=\"color: #ff0000;\">\"COL3\"</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT oBrw2:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">&#40;</span> cCol <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">nWidth</span>/<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw2<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nRowHeight</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">42</span> <br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lHeader</span> &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lFooter</span> &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lHScroll</span> := .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lVScroll</span> := .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lRecordSelector</span> := .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nDataStrAligns</span> := AL_CENTER<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span>oFont<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lTransparent</span> &nbsp;:= &nbsp;.t.<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;END<br /><br />&nbsp; &nbsp;ColorFondoCelda<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> oFont<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> ColorFondoCelda<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">local</span> n<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> := ColorDeCelda<span style=\"color: #000000;\">&#40;</span> oBrw2, n <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> ColorDeCelda<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>|| ElijeColor<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aRow</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> ElijeColor<span style=\"color: #000000;\">&#40;</span> uDato <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n, nClrBck, nClrTxt := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;cClr:=<span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>aR<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> == uDato<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cClr := aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span><br />&nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> cClr == <span style=\"color: #ff0000;\">\"VERDE\"</span><br />&nbsp; &nbsp; &nbsp; nClrBck := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif cClr == <span style=\"color: #ff0000;\">\"ROJO\"</span><br />&nbsp; &nbsp; &nbsp; nClrBck := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif cClr == <span style=\"color: #ff0000;\">\"NEGRO\"</span><br />&nbsp; &nbsp; &nbsp; nClrBck := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; nClrBck := <span style=\"color: #00C800;\">NIL</span> <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> nClrTxt, nClrBck <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//Celdas sin valor serán transparentes. Para ello, oBrw2:lTransparent := .t., y ClrBck de celda debe ser NIL</span><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> CeldaTransparente<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">local</span> n<br /><br />&nbsp; <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> oBrw2:<span style=\"color: #000000;\">nLen</span><br />&nbsp; &nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> oBrw2:<span style=\"color: #000000;\">aCols</span>, <span style=\"color: #000000;\">&#123;</span> |o|o:<span style=\"color: #000000;\">lColTransparent</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Empty<span style=\"color: #000000;\">&#40;</span>o:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span>,.t.,.f.<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; &nbsp;oBrw2:<span style=\"color: #000000;\">GoDown</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Next</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br />&nbsp;</div>[/code:13igl5r7]", "time": "20:32", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Resultado:\n[url=https&#58;//imgbb&#46;com/:1dhnb7xu][img:1dhnb7xu]https&#58;//i&#46;ibb&#46;co/cC2vBzD/mesa&#46;png[/img:1dhnb7xu][/url:1dhnb7xu]", "time": "23:16", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-15", "forum": "FiveWin para Harbour/xHarbour", "text": "Proyecto finalizado:\n[url=https&#58;//ibb&#46;co/V96N9wh:3h6aa05n][img:3h6aa05n]https&#58;//i&#46;ibb&#46;co/r09t0dL/ruleta&#46;png[/img:3h6aa05n][/url:3h6aa05n]", "time": "23:40", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Francisco.\n\nGrande Maestro, te pasaste?\n\nTe Felicito, se ve súper.\n\nMuchos Saludos\n\nAntonio.", "time": "19:29", "topic": "Celda transparente", "username": "remtec" } ]
Celda transparente
[ { "date": "2019-12-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Francisco, muy bien, ya sabes que este tipo de \"tips\" de efectos estéticos me gustan mucho.\nTu implementación es muy muy buena ( \"nivelazo\" ).\nComo siempre he dicho \"Imaginación al poder\"\nEnhorabuena", "time": "20:06", "topic": "Celda transparente", "username": "cnavarro" } ]
Celda transparente
[ { "date": "2019-12-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Cristóbal.\nMi estimado Maestro, gracias por sus comentarios.", "time": "20:26", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-16", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Antonio.\nGracias por tu comentario. Estamos a la orden.\nSaludos.", "time": "19:41", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2019-12-27", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"FranciscoA\":1yzso767]He notado que si en la ultima fila hay celda sin valor, pone transparente toda esa columna.[/quote:1yzso767]\nAqui está la solucion:\n[code=fw:1yzso767]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oFont1, oBrw2, n, cCol, oFont<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oBrush, cBrush := <span style=\"color: #ff0000;\">\"C:<span style=\"color: #000000;\">\\F</span>WH1204<span style=\"color: #000000;\">\\B</span>ITMAPS<span style=\"color: #000000;\">\\B</span>ACKGRND<span style=\"color: #000000;\">\\B</span>EACH.BMP\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nWd := <span style=\"color: #000000;\">240</span>, nHt := <span style=\"color: #000000;\">600</span> &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aArr := CreaMatrices<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, aR := aArr<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, aM := aArr<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont &nbsp;<span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"ARIAL\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-24</span> BOLD ITALIC<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont1 <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"CONSOLAS\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-16</span> BOLD ITALIC<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> nWd,nHt <span style=\"color: #0000ff;\">PIXEL</span> TRUEPIXEL<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush FILE cBrush RESIZE<br />&nbsp; &nbsp;oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> oBrush <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBrush:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw2 <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">-1</span>,<span style=\"color: #000000;\">-1</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg &nbsp;DATASOURCE aM ; <br />&nbsp; &nbsp;COLUMNS <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span> &nbsp;HEADERS <span style=\"color: #ff0000;\">\"Col1\"</span>,<span style=\"color: #ff0000;\">\"Col2\"</span>,<span style=\"color: #ff0000;\">\"Col3\"</span> ;<br />&nbsp; &nbsp;CELL LINES NOBORDER<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">FOR</span> EACH cCol IN <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"COL1\"</span>, <span style=\"color: #ff0000;\">\"COL2\"</span>, <span style=\"color: #ff0000;\">\"COL3\"</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;WITH OBJECT oBrw2:<span style=\"color: #000000;\">oCol</span><span style=\"color: #000000;\">&#40;</span> cCol <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nWidth</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">nWidth</span>/<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">-1</span><br />&nbsp; &nbsp; &nbsp; &nbsp;END<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">NEXT</span><br /><br />&nbsp; &nbsp;WITH OBJECT oBrw2<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nRowHeight</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">42</span> <br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lHeader</span> &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lFooter</span> &nbsp;:= .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lHScroll</span> := .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lVScroll</span> := .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lRecordSelector</span> := .f.<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nDataStrAligns</span> := AL_CENTER<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">&#40;</span>oFont<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">lTransparent</span> &nbsp;:= &nbsp;.t.<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;END<br /><br />&nbsp; &nbsp;ColorFondoCelda<span style=\"color: #000000;\">&#40;</span>oBrw2, aR<span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> CeldaTransparente<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> oFont1, oFont<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br />&nbsp; &nbsp; <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> CreaMatrices<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<br /><span style=\"color: #00C800;\">local</span> n, aNms, aClr, aR, aM &nbsp; &nbsp; <br /><br />&nbsp; &nbsp;aNms := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'00'</span>, <span style=\"color: #ff0000;\">'27'</span>, <span style=\"color: #ff0000;\">'10'</span>, <span style=\"color: #ff0000;\">'25'</span>, <span style=\"color: #ff0000;\">'29'</span>, <span style=\"color: #ff0000;\">'12'</span>, <span style=\"color: #ff0000;\">'8'</span>, <span style=\"color: #ff0000;\">'19'</span>, <span style=\"color: #ff0000;\">'31'</span>, <span style=\"color: #ff0000;\">'18'</span>, <span style=\"color: #ff0000;\">'6'</span>, <span style=\"color: #ff0000;\">'21'</span>, <span style=\"color: #ff0000;\">'33'</span>, <span style=\"color: #ff0000;\">'16'</span>, <span style=\"color: #ff0000;\">'4'</span>, <span style=\"color: #ff0000;\">'23'</span>, <span style=\"color: #ff0000;\">'35'</span>, <span style=\"color: #ff0000;\">'14'</span>, <span style=\"color: #ff0000;\">'2'</span>, &nbsp;<span style=\"color: #ff0000;\">'0'</span>, <span style=\"color: #ff0000;\">'28'</span>, <span style=\"color: #ff0000;\">'9'</span>, <span style=\"color: #ff0000;\">'26'</span>, <span style=\"color: #ff0000;\">'30'</span>, <span style=\"color: #ff0000;\">'11'</span>, <span style=\"color: #ff0000;\">'7'</span>, <span style=\"color: #ff0000;\">'20'</span>, <span style=\"color: #ff0000;\">'32'</span>, <span style=\"color: #ff0000;\">'17'</span>, <span style=\"color: #ff0000;\">'5'</span>, <span style=\"color: #ff0000;\">'22'</span>, <span style=\"color: #ff0000;\">'34'</span>, <span style=\"color: #ff0000;\">'15'</span>, <span style=\"color: #ff0000;\">'3'</span>, <span style=\"color: #ff0000;\">'24'</span>, <span style=\"color: #ff0000;\">'36'</span>, <span style=\"color: #ff0000;\">'13'</span>, <span style=\"color: #ff0000;\">'1'</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;aClr := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #ff0000;\">'V'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp; <span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'V'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, <span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, <span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span>, &nbsp;<span style=\"color: #ff0000;\">'N'</span>, &nbsp;<span style=\"color: #ff0000;\">'R'</span><span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; aR := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; <span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span>aNms<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; aadd<span style=\"color: #000000;\">&#40;</span> aR, <span style=\"color: #000000;\">&#123;</span>,,,<span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Posicion</span><br />&nbsp; &nbsp; &nbsp; aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>len<span style=\"color: #000000;\">&#40;</span>aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span>=<span style=\"color: #000000;\">1</span>, aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>+<span style=\"color: #ff0000;\">\" \"</span>, aNms<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//Numero (debe ser long 2 char)</span><br />&nbsp; &nbsp; &nbsp; aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"V\"</span>,<span style=\"color: #ff0000;\">\"VERDE\"</span> ,; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Color</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"R\"</span>,<span style=\"color: #ff0000;\">\"ROJO\"</span> &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>upper<span style=\"color: #000000;\">&#40;</span>aClr<span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#41;</span> =<span style=\"color: #ff0000;\">\"N\"</span>,<span style=\"color: #ff0000;\">\"NEGRO\"</span>,<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; <span style=\"color: #00C800;\">Next</span><br /><br />&nbsp; aM := Array<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">14</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'Rojo'</span>, <span style=\"color: #ff0000;\">'Negro'</span>, <span style=\"color: #ff0000;\">'Verde'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'0 '</span>, <span style=\"color: #ff0000;\">'00'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'2 '</span>, <span style=\"color: #ff0000;\">'3 '</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'5 '</span>, <span style=\"color: #ff0000;\">'6 '</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'7 '</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'10'</span>, <span style=\"color: #ff0000;\">'11'</span>, <span style=\"color: #ff0000;\">'12'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'16'</span>, <span style=\"color: #ff0000;\">'17'</span>, <span style=\"color: #ff0000;\">'18'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">9</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'20'</span>, <span style=\"color: #ff0000;\">'21'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">10</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'23'</span>, <span style=\"color: #ff0000;\">'24'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">11</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'25'</span>, <span style=\"color: #ff0000;\">'26'</span>, <span style=\"color: #ff0000;\">'27'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">12</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'28'</span>, <span style=\"color: #ff0000;\">'29'</span>, <span style=\"color: #ff0000;\">'30'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">13</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">'31'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'33'</span><span style=\"color: #000000;\">&#125;</span> <br />&nbsp; aM<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">14</span><span style=\"color: #000000;\">&#93;</span>:= <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">' &nbsp;'</span>, <span style=\"color: #ff0000;\">'36'</span><span style=\"color: #000000;\">&#125;</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">&#123;</span> aR, aM <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> ColorFondoCelda<span style=\"color: #000000;\">&#40;</span>oBrw2, aR<span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp;<br /><span style=\"color: #00C800;\">local</span> n<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> := ColorDeCelda<span style=\"color: #000000;\">&#40;</span> oBrw2, n, aR <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> ColorDeCelda<span style=\"color: #000000;\">&#40;</span> oBrw, n, aR <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span>|| ElijeColor<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>, aR <span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> ElijeColor<span style=\"color: #000000;\">&#40;</span> uDato, aR <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> n, nClrBck, nClrTxt := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span>, cClr<br /><br />&nbsp; &nbsp;cClr:=<span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>aR<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> == uDato<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cClr := aR<span style=\"color: #000000;\">&#91;</span>n,<span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span><br />&nbsp; <br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> cClr == <span style=\"color: #ff0000;\">\"VERDE\"</span> .or. uDato == <span style=\"color: #ff0000;\">\"Verde\"</span> &nbsp;<span style=\"color: #B900B9;\">//Si dato es Verde,Rojo,Negro, es apuesta por color.</span><br />&nbsp; &nbsp; &nbsp; nClrBck := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif cClr == <span style=\"color: #ff0000;\">\"ROJO\"</span> .or. uDato == <span style=\"color: #ff0000;\">\"Rojo\"</span><br />&nbsp; &nbsp; &nbsp; nClrBck := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;elseif cClr == <span style=\"color: #ff0000;\">\"NEGRO\"</span> .or. uDato == <span style=\"color: #ff0000;\">\"Negro\"</span><br />&nbsp; &nbsp; &nbsp; nClrBck := RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; nClrBck := <span style=\"color: #00C800;\">NIL</span> &nbsp;<span style=\"color: #B900B9;\">//GetSysColor( 5 )</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">&#123;</span> nClrTxt, nClrBck <span style=\"color: #000000;\">&#125;</span> <br /><br /><span style=\"color: #B900B9;\">//Celdas sin valor serán transparentes. Para ello, oBrw2:lTransparent := .t., y ClrBck de celda debe ser NIL</span><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------//</span><br /><span style=\"color: #00C800;\">Function</span> CeldaTransparente<span style=\"color: #000000;\">&#40;</span>oBrw2<span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">local</span> n<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">For</span> n := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">lColTransparent</span> := <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span>Empty<span style=\"color: #000000;\">&#40;</span>oBrw2:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>n<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">Value</span><span style=\"color: #000000;\">&#41;</span>,.t.,.f.<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span> <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:1yzso767]\nSaludos.", "time": "18:17", "topic": "Celda transparente", "username": "FranciscoA" } ]
Celda transparente
[ { "date": "2008-08-30", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimado colegas\r\n\r\nEstoy desarrollando un planning de hotel , es posible ponerle\r\n2 colores a una celda \r\n\r\nGracias\r\nFabian", "time": "19:54", "topic": "Celdas con dos Colores en Tsbrowse es posible ?", "username": "Databaselab2002" } ]
Celdas con dos Colores en Tsbrowse es posible ?
[ { "date": "2008-09-11", "forum": "FiveWin para Harbour/xHarbour", "text": "Fabian,\r\n\r\nTe refieres a usar un degradado de colores en una celda ?\r\n\r\nO a que una linea sea de un color y la siguiente de otro ?", "time": "22:54", "topic": "Celdas con dos Colores en Tsbrowse es posible ?", "username": "Antonio Linares" } ]
Celdas con dos Colores en Tsbrowse es posible ?
[ { "date": "2008-09-12", "forum": "FiveWin para Harbour/xHarbour", "text": "Antonio\r\n\r\nLo que quiero hacer es que la misma celda tenga por ejemplo mitad color rojo mitad color verde\r\n\r\nGracias \r\nFabian", "time": "01:39", "topic": "Celdas con dos Colores en Tsbrowse es posible ?", "username": "Databaselab2002" } ]
Celdas con dos Colores en Tsbrowse es posible ?
[ { "date": "2008-09-13", "forum": "FiveWin para Harbour/xHarbour", "text": "[quote=\"Databaselab2002\":74wfkw4o]Lo que quiero hacer es que la misma celda tenga por ejemplo mitad color rojo mitad color verde[/quote:74wfkw4o]Hola Fabián:\r\n\r\nCual mitad: Superior/Inferior, Izquierda/Derecha, Recta/Diagonal?\r\n\r\nPodrías ilustrar aproximadamente tu idea?\r\n\r\nSaludos.\r\n\r\nManuel Mercado", "time": "03:12", "topic": "Celdas con dos Colores en Tsbrowse es posible ?", "username": "mmercado" } ]
Celdas con dos Colores en Tsbrowse es posible ?
[ { "date": "2008-09-13", "forum": "FiveWin para Harbour/xHarbour", "text": "Estimado Manuel\r\n\r\nComo comente anteriormente , he desarrollado un planning de \r\nocupacion hotelera ,lo que quiero realizar es lo siguiente si un \r\npasajero termina su estadia el 13/9 a las 10hs y a las 11hs\r\ningresa otro pasajero tener dos colores en una misma celda \r\n\r\nej:\r\n 13/9\r\n --------------------------------\r\n color rojo l color verde\r\n --------------------------------\r\n\r\ndesde ya muchas gracias\r\nFabian", "time": "19:11", "topic": "Celdas con dos Colores en Tsbrowse es posible ?", "username": "Databaselab2002" } ]
Celdas con dos Colores en Tsbrowse es posible ?
[ { "date": "2009-03-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Buenas tardes,\n\nTengo un Browse con varias columnas y quiero que si el valor de la celda es cero que se muestre la celda en blanco.\n¿hay alguna forma más elegante de hacer esto?\n\noBrw1:aCols[1]:bStrData := { || if( !empty(oBrw1:aArrayData[oBrw1:nArrayAt,1]),str(oBrw1:aArrayData[oBrw1:nArrayAt,1]),\" \") }\noBrw1:aCols[2]:bStrData := { || if( !empty(oBrw1:aArrayData[oBrw1:nArrayAt,2]),str(oBrw1:aArrayData[oBrw1:nArrayAt,2]),\" \") }\noBrw1:aCols[3]:bStrData := { || if( !empty(oBrw1:aArrayData[oBrw1:nArrayAt,3]),str(oBrw1:aArrayData[oBrw1:nArrayAt,3]),\" \") }\n\nComo son varias columnas, me gustaría meterlas en un bucle, pero esto no funciona:\n\nfor i=1 to 15\noBrw1:aCols[i]:bStrData := { || if( !empty(oBrw1:aArrayData[oBrw1:nArrayAt,i]),str(oBrw1:aArrayData[oBrw1:nArrayAt,i]),\" \") }\nnext i\nNo funciona porque en ejecución toma el valor actual de i.\nIgual que nArrayAt designa la fila de la matriz, ¿cual es el equivalente para designar la columna?\nMuchas gracias.\nAlvaro", "time": "00:54", "topic": "Celdas en blanco con xbrowse", "username": "alvaro533" } ]
Celdas en blanco con xbrowse
[ { "date": "2009-03-18", "forum": "FiveWin para Harbour/xHarbour", "text": "Hola Alvaro...\n\nIntentalo de esta forma\n\noBrw1:aCols[i]:bStrData := GenBloque( oBrw, i )\n\nFunction GenBloque( oBrw, i )\nreturn { || if( !empty(oBrw1:aRow[ i ]), str(oBrw1:aRow[ i ]),\" \") }", "time": "01:40", "topic": "Celdas en blanco con xbrowse", "username": "Daniel Garcia-Gil" } ]
Celdas en blanco con xbrowse
[ { "date": "2009-03-19", "forum": "FiveWin para Harbour/xHarbour", "text": "Muchas gracias.\nAlvaro", "time": "10:14", "topic": "Celdas en blanco con xbrowse", "username": "alvaro533" } ]
Celdas en blanco con xbrowse
[ { "date": "2023-04-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nThere is an xBrowse from one column.\nI need the cells in this column to have a different font. How to do it ?", "time": "12:32", "topic": "Cell font", "username": "Natter" } ]
Cell font
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Natter:\n\nLook [b:4y7cn6ie]FWH\\Samples\\xbfntclr.prg[/b:4y7cn6ie]", "time": "17:05", "topic": "Cell font", "username": "Cgallegoa" } ]
Cell font
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Cgallegoa, but that's not exactly what I need. <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> I need one cell to have one font and the second one another.", "time": "17:28", "topic": "Cell font", "username": "Natter" } ]
Cell font
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Creo que es lo que necesitas\n\n[url:trurifdb]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=37872&p=226349&hilit=leandro+font+xbrowse&sid=28a1ec26ef7233a68ade4c76928fdab1&sid=7f0fd57a391b1cc18625b3c8cb3b4b7e#p226349[/url:trurifdb]", "time": "18:18", "topic": "Cell font", "username": "leandro" } ]
Cell font
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "You can assign a codeblock to oCol:oDataFont", "time": "19:06", "topic": "Cell font", "username": "nageswaragunupudi" } ]
Cell font
[ { "date": "2023-04-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Leandro, Rao, thank you, this is what I need !", "time": "19:25", "topic": "Cell font", "username": "Natter" } ]
Cell font
[ { "date": "2014-08-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Greetings ... \n\nI have a problem creating an Excel file with Office 2013, I have no problem with previous versions, in all previous cases put the following line: \n\noSheet: Cells (NFIL, 6): NumberFormat: = \"#, ## 0.00\" \n\nAnd I format the cell with \",\" as thousand separator, with \".\" as decimal point and 2 decimal digits, but in Office 2013 I do not respect that format and I placed the numbers \"without\" thousands separator and 3, 4-5 decimal ... \n\nAnyone have any idea how to fix it, thank you very much", "time": "03:23", "topic": "Cells format in Excel 2013, Mr Rao ??", "username": "Enrrique Vertiz" } ]
Cells format in Excel 2013, Mr Rao ??
[ { "date": "2014-08-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Please try \n\n[code=fw:3abptryq]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oSheet: <span style=\"color: #000000;\">Cells</span> <span style=\"color: #000000;\">&#40;</span>NFIL, <span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#41;</span>: <span style=\"color: #000000;\">NumberFormat</span>: &nbsp; &nbsp; &nbsp;= <span style=\"color: #ff0000;\">\"#, ## 0.00\"</span> <br />oSheet: <span style=\"color: #000000;\">Cells</span> <span style=\"color: #000000;\">&#40;</span>NFIL, <span style=\"color: #000000;\">6</span><span style=\"color: #000000;\">&#41;</span>: <span style=\"color: #000000;\">NumberFormatLocal</span>: = <span style=\"color: #ff0000;\">\"#, ## 0.00\"</span></div>[/code:3abptryq]\n\nI don't think it is due to the MS Office version. May be the the locale settings on your PC and the thousands separator and the decimal separator.\n\nI haven't tested it personally.\n\nRegards\n[b:3abptryq]Anser[/b:3abptryq]", "time": "05:50", "topic": "Cells format in Excel 2013, Mr Rao ??", "username": "anserkk" } ]
Cells format in Excel 2013, Mr Rao ??
[ { "date": "2014-08-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you\n\nI check the configuration of the PC, but proves again with your indication. \n\nThank you very much", "time": "06:16", "topic": "Cells format in Excel 2013, Mr Rao ??", "username": "Enrrique Vertiz" } ]
Cells format in Excel 2013, Mr Rao ??
[ { "date": "2014-08-20", "forum": "FiveWin for Harbour/xHarbour", "text": "When I have a question like this.\nI record a macro, set the format I want, stop macro recording, then edit the macro and check out what Excel thinks it should be.", "time": "15:14", "topic": "Cells format in Excel 2013, Mr Rao ??", "username": "Gale FORd" } ]
Cells format in Excel 2013, Mr Rao ??
[ { "date": "2014-08-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Buena idea Gale, voy a probar, gracias", "time": "19:00", "topic": "Cells format in Excel 2013, Mr Rao ??", "username": "Enrrique Vertiz" } ]
Cells format in Excel 2013, Mr Rao ??
[ { "date": "2009-12-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear friends of the forum\n\nhow to display a message or trigger an action to select a cell in XBROWSE with just one click, no double click or right click <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \nI have developed a pattern of weekly visits and each visit is, clearly be seen.\nAnd I have sought ways to do this and I could not, no one has done something like that I made a thread.\n\nFWH 9.06, xHarbour\n\nregards", "time": "18:53", "topic": "Cells on xBrowse", "username": "Blessed" } ]
Cells on xBrowse
[ { "date": "2009-12-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Have you tried bLClicked?\n\nJames", "time": "19:54", "topic": "Cells on xBrowse", "username": "James Bott" } ]
Cells on xBrowse
[ { "date": "2009-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "James, Brief precise and concise!\nTo know which row guided me to the current record, but as I find out which column was clicked?\nWith a right click have the bRClickData in each column.\n\n\nA Greeting from Honduras <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "00:05", "topic": "Cells on xBrowse", "username": "Blessed" } ]
Cells on xBrowse
[ { "date": "2009-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Try:\n\noBrw:bLClicked:= {| nRow, nCol, nFlags| msgInfo( nCol ) }\n\nRegards,\nJames", "time": "00:35", "topic": "Cells on xBrowse", "username": "James Bott" } ]
Cells on xBrowse
[ { "date": "2009-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:r5ocz20x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oBrw:<span style=\"color: #000000;\">bLClicked</span>:= <span style=\"color: #000000;\">&#123;</span>| nRow, nCol, nFlags| MyFunc<span style=\"color: #000000;\">&#40;</span> nCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span></div>[/code:r5ocz20x]\nand\n[code=fw:r5ocz20x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">function</span> MyFunc<span style=\"color: #000000;\">&#40;</span> nColPix <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nCol, oCol<br /><br />&nbsp; &nbsp;nCol &nbsp;:= oBrw:<span style=\"color: #000000;\">MouseColPos</span><span style=\"color: #000000;\">&#40;</span> nColPix <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// nCol is the number of displayed column</span><br />&nbsp; &nbsp;oCol &nbsp;:= oBrw:<span style=\"color: #000000;\">ColAtPos</span><span style=\"color: #000000;\">&#40;</span> nCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// Column object on which clicked</span><br /><br /><br />&nbsp;</div>[/code:r5ocz20x]", "time": "01:11", "topic": "Cells on xBrowse", "username": "nageswaragunupudi" } ]
Cells on xBrowse
[ { "date": "2009-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks friends\n\nthe nCol is the current position based on the current display columns.\nThere will have to make a calculation that pretended to jump, to find the field in the table to see.\n\nThanks for your time, it's bLClicked has been very helpful\n\nA Greeting from Honduras <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "01:31", "topic": "Cells on xBrowse", "username": "Blessed" } ]
Cells on xBrowse
[ { "date": "2009-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Try\n[code=fw:1afi40jv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">nCol := oBrw:<span style=\"color: #000000;\">ColAtPos</span><span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">nColSel</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">nCreationOrder</span></div>[/code:1afi40jv]\n\nRegards,\nMarc", "time": "21:13", "topic": "Cells on xBrowse", "username": "Marc Vanzegbroeck" } ]
Cells on xBrowse
[ { "date": "2009-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "what we need to know is on which column of the browse the user clicked.\n\nmethod MouseColPos( nColPixelClicked ) --> nCol clicked\noBrw:ColAtPos( oBrw:MouseColPos( nColPixelClicked ) ) --> oCol clicked", "time": "02:59", "topic": "Cells on xBrowse", "username": "nageswaragunupudi" } ]
Cells on xBrowse
[ { "date": "2007-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI have a blank area between menu and message and I need to place a bitmap (logo) in this area. Can someone send me code to place a bitmap centerd in maximized window based on length and width of bitmap and length and width of display?\n\nThank you,", "time": "05:29", "topic": "Center bitmap", "username": "cdmmaui" } ]
Center bitmap
[ { "date": "2007-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Darrell,\n\nTry the example below.\n\nJames\n\n[code:w2bdfrgv]> #INCLUDE \"C&#58;\\FW192\\INCLUDE\\FIVEWIN&#46;CH\"\n> *\n> STATIC oWnd,nWndWid,nWndHgt\n> *\n> FUNCTION Main&#40;&#41;\n> DEFINE WINDOW oWnd;\n> FROM 1,2 TO MaxRow&#40;&#41;-3,MaxCol&#40;&#41;-2;\n> TITLE \"BMP Logo Centering\"\n> ACTIVATE WINDOW oWnd ON INIT &#40;Calc_Wnd&#40;&#41;,Disp_Bmp&#40;&#41;&#41;\n> RETURN nil\n> *\n> STATIC FUNCTION Disp_Bmp&#40;&#41;\n> LOCAL oBmp,nRow,nCol,nBmpWid,nBmpHgt,cFile&#58;=\"TEST&#46;BMP\"\n> IF File&#40;cFile&#41;\n> DEFINE BITMAP oBmp FILE cFile OF oWnd\n> nRow = nWndHgt/2 - oBmp&#58;nHeight/2\n> nCol = nWndWid/2 - oBmp&#58;nWidth/2\n> oBmp&#58;End&#40;&#41;\n> @ nRow,nCol BITMAP oBmp FILE cFile PIXEL NOBORDER OF oWnd\n> ENDIF\n> RETURN nil\n> *\n> STATIC FUNCTION Calc_Wnd&#40;&#41;\n> LOCAL x1,y1,x2,y2,aWind&#58;=oWnd&#58;GetRect&#40;&#41;\n> x1 = aWind&#91;1&#93;\n> y1 = aWind&#91;2&#93;\n> x2 = aWind&#91;3&#93;\n> y2 = aWind&#91;4&#93;\n> nWndHgt = x2 - x1\n> nWndWid = y2 - y1\n> RETURN nil\n> **************\n> \n> Hope this helps&#46;\n> \n> Gary Beam\n> Extensions Software Corp&#46;\n> http&#58;//www&#46;ext&#46;com[/code:w2bdfrgv]", "time": "09:50", "topic": "Center bitmap", "username": "James Bott" } ]
Center bitmap
[ { "date": "2007-12-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Darrell,\n\nI found some old code where I did it like this. This code will redraw the bitmap centered whenever the window is resized.\n\nJames\n\n [code:2hffkrsz] ACTIVATE WINDOW ownd maximized ;\n on paint &#40;PalBmpDraw&#40; oWnd&#58;oWndClient&#58;hDC, &#40;oWnd&#58;nHeight/2-oBmp&#58;nHeight/2&#41;-50,&#40;oWnd&#58;nWidth/2-oBmp&#58;nWidth/2&#41;, oBmp&#58;hBitmap, oBmp&#58;hPalette &#41;[/code:2hffkrsz]", "time": "09:58", "topic": "Center bitmap", "username": "James Bott" } ]
Center bitmap
[ { "date": "2007-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi James,\n\nThank you very much!", "time": "14:22", "topic": "Center bitmap", "username": "cdmmaui" } ]
Center bitmap
[ { "date": "2009-12-13", "forum": "FiveWin for Harbour/xHarbour", "text": "The code is working but on taskbar only 3 points are shown.\nDoes someone have a better solution?\nBest regards,\nOtto\n[code=fw:2is8uet8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">function</span> onresize<span style=\"color: #000000;\">&#40;</span>oWnd<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> nSpaceWidth  := oWnd:<span style=\"color: #000000;\">GetWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\" \"</span>, <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> cCaption:= <span style=\"color: #ff0000;\">\"RibbonBar Test \"</span> + FWVERSION<br /><span style=\"color: #00C800;\">local</span> nSpaces := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">local</span> nSpaceBTNs := <span style=\"color: #000000;\">140</span><br /><br />nSpaces :=  <span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">nWidth</span> - nSpaceBTNs - oWnd:<span style=\"color: #000000;\">GetWidth</span><span style=\"color: #000000;\">&#40;</span>cCaption, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> / <span style=\"color: #000000;\">2</span>  / nSpaceWidth<br />oWnd:<span style=\"color: #000000;\">cTitle</span><span style=\"color: #000000;\">&#40;</span> space<span style=\"color: #000000;\">&#40;</span> nSpaces <span style=\"color: #000000;\">&#41;</span> + cCaption <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2is8uet8]\n[img:2is8uet8]http&#58;//www&#46;atzwanger-software&#46;com/fw/taskbar&#46;jpg[/img:2is8uet8]\n\n[img:2is8uet8]http&#58;//www&#46;atzwanger-software&#46;com/fw/hinten&#46;jpg[/img:2is8uet8]", "time": "11:07", "topic": "Center caption on ribbon", "username": "Otto" } ]
Center caption on ribbon
[ { "date": "2009-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nHave you tried to use tabs (Chr( 9 )) instead of spaces (Chr(32)) ?", "time": "08:34", "topic": "Center caption on ribbon", "username": "Antonio Linares" } ]
Center caption on ribbon
[ { "date": "2009-12-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Antonio, \nTAB does not work on the caption. If I insert TAB the caption remains on the left side.\nBest regards,\nOtto", "time": "10:50", "topic": "Center caption on ribbon", "username": "Otto" } ]
Center caption on ribbon
[ { "date": "2009-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nHave you tried using Chr( 255 ) ?", "time": "21:38", "topic": "Center caption on ribbon", "username": "Antonio Linares" } ]
Center caption on ribbon
[ { "date": "2009-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Antonio,\nchr(255) does not work.\nBest regards,\nOtto\n\n[img:1gryhcwl]http&#58;//www&#46;atzwanger-software&#46;com/fw/center&#46;jpg[/img:1gryhcwl]", "time": "23:19", "topic": "Center caption on ribbon", "username": "Otto" } ]
Center caption on ribbon
[ { "date": "2016-04-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Perfect.\n\nThank you for your help", "time": "17:07", "topic": "Center say vertically", "username": "ctoas" } ]
Center say vertically
[ { "date": "2016-04-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello friends.\n\n@ 13,95 SAY oSay VAR cMESSAGE SIZE 250,46 OF oDlg\noSay:nStyle := nOr( SS_CENTERIMAGE )\n\nNot work ?\n\nThanks", "time": "04:26", "topic": "Center say vertically", "username": "ctoas" } ]
Center say vertically
[ { "date": "2016-04-27", "forum": "FiveWin for Harbour/xHarbour", "text": "This works\n[code=fw:212jk9pu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; oSay:<span style=\"color: #000000;\">nStyle</span> := nOr<span style=\"color: #000000;\">&#40;</span> oSay:<span style=\"color: #000000;\">nStyle</span>, SS_CENTERIMAGE &nbsp;<span style=\"color: #000000;\">&#41;</span><br />&nbsp;</div>[/code:212jk9pu]", "time": "08:38", "topic": "Center say vertically", "username": "nageswaragunupudi" } ]
Center say vertically
[ { "date": "2019-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "If on start of the app CenterMsgs() are using, then freezes the programm after call a msgrun() with title!", "time": "15:05", "topic": "CenterMsgs()", "username": "byte-one" } ]
CenterMsgs()
[ { "date": "2019-12-22", "forum": "FiveWin for Harbour/xHarbour", "text": "To center msgRun() in a window/dialog, use this syntax\"\n[code=fw:1948ql6e]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">MsgRun<span style=\"color: #000000;\">&#40;</span> cCaption, cTitle, bAction, oWndParent <span style=\"color: #000000;\">&#41;</span></div>[/code:1948ql6e]", "time": "19:12", "topic": "CenterMsgs()", "username": "nageswaragunupudi" } ]
CenterMsgs()
[ { "date": "2019-12-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"byte-one\":1hvzioyv]If on start of the app CenterMsgs() are using, then freezes the programm after call a msgrun() with title![/quote:1hvzioyv]\n\nPlease make the following correction to \nfwh\\source\\function\\msgrun.prg:\n\nPlease locate the following lines in the function msgrun(...)\nlines 25 to 34\n[code=fw:1hvzioyv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> cTitle == <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">3</span>, Len<span style=\"color: #000000;\">&#40;</span> cCaption <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">4</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> DS_MODALFRAME, WS_POPUP <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> Len<span style=\"color: #000000;\">&#40;</span> cCaption <span style=\"color: #000000;\">&#41;</span>, Len<span style=\"color: #000000;\">&#40;</span> cTitle <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">4</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">TITLE</span> cTitle ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME<br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;</div>[/code:1hvzioyv]\n\nPlease modify the last lines like this:\n[code=fw:1hvzioyv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> cTitle == <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">3</span>, Len<span style=\"color: #000000;\">&#40;</span> cCaption <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">4</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> DS_MODALFRAME, WS_POPUP <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">4</span>, <span style=\"color: #0000ff;\">Max</span><span style=\"color: #000000;\">&#40;</span> Len<span style=\"color: #000000;\">&#40;</span> cCaption <span style=\"color: #000000;\">&#41;</span>, Len<span style=\"color: #000000;\">&#40;</span> cTitle <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">4</span> + <span style=\"color: #000000;\">2</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">TITLE</span> cTitle<br /><br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">ENDIF</span><br />&nbsp;</div>[/code:1hvzioyv]", "time": "08:29", "topic": "CenterMsgs()", "username": "nageswaragunupudi" } ]
CenterMsgs()