messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2006-12-25", "forum": "FiveWin for Harbour/xHarbour", "text": "This looks as a right fix for rpreview.prg:\n[code:29dtlwhn]\n if ! IsAppThemed()\n oPage:VarPut( TXT_PAGENUM + LTrim( Str( nPage, 4, 0 ) ) + \" / \" + ;\n LTrim( Str( Len( aFiles ) ) ) )\n else \n oPage:SetText( TXT_PAGENUM + LTrim( Str( nPage, 4, 0 ) ) + \" / \" + ;\n LTrim( Str( Len( aFiles ) ) ) )\n endif \n[/code:29dtlwhn]\nIn all places where oPage:SetText() was called.", "time": "02:13", "topic": "Bug in TSay", "username": "Antonio Linares" } ]
Bug in TSay
[ { "date": "2006-12-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Or just remove\n\n[code:olfi74d6]oBar:Refresh()[/code:olfi74d6]\n\nEMG", "time": "10:14", "topic": "Bug in TSay", "username": "Enrico Maria Giordano" } ]
Bug in TSay
[ { "date": "2006-12-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nBut if a window is moved over the preview, then it will have the same effect as calling :Refresh()", "time": "10:23", "topic": "Bug in TSay", "username": "Antonio Linares" } ]
Bug in TSay
[ { "date": "2006-12-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Antonio Linares\":fqzbybyx]Enrico,\n\nBut if a window is moved over the preview, then it will have the same effect as calling :Refresh()[/quote:fqzbybyx]\n\nYou are right. Instead try to replace\n\n[code:fqzbybyx]@ 7, 370 SAY oPAGE PROMPT cPageNum ;[/code:fqzbybyx]\n\nwith\n\n[code:fqzbybyx]@ 7, 370 SAY oPAGE PROMPT TXT_PAGENUM+ltrim(str(nPage,4,0)) + \" / \" + ltrim(str(len(aFiles))) ;[/code:fqzbybyx]\n\nEMG", "time": "10:29", "topic": "Bug in TSay", "username": "Enrico Maria Giordano" } ]
Bug in TSay
[ { "date": "2006-12-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nYes, thats a better solution. Thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:54", "topic": "Bug in TSay", "username": "Antonio Linares" } ]
Bug in TSay
[ { "date": "2006-09-24", "forum": "FiveWin for Harbour/xHarbour", "text": "This is a sample of the problem. Please drag the scrollbar thumb to the middle of the scrollbar itself. Then look at the number in the DIALOG title (it is the scrollbar position). Then click below the thumb to step one page down and look at the number again. It is unchanged while it should be +10. If you click again then the number is increased.\n\n[code:2j9te57g]#include \"Fivewin&#46;ch\"\n\n\nFUNCTION MAIN&#40;&#41;\n\n LOCAL oDlg, oScr\n\n DEFINE DIALOG oDlg\n\n oScr = TScrollBar&#40;&#41;&#58;New&#40; 0, 0, 0, 255, 10, &#46;T&#46;, oDlg, 10, 50,;\n &#123; || oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; &#125;,;\n &#123; || oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; &#125;,;\n &#123; || oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; &#125;,;\n &#123; || oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; &#125; &#41;\n\n oScr&#58;bTrack = &#123; | nPos | oScr&#58;SetPos&#40; nPos &#41;,;\n oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; &#125;\n\n ACTIVATE DIALOG oDlg;\n CENTER\n\n RETURN NIL[/code:2j9te57g]\n\nEMG", "time": "15:01", "topic": "Bug in TScrollBar", "username": "Enrico Maria Giordano" } ]
Bug in TScrollBar
[ { "date": "2006-09-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nThis code looks equivalent and seems to work ok:\n[code:24wdt9u2]\n @ 0, 0 SCROLLBAR oScr ;\n VERTICAL ;\n RANGE 0, 255 ;\n PAGESTEP 10 ;\n SIZE 10, 50 ;\n ON UP oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; ;\n ON DOWN oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; ; \n ON PAGEUP oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; ;\n ON PAGEDOWN oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; oScr&#58;GetPos&#40;&#41; &#41; &#41; ;\n ON THUMBPOS &#40; oScr&#58;SetPos&#40; nPos &#41;, oDlg&#58;cTitle &#58;= LTrim&#40; Str&#40; \n\noScr&#58;GetPos&#40;&#41; &#41; &#41; &#41; \n[/code:24wdt9u2]", "time": "22:21", "topic": "Bug in TScrollBar", "username": "Antonio Linares" } ]
Bug in TScrollBar
[ { "date": "2006-09-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nDo you mean that the first pagedown click after the drag & drop, does not respond ?", "time": "22:23", "topic": "Bug in TScrollBar", "username": "Antonio Linares" } ]
Bug in TScrollBar
[ { "date": "2006-09-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Exactly.\n\nEMG", "time": "07:29", "topic": "Bug in TScrollBar", "username": "Enrico Maria Giordano" } ]
Bug in TScrollBar
[ { "date": "2009-03-11", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "The following methods of TScrollBar should modified as below:\n\n[code=fw:1hfwqp7u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">   <span style=\"color: #00C800;\">METHOD</span> PageUp<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">INLINE</span>  ::<span style=\"color: #000000;\">SetPos</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">GetPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - ::<span style=\"color: #000000;\">nPgStep</span> <span style=\"color: #000000;\">&#41;</span>,;<br />                           <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bPageUp</span> != <span style=\"color: #00C800;\">nil</span>, Eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bPageUp</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">METHOD</span> PageDown<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">INLINE</span>  ::<span style=\"color: #000000;\">SetPos</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">GetPos</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + ::<span style=\"color: #000000;\">nPgStep</span> <span style=\"color: #000000;\">&#41;</span>,;<br />                             <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bPageDown</span> != <span style=\"color: #00C800;\">nil</span>, Eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bPageDown</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span></div>[/code:1hfwqp7u]\n\nThe reason is that they are currently different from the other similar method: they set the new position [b:1hfwqp7u]after[/b:1hfwqp7u] evaluating the codeblock. With my change they act as the other methods (GoUp(), etc.).\n\nEMG", "time": "13:08", "topic": "Bug in TScrollBar [Solved]", "username": "Enrico Maria Giordano" } ]
Bug in TScrollBar [Solved]
[ { "date": "2009-03-14", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "Enrico,\n\nI wonder if we will break backwards compatibility with such change.\n\nAlso, if the scrollbar position is changed from those codeblocks, then the scrollbar will not be updated.\n\nI am not against such change. Just thinking about possible side effects...", "time": "10:44", "topic": "Bug in TScrollBar [Solved]", "username": "Antonio Linares" } ]
Bug in TScrollBar [Solved]
[ { "date": "2009-03-14", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "Yes, but the other codeblocks are already reversed, If I'm not wrong.\n\nEMG", "time": "12:01", "topic": "Bug in TScrollBar [Solved]", "username": "Enrico Maria Giordano" } ]
Bug in TScrollBar [Solved]
[ { "date": "2010-01-11", "forum": "FiveWin for Harbour/xHarbour", "text": "In testtray.prg, try to run it and hit ALT-F4. You will end up with a running app that can only be terminated using Task Manager.\n\nEMG", "time": "23:26", "topic": "Bug in TTray", "username": "Enrico Maria Giordano" } ]
Bug in TTray
[ { "date": "2009-10-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nat a certain point, between 7.09 and 9.05 (probably here <!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=12421\">viewtopic.php?f=3&t=12421</a><!-- l -->) you commented out WS_DISABLED\n\n[code=fw:2htui016]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">  <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWnd</span> <span style=\"color: #0000ff;\">STYLE</span> NOR<span style=\"color: #000000;\">&#40;</span> WS_POPUP <span style=\"color: #000000;\">&#41;</span> <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;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #B900B9;\">// , WS_DISABLED</span><br />  <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> ::<span style=\"color: #000000;\">oWnd</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:2htui016]\nThis makes the trayed program appearing in the list of opened programs (ALT+TAB) while nothing happens if you select it. \nAlso, this makes \"screen readers\" used by blind persons detecting an empty window (and the program is no more accessible for them)\n\nHi,\nDavide", "time": "02:46", "topic": "Bug in TTray.prg", "username": "Davide" } ]
Bug in TTray.prg
[ { "date": "2009-10-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Davide,\n\nStyle restored for next FWH 9.10 build, \n\nthanks for your feedback <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "17:37", "topic": "Bug in TTray.prg", "username": "Antonio Linares" } ]
Bug in TTray.prg
[ { "date": "2020-05-24", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "The sample testtray.prg doesn't show any icons in the tray area (FWH 64bit).\n\nAny ideas?\n\nEMG", "time": "09:43", "topic": "Bug in TTrayIcon (64bit)", "username": "Enrico Maria Giordano" } ]
Bug in TTrayIcon (64bit)
[ { "date": "2020-05-27", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "Up. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "16:48", "topic": "Bug in TTrayIcon (64bit)", "username": "Enrico Maria Giordano" } ]
Bug in TTrayIcon (64bit)
[ { "date": "2020-06-13", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "Any news? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "09:30", "topic": "Bug in TTrayIcon (64bit)", "username": "Enrico Maria Giordano" } ]
Bug in TTrayIcon (64bit)
[ { "date": "2020-06-13", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "testing it...\n\nSorry for the delay my friend <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "12:01", "topic": "Bug in TTrayIcon (64bit)", "username": "Antonio Linares" } ]
Bug in TTrayIcon (64bit)
[ { "date": "2020-06-13", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "Thank you! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "12:58", "topic": "Bug in TTrayIcon (64bit)", "username": "Enrico Maria Giordano" } ]
Bug in TTrayIcon (64bit)
[ { "date": "2020-07-20", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "As a reminder... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "10:23", "topic": "Bug in TTrayIcon (64bit)", "username": "Enrico Maria Giordano" } ]
Bug in TTrayIcon (64bit)
[ { "date": "2020-07-20", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "Dear Enrico,\n\nWe have implemented some changes in Class TTrayIcon and in Class TStruct for 64 bits, but still we are unable to get it\nworking on 64 bits...\n\n[code=fw:2hj482ub]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp;<span style=\"color: #00C800;\">if</span> ! IsExe64<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;STRUCT oTray<br />&nbsp; &nbsp; &nbsp; MEMBER cbSize &nbsp; &nbsp; AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER hWnd &nbsp; &nbsp; &nbsp; AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER uID &nbsp; &nbsp; &nbsp; &nbsp;AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER uFlags &nbsp; &nbsp; AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER uCallMsg &nbsp; AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER hIcon &nbsp; &nbsp; &nbsp;AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER cTip &nbsp; &nbsp; &nbsp; AS STRING LEN <span style=\"color: #000000;\">64</span><br />&nbsp; &nbsp;ENDSTRUCT<br />&nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp;STRUCT oTray<br />&nbsp; &nbsp; &nbsp; MEMBER cbSize &nbsp; &nbsp; AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER hWnd &nbsp; &nbsp; &nbsp; AS LONGLONG<br />&nbsp; &nbsp; &nbsp; MEMBER uID &nbsp; &nbsp; &nbsp; &nbsp;AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER uFlags &nbsp; &nbsp; AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER uCallMsg &nbsp; AS LONG<br />&nbsp; &nbsp; &nbsp; MEMBER hIcon &nbsp; &nbsp; &nbsp;AS LONGLONG<br />&nbsp; &nbsp; &nbsp; MEMBER cTip &nbsp; &nbsp; &nbsp; AS STRING LEN <span style=\"color: #000000;\">64</span><br />&nbsp; &nbsp;ENDSTRUCT<br />&nbsp; <span style=\"color: #00C800;\">endif</span></div>[/code:2hj482ub] \n\n[code=fw:2hj482ub]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">case</span> nType == LONGLONG<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">do</span> <span style=\"color: #00C800;\">case</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">case</span> cType == <span style=\"color: #ff0000;\">\"N\"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uData = PadR<span style=\"color: #000000;\">&#40;</span> AllTrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> uData <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, nLen <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endcase</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style=\"color: #000000;\">cBuffer</span> = <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nOffset > <span style=\"color: #000000;\">0</span>, <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cBuffer</span>, <span style=\"color: #000000;\">1</span>, nOffset <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">&#41;</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; uData + <span style=\"color: #0000ff;\">SubStr</span><span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">cBuffer</span>, nOffset + nLen + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:2hj482ub]", "time": "10:59", "topic": "Bug in TTrayIcon (64bit)", "username": "Antonio Linares" } ]
Bug in TTrayIcon (64bit)
[ { "date": "2020-07-20", "forum": "Bugs report & fixes / Informe de errores y arreglos", "text": "Thank you anyway.\n\nEMG", "time": "11:10", "topic": "Bug in TTrayIcon (64bit)", "username": "Enrico Maria Giordano" } ]
Bug in TTrayIcon (64bit)
[ { "date": "2008-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "[code:3j14sqfk]// Headers are white\n\n#include \"Fivewin&#46;ch\"\n\n\nFUNCTION MAIN&#40;&#41;\n\n LOCAL oDlg, oBrw\n\n USE TEST\n\n DEFINE DIALOG oDlg\n\n @ 0, 0 LISTBOX oBrw FIELDS\n\n ACTIVATE DIALOG oDlg;\n ON INIT oDlg&#58;SetControl&#40; oBrw &#41;;\n CENTER\n\n CLOSE\n\n RETURN NIL[/code:3j14sqfk]\r\n\r\nEMG", "time": "10:58", "topic": "Bug in TWBrowse", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse
[ { "date": "2008-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\nare you using VISTA ?\r\nRegards,\r\nOtto\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://forums.fivetechsoft.com/viewtopic.php?t=9990&highlight=vista\">http://forums.fivetechsoft.com/viewtopi ... ight=vista</a><!-- m -->", "time": "11:21", "topic": "Bug in TWBrowse", "username": "Otto" } ]
Bug in TWBrowse
[ { "date": "2008-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "No, XP SP3.\r\n\r\nEMG", "time": "11:25", "topic": "Bug in TWBrowse", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse
[ { "date": "2008-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico, ave you read the thread.\r\nJames reported also have seen this in XP.\r\nIn VISTA 8.o3 or 8.o4 (can't remember exactlly) resolved the problem.\r\nRegards,\r\nOtto", "time": "12:19", "topic": "Bug in TWBrowse", "username": "Otto" } ]
Bug in TWBrowse
[ { "date": "2008-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "The problem started with this month FWH release.\r\n\r\nEMG", "time": "14:07", "topic": "Bug in TWBrowse", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse
[ { "date": "2008-05-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\n\r\nPlease try this change in source\\classes\\wbrowse line 2248:\r\n[code:36il9ra7]\n if nRowPos == 0 \n SetBkColor&#40; hDC, If&#40; ValType&#40; nClrPane &#41; == \"B\",;\n nClrPane &#58;= Eval&#40; nClrPane &#41;, nClrPane &#41; &#41;\n endif \n[/code:36il9ra7]", "time": "09:22", "topic": "Bug in TWBrowse", "username": "Antonio Linares" } ]
Bug in TWBrowse
[ { "date": "2008-05-17", "forum": "FiveWin for Harbour/xHarbour", "text": "It seems to work fine, thank you.\r\n\r\nEMG", "time": "13:30", "topic": "Bug in TWBrowse", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse
[ { "date": "2008-06-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Just move the cursor on the second column and you will see the first column becoming green:\r\n\r\n[code:1t6wsoxi]#include \"Fivewin&#46;ch\"\n\n\nFUNCTION MAIN&#40;&#41;\n\n LOCAL oDlg, oBrw\n\n USE TEST\n\n DEFINE DIALOG oDlg;\n SIZE 400, 400\n\n @ 0, 0 LISTBOX oBrw FIELDS TEST -> last,;\n TEST -> first\n\n oBrw&#58;bLogicLen = &#123; || LastRec&#40;&#41; &#125;\n\n oBrw&#58;lCellStyle = &#46;T&#46;\n\n oBrw&#58;nClrPane = &#123; | nCol | If&#40; nCol = 1, CLR_HRED, CLR_HGREEN &#41; &#125;\n\n ACTIVATE DIALOG oDlg;\n ON INIT oDlg&#58;SetControl&#40; oBrw &#41;;\n CENTER\n\n CLOSE\n\n RETURN NIL[/code:1t6wsoxi]\r\n\r\nEMG", "time": "16:38", "topic": "Bug in TWBrowse - nClrPane", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-06-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\n\r\nHave you tested it with previous versions of FWH 8.05 ? thanks,\r\n\r\nI mean 8.04, 8.03, ...", "time": "14:05", "topic": "Bug in TWBrowse - nClrPane", "username": "Antonio Linares" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-06-02", "forum": "FiveWin for Harbour/xHarbour", "text": "nClrPane is a codeblock starting from the current 8.05.\r\n\r\nEMG", "time": "14:43", "topic": "Bug in TWBrowse - nClrPane", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-06-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\n\r\nYes, you are right, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "18:20", "topic": "Bug in TWBrowse - nClrPane", "username": "Antonio Linares" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-06-02", "forum": "FiveWin for Harbour/xHarbour", "text": "It seems related to oBrw:lCellStyle = .T. \r\n\r\nwithout it, it works fine\r\n\r\nI keep searching...", "time": "19:24", "topic": "Bug in TWBrowse - nClrPane", "username": "Antonio Linares" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\n\r\nFixed! This is the right code for Class TWBrowse line 2282-2284 (a n was missing):\r\n[code:vxtod8tp]\n SetBkColor&#40; hDC, If&#40; nColAct != nil, If&#40; ValType&#40; nClrBack &#41; == \"B\",;\n Eval&#40; nClrBack, n &#41;, nClrBack &#41;,;\n If&#40; ValType&#40; nClrPane &#41; == \"B\", Eval&#40; nClrPane, n &#41;, nClrPane &#41; &#41; &#41;\n[/code:vxtod8tp]\r\nThanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "11:09", "topic": "Bug in TWBrowse - nClrPane", "username": "Antonio Linares" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you!\r\n\r\nEMG", "time": "12:10", "topic": "Bug in TWBrowse - nClrPane", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Where can I find TWBrowse.Prg to make the updation.\r\n\r\nI expected TWBrowse.Prg in the folder \\FWH\\Source\\Classes but I could not find the same anywhere in the FWH Folder\r\n\r\nRegards\r\n\r\nAnser\r\nFWH 8.06\r\n\r\n[quote=\"Antonio Linares\":bezz6g40]Enrico,\n\nFixed! This is the right code for Class TWBrowse line 2282-2284 (a n was missing):\n[code:bezz6g40]\n SetBkColor&#40; hDC, If&#40; nColAct != nil, If&#40; ValType&#40; nClrBack &#41; == \"B\",;\n Eval&#40; nClrBack, n &#41;, nClrBack &#41;,;\n If&#40; ValType&#40; nClrPane &#41; == \"B\", Eval&#40; nClrPane, n &#41;, nClrPane &#41; &#41; &#41;\n[/code:bezz6g40]\nThanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:bezz6g40]", "time": "07:47", "topic": "Bug in TWBrowse - nClrPane", "username": "anserkk" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "\\FWH\\source\\classes\\wbrowse.prg", "time": "09:08", "topic": "Bug in TWBrowse - nClrPane", "username": "nageswaragunupudi" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Anser\r\n\r\nYou have to ( also ) make the same edit just above those lines and add the ,n to nClrText\r\n\r\nRick", "time": "15:08", "topic": "Bug in TWBrowse - nClrPane", "username": "Rick Lipkin" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you,\r\n\r\nMr.Nageswaragunupudi and Mr.Rick Lipkin.\r\n\r\nAs per your advice I updated \\FWH\\source\\classes\\wbrowse.prg\r\n\r\nRegards\r\nAnser", "time": "11:05", "topic": "Bug in TWBrowse - nClrPane", "username": "anserkk" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\nThis topic is about the background color of columns in a listbox.\r\n\r\nBut how do I define the background color of a row ?\r\n\r\nThanks.", "time": "16:30", "topic": "Bug in TWBrowse - nClrPane", "username": "driessen" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-18", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"driessen\":2665cwvx]Hello,\n\nThis topic is about the background color of columns in a listbox.\n\nBut how do I define the background color of a row ?\n\nThanks.[/quote:2665cwvx]\r\n\r\n[code:2665cwvx]oBrw&#58;nClrPane = &#123; | nCol | If&#40; YourCondition, CLR_HRED, CLR_HGREEN &#41; &#125;[/code:2665cwvx]\r\n\r\nEMG", "time": "16:44", "topic": "Bug in TWBrowse - nClrPane", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\n\r\nIsn't your example to define the color of a column ? I want to change the background color of a row.\r\n\r\nThanks.", "time": "21:03", "topic": "Bug in TWBrowse - nClrPane", "username": "driessen" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Please try. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nEMG", "time": "21:35", "topic": "Bug in TWBrowse - nClrPane", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\r\n\r\nIf I replace \"nCol\" by \"nRow\", it works OK.\r\n\r\nThanks.", "time": "23:09", "topic": "Bug in TWBrowse - nClrPane", "username": "driessen" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2008-07-19", "forum": "FiveWin for Harbour/xHarbour", "text": "It shouldn't make any difference as nCol is not used in the codeblock.\r\n\r\nEMG", "time": "10:18", "topic": "Bug in TWBrowse - nClrPane", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse - nClrPane
[ { "date": "2007-04-19", "forum": "FiveWin for Harbour/xHarbour", "text": "This is the sample:\n\n[code:3a34qsnm]#include \"Fivewin&#46;ch\"\n\n\nFUNCTION MAIN&#40;&#41;\n\n LOCAL oDlg, oBrw\n\n USE TEST\n\n DEFINE DIALOG oDlg\n\n @ 0, 0 LISTBOX oBrw FIELDS\n\n ACTIVATE DIALOG oDlg;\n ON INIT oDlg&#58;SetControl&#40; oBrw &#41;;\n CENTER\n\n CLOSE\n\n RETURN NIL[/code:3a34qsnm]\n\nTry to press CTRL-C or CTRL-R and you will see that the scrollbar thumb will move, respectively, down and up (while the highlight bar keep holding on the first record).\n\nEMG", "time": "21:54", "topic": "Bug in TWBrowse scrollbar", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse scrollbar
[ { "date": "2007-04-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Solved! Replace\n\n[code:hoa8sz54]METHOD KeyChar&#40; nKey, nFlags &#41; CLASS TWBrowse\n\n do case\n case nKey == K_PGUP\n &#58;&#58;oVScroll&#58;PageUp&#40;&#41;\n\n case nKey == K_PGDN\n &#58;&#58;oVScroll&#58;PageDown&#40;&#41;\n\n otherwise\n return Super&#58;KeyChar&#40; nKey, nFlags &#41;\n endcase\n\nreturn 0[/code:hoa8sz54]\n\nwith\n\n[code:hoa8sz54]METHOD KeyChar&#40; nKey, nFlags &#41; CLASS TWBrowse\n\n do case\n case nKey == VK_PRIOR\n &#58;&#58;oVScroll&#58;PageUp&#40;&#41;\n\n case nKey == VK_NEXT\n &#58;&#58;oVScroll&#58;PageDown&#40;&#41;\n\n otherwise\n return Super&#58;KeyChar&#40; nKey, nFlags &#41;\n endcase\n\nreturn 0[/code:hoa8sz54]\n\nEMG", "time": "10:42", "topic": "Bug in TWBrowse scrollbar", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse scrollbar
[ { "date": "2007-04-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Or, even better, just remove KeyChar method from TWBrowse class. It seems not needed.\n\nEMG", "time": "12:06", "topic": "Bug in TWBrowse scrollbar", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse scrollbar
[ { "date": "2007-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\n>\nTry to press CTRL-C or CTRL-R and you will see that the scrollbar thumb will move, respectively, down and up (while the highlight bar keep holding on the first record).\n>\n\nWe have removed Class TWBrowse Method KeyChar() following your advise, thanks. Tested in Vista but when Ctrl+C or Ctrl+R are pressed nothing happens (edited: same behavior in XP). Maybe that behavior is not implemented in Vista.", "time": "06:40", "topic": "Bug in TWBrowse scrollbar", "username": "Antonio Linares" } ]
Bug in TWBrowse scrollbar
[ { "date": "2007-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "I don't know why you can't replicate the problem but try this:\n\n[code:3tq4gf2h]METHOD KeyChar&#40; nKey, nFlags &#41; CLASS TWBrowse\n\n do case\n case nKey == K_PGUP\n &#58;&#58;oVScroll&#58;PageUp&#40;&#41;\n? nKey, K_PGUP\n case nKey == K_PGDN\n &#58;&#58;oVScroll&#58;PageDown&#40;&#41;\n? nKey, K_PGDN\n otherwise\n return Super&#58;KeyChar&#40; nKey, nFlags &#41;\n endcase\n\nreturn 0[/code:3tq4gf2h]\n\nDon't you see the same value for nKey and for K_PGUP or K_PGDN?\n\nTry with few records.\n\nEMG", "time": "08:15", "topic": "Bug in TWBrowse scrollbar", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse scrollbar
[ { "date": "2007-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nWe removed Method KeyChar() following your advise and everything seems to work fine. Anyhow Ctrl+C and Ctrl+R do nothing here. \n\nWhat are those keystrokes intended for ?", "time": "17:14", "topic": "Bug in TWBrowse scrollbar", "username": "Antonio Linares" } ]
Bug in TWBrowse scrollbar
[ { "date": "2007-04-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Are you saying that the KeyChar method is not invoked when you press CTRL-C or CTRL-R? It is invoked here. Anyway, CTRL-C and CTRL-R is not intended for anything. Just they caused the scrollbar to move due to the typo K_PGUP/K_PGDN (Clipper keys) instead of VK_PRIOR/VK_NEXT (Windows keys). That's all.\n\nEMG", "time": "17:26", "topic": "Bug in TWBrowse scrollbar", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse scrollbar
[ { "date": "2007-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nI see. Well as we have removed Method KeyChar() then it should be fine now <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "10:35", "topic": "Bug in TWBrowse scrollbar", "username": "Antonio Linares" } ]
Bug in TWBrowse scrollbar
[ { "date": "2007-04-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, thank you.\n\nEMG", "time": "10:38", "topic": "Bug in TWBrowse scrollbar", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse scrollbar
[ { "date": "2006-10-14", "forum": "FiveWin for Harbour/xHarbour", "text": "This is the sample (you will see that all the not focused cells of the current row are black):\n\n[code:3l6h7khv]#include \"Fivewin&#46;ch\"\n\n\nFUNCTION MAIN&#40;&#41;\n\n LOCAL oDlg, oBrw\n\n USE TEST\n\n DEFINE DIALOG oDlg\n\n @ 0, 0 LISTBOX oBrw FIELDS\n\n oBrw&#58;lCellStyle = &#46;T&#46;\n\n oBrw&#58;nClrPane &#58;= &#123; || CLR_HGREEN &#125;\n\n ACTIVATE DIALOG oDlg;\n ON INIT oDlg&#58;SetControl&#40; oBrw &#41;;\n CENTER\n\n CLOSE\n\n RETURN NIL[/code:3l6h7khv]\n\nEMG", "time": "17:12", "topic": "Bug in TWBrowse:nClrPane", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse:nClrPane
[ { "date": "2006-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nI confirm the problem--with the Aug 2006/xHarbour build.\n\nJames", "time": "17:23", "topic": "Bug in TWBrowse:nClrPane", "username": "James Bott" } ]
Bug in TWBrowse:nClrPane
[ { "date": "2006-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico, James,\n\nThis change is required at source\\classes\\wbrowse.prg line 2268:\n[code:1b92n1kc]\n if nRowPos != 0\n SetTextColor&#40; hDC, If&#40; nColAct != nil, If&#40; ValType&#40; nClrTxt &#41; == \"B\",;\n Eval&#40; nClrTxt &#41;, nClrTxt &#41;, nClrText &#41; &#41;\n SetBkColor&#40; hDC, If&#40; nRowPos == 0, GetSysColor&#40; COLOR_BTNFACE &#41;,;\n If&#40; nColAct == nil, nClrPane,;\n If&#40; ValType&#40; nClrBack &#41; == \"B\", Eval&#40; nClrBack &#41;, nClrBack &#41; &#41; &#41; &#41;\n endif\n[/code:1b92n1kc]", "time": "21:04", "topic": "Bug in TWBrowse:nClrPane", "username": "Antonio Linares" } ]
Bug in TWBrowse:nClrPane
[ { "date": "2006-10-15", "forum": "FiveWin for Harbour/xHarbour", "text": "A better version:\n[code:3tcc8qpe]\n if nRowPos != 0\n SetTextColor&#40; hDC, If&#40; nColAct != nil, If&#40; ValType&#40; nClrTxt &#41; == \"B\",;\n Eval&#40; nClrTxt &#41;, nClrTxt &#41;, nClrText &#41; &#41;\n SetBkColor&#40; hDC, If&#40; nColAct != nil, If&#40; ValType&#40; nClrBack &#41; == \"B\",;\n Eval&#40; nClrBack &#41;, nClrBack &#41;, nClrPane &#41; &#41;\n endif\n[/code:3tcc8qpe]", "time": "21:07", "topic": "Bug in TWBrowse:nClrPane", "username": "Antonio Linares" } ]
Bug in TWBrowse:nClrPane
[ { "date": "2006-10-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you.\n\nEMG", "time": "08:11", "topic": "Bug in TWBrowse:nClrPane", "username": "Enrico Maria Giordano" } ]
Bug in TWBrowse:nClrPane
[ { "date": "2005-12-18", "forum": "FiveWin for Pocket PC", "text": "Try to run the following sample:\n\n[code:2mdywgh1]#include \"Fwce&#46;ch\"\n\n\nFUNCTION MAIN&#40;&#41;\n\n LOCAL oWnd\n\n LOCAL oGet, cVar &#58;= SPACE&#40; 30 &#41;\n\n DEFINE WINDOW oWnd\n\n @ 1, 1 GET oGet VAR cVar OF oWnd;\n SIZE 100, 20\n\n// oGet&#58;SetFocus&#40;&#41;\n\n ACTIVATE WINDOW oWnd\n\n RETURN NIL[/code:2mdywgh1]\n\nIf you press Tab you will get the following error:\n\nClass: NIL has no exported method GONEXTCTRL\n\nUncommenting oGet:SetFocus() the error goes away.\n\nEMG", "time": "22:23", "topic": "Bug in TWindow", "username": "Enrico Maria Giordano" } ]
Bug in TWindow
[ { "date": "2005-12-18", "forum": "FiveWin for Pocket PC", "text": "Enrico,\n\nWith the latest FWPPC build published yesterday (yesterday two new builds were published) there is no error.", "time": "23:19", "topic": "Bug in TWindow", "username": "Antonio Linares" } ]
Bug in TWindow
[ { "date": "2005-12-19", "forum": "FiveWin for Pocket PC", "text": "Confirmed! Thank you!\n\nEMG", "time": "08:45", "topic": "Bug in TWindow", "username": "Enrico Maria Giordano" } ]
Bug in TWindow
[ { "date": "2016-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Please look at these two samples.\n\nPRG 1:\n\n[code=fw:15g50ea1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />           <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span><br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span>;<br />             <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />             <span style=\"color: #0000ff;\">CENTER</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:15g50ea1]\n\nRC 1:\n\n[code=fw:15g50ea1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TEST <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"Test\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">12</span>, <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span><br />LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br /><span style=\"color: #000000;\">&#123;</span><br /> CONTROL <span style=\"color: #ff0000;\">\"Test\"</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #ff0000;\">\"BUTTON\"</span>, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">265</span>, <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">16</span><br /><span style=\"color: #000000;\">&#125;</span></div>[/code:15g50ea1]\n\nPRG 2:\n\n[code=fw:15g50ea1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oBrw<br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />           <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span><br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw;<br />             <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />    <span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span>;<br />             <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />             <span style=\"color: #0000ff;\">CENTER</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:15g50ea1]\n\nRC 2:\n\n[code=fw:15g50ea1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TEST <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"Test\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">12</span>, <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span><br />LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br /><span style=\"color: #000000;\">&#123;</span><br /> CONTROL <span style=\"color: #ff0000;\">\"Test\"</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #ff0000;\">\"BUTTON\"</span>, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">265</span>, <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">16</span><br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #ff0000;\">\"TXBrowse\"</span>, WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">275</span>, <span style=\"color: #000000;\">245</span><br /><span style=\"color: #000000;\">&#125;</span></div>[/code:15g50ea1]\n\nThe second sample doesn't honour the font size defined in the RC file. It looks like the presence of TXBrowse prevents it.\n\nAny workaround?\n\nEMG", "time": "14:53", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Just to further explain the problem, this sample using TWBrowse works fine instead:\n\n[code=fw:3auem5qr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><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<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oBrw<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"TEST\"</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">LISTBOX</span> oBrw FIELDS;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #000000;\">&#40;</span> oBrw <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">201</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:3auem5qr]\n\n[code=fw:3auem5qr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">TEST <span style=\"color: #0000ff;\">DIALOG</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span><br /><span style=\"color: #0000ff;\">STYLE</span> DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU<br />CAPTION <span style=\"color: #ff0000;\">\"Test\"</span><br /><span style=\"color: #0000ff;\">FONT</span> <span style=\"color: #000000;\">12</span>, <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span><br />LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL<br /><span style=\"color: #000000;\">&#123;</span><br />&nbsp;CONTROL <span style=\"color: #ff0000;\">\"Test\"</span>, <span style=\"color: #000000;\">201</span>, <span style=\"color: #ff0000;\">\"BUTTON\"</span>, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">265</span>, <span style=\"color: #000000;\">41</span>, <span style=\"color: #000000;\">16</span><br />&nbsp;CONTROL <span style=\"color: #ff0000;\">\"\"</span>, <span style=\"color: #000000;\">101</span>, <span style=\"color: #ff0000;\">\"TWBrowse\"</span>, WS_CHILD | WS_VISIBLE | WS_BORDER | WS_VSCROLL | WS_HSCROLL | WS_TABSTOP, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">275</span>, <span style=\"color: #000000;\">245</span><br /><span style=\"color: #000000;\">&#125;</span></div>[/code:3auem5qr]\n\nEMG", "time": "23:11", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Any news? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "09:43", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "I think it need\noBrw:CreateFromCode() or CreateFromResource( nId )", "time": "10:15", "topic": "Bug in TXBrowse?", "username": "Silvio.Falconi" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "With oBrw:CreateFromCode() I get the following error:\n\n[code=fw:209lhlio]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Error description: <span style=\"color: #000000;\">Error</span> FiveWin/<span style=\"color: #000000;\">2</span> &nbsp;Duplicated <span style=\"color: #0000ff;\">Id</span>: <span style=\"color: #000000;\">No</span>: &nbsp; &nbsp;<span style=\"color: #000000;\">101</span></div>[/code:209lhlio]\n\nEMG", "time": "10:19", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[img:jqqm168l]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/07/nn&#46;jpg[/img:jqqm168l]\nhere run ok \nwich is the problem ?", "time": "10:23", "topic": "Bug in TXBrowse?", "username": "Silvio.Falconi" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "CreateFromResource( 101 )\nrun also without\n\nI tried also with \nCONTROL \"\", 200, \"TxBrowse\", WS_TABSTOP|0x00a00000, 12, 8, 178, 96", "time": "10:24", "topic": "Bug in TXBrowse?", "username": "Silvio.Falconi" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Please look at the font of the button. It should be size 12.\n\nEMG", "time": "10:30", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Enrico\n\nWe shall look into this and get back to you.\nAt the same I am surprised that you even touched XBrowse. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "10:39", "topic": "Bug in TXBrowse?", "username": "nageswaragunupudi" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":g9mwy7cf]Mr Enrico\n\nWe shall look into this and get back to you.[/quote:g9mwy7cf]\n\nThank you.\n\n[quote=\"nageswaragunupudi\":g9mwy7cf]At the same I am surprised that you even touched XBrowse. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->[/quote:g9mwy7cf]\n\nWhy?\n\nEMG", "time": "10:52", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "And while you are looking at it, what is that \"A\" on the header?\n\nEMG", "time": "16:18", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "it create an array init from A as default", "time": "07:56", "topic": "Bug in TXBrowse?", "username": "Silvio.Falconi" } ]
Bug in TXBrowse?
[ { "date": "2016-07-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Any news? <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "13:51", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Still waiting... <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "10:31", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao, please, I need a workaround to this problem. <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "12:28", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2016-07-16", "forum": "FiveWin for Harbour/xHarbour", "text": "TXBrowse when created, calls ::GetFont() method for the purpose of assigning itself the same font as the containing window. Calling GetFont() is the standard method for this. \n\nGetFont() method is in TWindow class. If the container window does not have a font already assigned, this in turn executes that window's GetFont() method. In case of a dialog created from resource, it tries to create and assign a font object to it on the basis of font metrics of the dialog. Theoretically this assigned font object should be identical to the hFont of the dialog when created from resource.\n\nThe relevant part of the code is this:\n[code=fw:1nrk39cn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oFont</span> == <span style=\"color: #00C800;\">nil</span><br />      <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> hFont := ::<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">&#40;</span> WM_GETFONT <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> != <span style=\"color: #000000;\">0</span><br />         aInfo = GetFontInfo<span style=\"color: #000000;\">&#40;</span> hFont <span style=\"color: #000000;\">&#41;</span><br />         oFont = TFont<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />         oFont:<span style=\"color: #000000;\">hFont</span>     = hFont<br />         oFont:<span style=\"color: #000000;\">nCount</span>    = <span style=\"color: #000000;\">1</span><br />         oFont:<span style=\"color: #000000;\">nHeight</span>   = aInfo<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />         oFont:<span style=\"color: #000000;\">nWeight</span>   = aInfo<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><br />         oFont:<span style=\"color: #000000;\">lBold</span>     = aInfo<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span><br />         oFont:<span style=\"color: #000000;\">cFaceName</span> = aInfo<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span><br />         oFont:<span style=\"color: #000000;\">lDestroy</span>  = .f.<br />         ::<span style=\"color: #000000;\">oFont</span> = oFont<br /> </div>[/code:1nrk39cn]\nI do not know for what reason the oDlg:oFont is different from the hFont queried with WM_GETFONT.\n\nThis problem is the same as the selfont() or choosefont() function's problem. Even there the oFont created from the fontmetrics differ from the selected font.\n\nI could not yet find a solution for this. Greatly appreciate any help from you.\n\nSo the real issue is here to fix.\n\nMeanwhile the one workaround is to assign a font object to the Dialog() as close to the font definition of the Dialog in resources.", "time": "14:00", "topic": "Bug in TXBrowse?", "username": "nageswaragunupudi" } ]
Bug in TXBrowse?
[ { "date": "2016-07-16", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":283jvihn]I could not yet find a solution for this. Greatly appreciate any help from you.[/quote:283jvihn]\n\nSorry, I can't understand the problem. Can you show a little self-contained sample demonstrating it?\n\n[quote=\"nageswaragunupudi\":283jvihn]Meanwhile the one workaround is to assign a font object to the Dialog() as close to the font definition of the Dialog in resources.[/quote:283jvihn]\n\nGreat! It's what I needed, thank you! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nEMG", "time": "14:28", "topic": "Bug in TXBrowse?", "username": "Enrico Maria Giordano" } ]
Bug in TXBrowse?
[ { "date": "2011-05-31", "forum": "FiveWin for Harbour/xHarbour", "text": "In brush.prg there is the following line:\n\n[code=fw:2g8hkjge]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">&#40;</span> nAt := AScan<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">aBrushes</span>, <span style=\"color: #000000;\">&#123;</span>|oBrush| <span style=\"color: #00C800;\">Self</span> == oBrush <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> > <span style=\"color: #000000;\">0</span></div>[/code:2g8hkjge]\n\nBut we can't compare brushes at this point because some of the properties of the current brush have not been assigned yet (ie. ::aGrad).\n\nOne of the results is that the new GRADIENT clause doesn't work if there are brushes already defined.\n\nEMG", "time": "15:53", "topic": "Bug in Tbrush", "username": "Enrico Maria Giordano" } ]
Bug in Tbrush
[ { "date": "2011-05-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks for pointing out the bug.", "time": "16:43", "topic": "Bug in Tbrush", "username": "nageswaragunupudi" } ]
Bug in Tbrush
[ { "date": "2011-06-01", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:xt52xars]\nOne of the results is that the new GRADIENT clause doesn't work if there are brushes already defined.\n[/quote:xt52xars]\n\nThere seems to be no problem in creating any number of gradient brushes. \n\n[code=fw:xt52xars]<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: #00C800;\">static</span> aGrad1 &nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> .<span style=\"color: #000000;\">4</span>, CLR_BLUE, CLR_WHITE <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> .<span style=\"color: #000000;\">6</span>, CLR_WHITE, CLR_BLUE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">static</span> aGrad2 &nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">14853684</span>, <span style=\"color: #000000;\">16314573</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">16314573</span>, <span style=\"color: #000000;\">14853684</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">static</span> aGrad3 &nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.25</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">219</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">244</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">207</span>, <span style=\"color: #000000;\">221</span>, <span style=\"color: #000000;\">239</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.75</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">201</span>, <span style=\"color: #000000;\">217</span>, <span style=\"color: #000000;\">237</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">242</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">static</span> aGrad4 &nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.25</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">253</span>, <span style=\"color: #000000;\">222</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">231</span>, <span style=\"color: #000000;\">151</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0.75</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">215</span>, &nbsp;<span style=\"color: #000000;\">84</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span>, <span style=\"color: #000000;\">233</span>, <span style=\"color: #000000;\">162</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">static</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oBar<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> GRADIENT aGrad1<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> GRADIENT aGrad2<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> GRADIENT aGrad3<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> GRADIENT aGrad4<br /><br />&nbsp; &nbsp;? Len<span style=\"color: #000000;\">&#40;</span> TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">aBrushes</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">MDI</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Gradient Brushes\"</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTONBAR</span> oBar <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">2007</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #0000ff;\">OF</span> oBar <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Child\"</span> <span style=\"color: #0000ff;\">ACTION</span> NewChild<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">''</span> <span style=\"color: #000000;\">2007</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;? Len<span style=\"color: #000000;\">&#40;</span> TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">aBrushes</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;AEval<span style=\"color: #000000;\">&#40;</span> aGrdBrush, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;? Len<span style=\"color: #000000;\">&#40;</span> TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">aBrushes</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> NewChild<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">static</span> nBrush &nbsp;:= <span style=\"color: #000000;\">1</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd<br /><br />&nbsp; &nbsp;nBrush &nbsp; := <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> nBrush == <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">1</span>, ++nBrush <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MDICHILD</span> <span style=\"color: #0000ff;\">OF</span> WndMain<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> nBrush <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:xt52xars]\n\nFour gradient brushes are created and can be used and reused in any manner.\n\nBut the problem arises when new brushes are created with the same image with different resize modes, after creating a non-resizble brush with that image. This will be fixed.", "time": "05:45", "topic": "Bug in Tbrush", "username": "nageswaragunupudi" } ]
Bug in Tbrush
[ { "date": "2011-06-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Please try:\n\n[code=fw:39b7yrxf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #B900B9;\">//GRADIENT aGrad1</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> GRADIENT aGrad2<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#93;</span> GRADIENT aGrad3<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> aGrdBrush<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">&#93;</span> GRADIENT aGrad4</div>[/code:39b7yrxf]\n\nEMG", "time": "11:04", "topic": "Bug in Tbrush", "username": "Enrico Maria Giordano" } ]
Bug in Tbrush
[ { "date": "2011-06-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks, Yes.\nI noticed this too.\nFixed now.", "time": "23:00", "topic": "Bug in Tbrush", "username": "nageswaragunupudi" } ]
Bug in Tbrush
[ { "date": "2011-06-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you. One more problem: ::nResizeMode is 0 by default. It should be 1.\n\nEMG", "time": "23:59", "topic": "Bug in Tbrush", "username": "Enrico Maria Giordano" } ]
Bug in Tbrush
[ { "date": "2011-06-02", "forum": "FiveWin for Harbour/xHarbour", "text": "This is the logic adopted:\n\nnResizeMode is not relevant for solid and style brushes, but only to those which depend on bitmaps, including gradients.\n\nDefault mode for all bitmap brushes, except gradients, is TILED mode. nResizeMode = 0 is the default tiled mode. This is the traditional way. nResizeMode = 1 means STRETCH and nResizeMode = 2 means RESIZE. Optionally, one of these two modes can be selected in case of Images, at the time of creation of the brush. RESIZE mode retains the aspect ratio, while STRETCH does not. In case of RESIZE, one of the dimensions fits the window client size while the other may exceed.\n\nGradient brushes are always to be stretched, i.e., the entire window client area is to be filled. Size of the bitmap created is exactly the same as the client area of the window.\n\nBy default the gradient type is Vertical, which is represented by nResizeMode = 1 and optional HORIZONTAL mode is represented by 2. When a brush is created for gradient, we are setting the default to 1 ( vertical ) in the New() method, unless HORIZ clause is specified.\n\nHope this explains. Welcome your suggestions.", "time": "00:59", "topic": "Bug in Tbrush", "username": "nageswaragunupudi" } ]
Bug in Tbrush
[ { "date": "2011-06-02", "forum": "FiveWin for Harbour/xHarbour", "text": "No, what I'm trying to say is that the default for gradient brushes is currently 0 that means != 1 and therefore horizontal. Please test.\n\nEMG", "time": "09:00", "topic": "Bug in Tbrush", "username": "Enrico Maria Giordano" } ]
Bug in Tbrush
[ { "date": "2008-11-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I'm trying to close a FiveWin application (caption = 6.0) from another but it's not working.\r\n\r\n[color=red:1bhq5i7y] TerminateProcess( GetWndTask( FindWindow ( , \"6.0\" ) ), 1 )\n[/color:1bhq5i7y][color=blue:1bhq5i7y]OR[/color:1bhq5i7y][color=red:1bhq5i7y]\n hWnd := FindWindow(, \"6.0\" ) [/color:1bhq5i7y][color=blue:1bhq5i7y]<--- this gets the correct window handle[/color:1bhq5i7y][color=red:1bhq5i7y]\n hTask := GetWndTask( hWnd ) [/color:1bhq5i7y][color=blue:1bhq5i7y]<--- this fails, getting the wrong number[/color:1bhq5i7y]\n[color=blue:1bhq5i7y]\nIsn't GetWndTask( hWnd) supposed to get the process id ?[/color:1bhq5i7y]\r\n[color=red:1bhq5i7y]\n TerminateProcess( hTask , 1 ) [/color:1bhq5i7y][color=blue:1bhq5i7y]<--- this fails because of the wrong hTask[/color:1bhq5i7y]\r\n\r\nAny clues ?", "time": "22:24", "topic": "Bug in TerminateProcess() and/or GetWndTask() function(s) ?", "username": "HunterEC" } ]
Bug in TerminateProcess() and/or GetWndTask() function(s) ?
[ { "date": "2008-11-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Gustavo,\r\n\r\nHere you have a working example, implemented in a different way:\r\n[code:1yrc7dqm]\n#include \"FiveWin&#46;ch\" \n\nfunction Main&#40;&#41; \n\n local oDlg\n\n DEFINE DIALOG oDlg TITLE \"Test\" \n\n @ 1, 1 BUTTON \"Calculator\" OF oDlg SIZE 50, 13 ACTION WinExec&#40; \"calc\" &#41;\n \n @ 1, 12 BUTTON \"Close\" OF oDlg ;\n ACTION SendMessage&#40; FindWindow&#40; 0, \"Calculator\" &#41;, WM_CLOSE &#41;\n\n ACTIVATE DIALOG oDlg CENTERED \n\nreturn nil \n[/code:1yrc7dqm]", "time": "22:50", "topic": "Bug in TerminateProcess() and/or GetWndTask() function(s) ?", "username": "Antonio Linares" } ]
Bug in TerminateProcess() and/or GetWndTask() function(s) ?
[ { "date": "2008-11-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio:\r\n\r\nThis: [color=blue:2w6jjm1n]hWnd := FindWindow( \"6.0\" )[/color:2w6jjm1n] returns 0\r\n\r\nThis: [color=blue:2w6jjm1n]hWnd := FindWindow(, \"6.0\" )[/color:2w6jjm1n] returns 265412\r\n\r\nNow, this: [color=blue:2w6jjm1n]MsgInfo( GetWndTask( hWnd ) )[/color:2w6jjm1n] returns 3760 that does not shows up in Windows' Task Manager's Processes.\r\n\r\nThank you for your help.", "time": "22:52", "topic": "Bug in TerminateProcess() and/or GetWndTask() function(s) ?", "username": "HunterEC" } ]
Bug in TerminateProcess() and/or GetWndTask() function(s) ?
[ { "date": "2008-11-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio:\r\n\r\nThank you very much, with the SendMessage() function worked perfectly ! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "23:44", "topic": "Bug in TerminateProcess() and/or GetWndTask() function(s) ?", "username": "HunterEC" } ]
Bug in TerminateProcess() and/or GetWndTask() function(s) ?
[ { "date": "2009-12-25", "forum": "FiveWin for Harbour/xHarbour", "text": "This is the sample showing the problem\n[code=fw:1ulcfqrt]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">'fivewin.ch'</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd<br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE,CLR_BLUE<br />   @ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oWnd TRANSPARENT<br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:1ulcfqrt]\n\nThis is the result:\n[url=http&#58;//img198&#46;imageshack&#46;us/my&#46;php?image=bugcu&#46;jpg:1ulcfqrt][img:1ulcfqrt]http&#58;//img198&#46;imageshack&#46;us/img198/4041/bugcu&#46;jpg[/img:1ulcfqrt][/url:1ulcfqrt]\n\nBackground of the DestkTop is visible through the Group.\nIs this a bug or am I doing something wrong?", "time": "07:38", "topic": "Bug in Transparent Group", "username": "nageswaragunupudi" } ]
Bug in Transparent Group
[ { "date": "2009-12-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nClass TGroup uses a NULL brush for TRANSPARENT mode and the NULL brush does not work fine under all circunstances.\n\nPlease use this workaround which works better:\n[code=fw:1pd8pv4v]<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: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oWnd, oGrp<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE, CLR_BLUE<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> GROUP oGrp <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">400</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #B900B9;\">// TRANSPARENT</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;oGrp:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> oWnd:<span style=\"color: #000000;\">oBrush</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:1pd8pv4v]", "time": "22:30", "topic": "Bug in Transparent Group", "username": "Antonio Linares" } ]
Bug in Transparent Group
[ { "date": "2009-12-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Antonio\n\nThanks.\n\nBut when we use image or gradient brush for the window, the background inside the group does not match the background of the window. \n\nThe following solution appears to be working ( for windows ), both when resized and brush is changed at runtime.\n[code=fw:3jzkvh8q]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> &nbsp; oGrp:<span style=\"color: #000000;\">bEraseBkGnd</span> := <span style=\"color: #000000;\">&#123;</span> |hDC| SetBrushOrgEx<span style=\"color: #000000;\">&#40;</span> hDC, -oGrp:<span style=\"color: #000000;\">nLeft</span>, -oGrp:<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; FillRect<span style=\"color: #000000;\">&#40;</span> hDC, GetClientRect<span style=\"color: #000000;\">&#40;</span> oGrp:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span>, oGrp:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:3jzkvh8q]\n\nCan TGroup include similar code?", "time": "06:00", "topic": "Bug in Transparent Group", "username": "nageswaragunupudi" } ]
Bug in Transparent Group
[ { "date": "2009-12-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nIncluded in FWH 9.12 this way:\n[code=fw:unfnpn80]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">METHOD</span> EraseBkGnd<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TGroup<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bEraseBkGnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">return</span> Eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bEraseBkGnd</span>, hDC <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br />  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lTransparent</span><br />     <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />        SetBrushOrgEx<span style=\"color: #000000;\">&#40;</span> hDC, nBmpWidth<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span> - ::<span style=\"color: #000000;\">nLeft</span>, nBmpHeight<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span> - ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">endif</span>   <br />     FillRect<span style=\"color: #000000;\">&#40;</span> hDC, GetClientRect<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">else</span><br />     FillRect<span style=\"color: #000000;\">&#40;</span> hDC, GetClientRect<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">endif</span><br />  <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span>  <br /> </div>[/code:unfnpn80]\nThanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "10:15", "topic": "Bug in Transparent Group", "username": "Antonio Linares" } ]
Bug in Transparent Group
[ { "date": "2009-12-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nCan you try this sample using DIALOG with new EraseBkGnd and without.\n\nThanks,\n\n\n\n[code=fw:3uqql5em]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">'fivewin.ch'</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> oWnd, cGet := SPACE<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">15</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oWnd <span style=\"color: #0000ff;\">COLOR</span> CLR_WHITE,CLR_BLUE <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">600</span>,<span style=\"color: #000000;\">400</span><br />   <br />   @ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oWnd TRANSPARENT<br />      <br />   @ <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">100</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oWnd TRANSPARENT<br />      <br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oWnd <span style=\"color: #0000ff;\">CENTER</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:3uqql5em]", "time": "19:40", "topic": "Bug in Transparent Group", "username": "Horizon" } ]
Bug in Transparent Group
[ { "date": "2009-12-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nIf I change the method like below it works in dialogs like windows. I don't know it is exactly true.\n\n[code=fw:3lp4mvie]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">METHOD</span> EraseBkGnd<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">CLASS</span> TGroup<br /><br />   <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bEraseBkGnd</span> <span style=\"color: #000000;\">&#41;</span><br />      <span style=\"color: #00C800;\">return</span> Eval<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">bEraseBkGnd</span>, hDC <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">endif</span><br /><br />  <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lTransparent</span> <br />     <span style=\"color: #00C800;\">if</span> ! Empty<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />        SetBrushOrgEx<span style=\"color: #000000;\">&#40;</span> hDC, nBmpWidth<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span> - ::<span style=\"color: #000000;\">nLeft</span>, nBmpHeight<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span> - ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">endif</span>   <br />     <span style=\"color: #00C800;\">if</span> UPPER<span style=\"color: #000000;\">&#40;</span>::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>=<span style=\"color: #ff0000;\">\"TWINDOW\"</span>     <span style=\"color: #B900B9;\">//added</span><br />            FillRect<span style=\"color: #000000;\">&#40;</span> hDC, GetClientRect<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />     <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">//added</span><br />  <span style=\"color: #00C800;\">else</span><br />     FillRect<span style=\"color: #000000;\">&#40;</span> hDC, GetClientRect<span style=\"color: #000000;\">&#40;</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span>, ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />  <span style=\"color: #00C800;\">endif</span><br />  <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span></div>[/code:3lp4mvie]", "time": "21:26", "topic": "Bug in Transparent Group", "username": "Horizon" } ]
Bug in Transparent Group
[ { "date": "2009-12-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hakan,\n\nYour example works fine here on Windows 7 with the new EraseBkGnd() code:\n\n[img:2ldbxmyn]http&#58;//img704&#46;imageshack&#46;us/img704/2238/groupsc&#46;png[/img:2ldbxmyn]", "time": "22:05", "topic": "Bug in Transparent Group", "username": "Antonio Linares" } ]
Bug in Transparent Group