messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2013-12-28", "forum": "Utilities / Utilidades", "text": "Enrico,\n\nIn Windows 8 works with WindowText as I explained. Maybe it has changed in 8.1", "time": "20:48", "topic": "Change Windows Background color in Windows 8", "username": "Antonio Linares" } ]
Change Windows Background color in Windows 8
[ { "date": "2018-07-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear All,\n\nI can define TXBrowse as \"Windows Style=0x50210000\" in .RC or .RES. But if I need to define from source code with out .RC or .RES. \n\nHow do I can define it?\n\nThanks", "time": "07:28", "topic": "Change XBROWSE Style?", "username": "dutch" } ]
Change XBROWSE Style?
[ { "date": "2018-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "What does the style Windows Style=0x50210000 mean?", "time": "11:38", "topic": "Change XBROWSE Style?", "username": "nageswaragunupudi" } ]
Change XBROWSE Style?
[ { "date": "2018-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr.Rao,\n\nI need TXBRowse with flat border style as picture.\n[url=https://postimages.org/:3a3dvwjt][img:3a3dvwjt]https://s8.postimg.cc/nk0y8qsbp/flat-border.png[/img:3a3dvwjt][/url:3a3dvwjt]", "time": "12:57", "topic": "Change XBROWSE Style?", "username": "dutch" } ]
Change XBROWSE Style?
[ { "date": "2018-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi, Dutch.\nDid you resolve?", "time": "19:01", "topic": "Change XBROWSE Style?", "username": "FranciscoA" } ]
Change XBROWSE Style?
[ { "date": "2018-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Dutch\n\nSet\noBrw:lDrawBorder := .t.", "time": "23:01", "topic": "Change XBROWSE Style?", "username": "nageswaragunupudi" } ]
Change XBROWSE Style?
[ { "date": "2018-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr.Rao,\n\nI've tried this but it doesn't effect.\n[code=fw:3oc50xrj]<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> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlgTEST<br /><span style=\"color: #00C800;\">LOCAL</span> oFnt<br /><span style=\"color: #00C800;\">LOCAL</span> oBtIDOK<br /><span style=\"color: #00C800;\">LOCAL</span> oXBRW101<br /> <br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFnt  <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"MS Sans Serif\"</span>        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-8</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgTEST ;<br />        <span style=\"color: #0000ff;\">FROM</span>  <span style=\"color: #000000;\">15</span>,<span style=\"color: #000000;\">6</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">45</span>,<span style=\"color: #000000;\">84</span> ;<br />        <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"TXBrowse demo\"</span>  ;<br />        <span style=\"color: #0000ff;\">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE <br /><br />@  <span style=\"color: #000000;\">211</span>, <span style=\"color: #000000;\">252</span> <span style=\"color: #0000ff;\">BUTTON</span> oBtIDOK ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>,  <span style=\"color: #000000;\">14</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlgTEST ;<br />        <span style=\"color: #0000ff;\">FONT</span> oFnt ;<br />        <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@  <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #0000ff;\">XBROWSE</span> oXBRW101 ;<br />        <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">297</span>,  <span style=\"color: #000000;\">202</span> ;<br />        <span style=\"color: #0000ff;\">OF</span> oDlgTEST ;<br />        <span style=\"color: #0000ff;\">FONT</span> oFnt ;<br />        <span style=\"color: #0000ff;\">PIXEL</span><br /><br />   oXBRW101:<span style=\"color: #000000;\">lDrawBorder</span> := .T.<br />        oXBRW101:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlgTEST<br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">0</span><br /> </div>[/code:3oc50xrj]\n[url=https&#58;//postimages&#46;org/:3oc50xrj][img:3oc50xrj]https&#58;//s33&#46;postimg&#46;cc/4nf6jcw4f/flat-border&#46;png[/img:3oc50xrj][/url:3oc50xrj][url=https&#58;//postimages&#46;org/:3oc50xrj]image hosting over 10mb[/url:3oc50xrj]\n[quote=\"nageswaragunupudi\":3oc50xrj]Mr. Dutch\n\nSet\noBrw:lDrawBorder := .t.[/quote:3oc50xrj]\n\nThanks,", "time": "03:43", "topic": "Change XBROWSE Style?", "username": "dutch" } ]
Change XBROWSE Style?
[ { "date": "2018-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Add the clause NOBORDER to XBROWSE command, whenever you create from sourcecode. Just make it a habit to use always. \n(Not for resources)\n\nOn bottom and right, you see the border drawn by lDrawBorder when HScroll and VScroll are absent.\n\n[url=https&#58;//imageshack&#46;com/i/pnKOSRtPp:10vji6ar][img:10vji6ar]https&#58;//imagizer&#46;imageshack&#46;com/v2/xq90/923/KOSRtP&#46;png[/img:10vji6ar][/url:10vji6ar]", "time": "03:52", "topic": "Change XBROWSE Style?", "username": "nageswaragunupudi" } ]
Change XBROWSE Style?
[ { "date": "2018-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Is it included in FWH 18.05?", "time": "06:01", "topic": "Change XBROWSE Style?", "username": "dutch" } ]
Change XBROWSE Style?
[ { "date": "2018-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Mr. Rao,\n\nHow can I change border color to light blue?\n\nalso if there is a scroolbar in the xbrowse, border is not impressed.\n\nThanks,", "time": "08:22", "topic": "Change XBROWSE Style?", "username": "Horizon" } ]
Change XBROWSE Style?
[ { "date": "2018-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"dutch\":290lr9de]Is it included in FWH 18.05?[/quote:290lr9de]\nIt is already there in many previous versions too.", "time": "08:36", "topic": "Change XBROWSE Style?", "username": "nageswaragunupudi" } ]
Change XBROWSE Style?
[ { "date": "2018-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:1acrizml]How can I change border color to light blue?\n[/quote:1acrizml]\nWe will provide color choice in future versions.\n[code=fw:1acrizml]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />also <span style=\"color: #00C800;\">if</span> there is a scroolbar in the <span style=\"color: #0000ff;\">xbrowse</span>, border is not impressed.<br />&nbsp;</div>[/code:1acrizml]\nYes, you are right.\nWe are unable to draw the border outside the scrollbar.\nDrawing the border inside the scrollbar is not looking good.\nIf you like you may play with this and give your feedback and advice.\nLook for the code\n::Box( 1, 1 ..... )\ntowards the end of the Paint() method.\nKeep changing the values and let us know if you feel something looks better.", "time": "08:40", "topic": "Change XBROWSE Style?", "username": "nageswaragunupudi" } ]
Change XBROWSE Style?
[ { "date": "2018-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "In 18.05, we can specify oBrw:nClrBorder", "time": "16:35", "topic": "Change XBROWSE Style?", "username": "nageswaragunupudi" } ]
Change XBROWSE Style?
[ { "date": "2018-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"dutch\":3qdpv50l]Dear Mr.Rao,\n\nI need TXBRowse with flat border style as picture.\n[/quote:3qdpv50l]\n\nYou have tried?\n[code=fw:3qdpv50l]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; @ nRow, nCol <span style=\"color: #0000ff;\">XBROWSE</span> ....<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ... &nbsp; &nbsp; <span style=\"color: #0000ff;\">STYLE</span> FLAT NOBORDER<br /><br /><span style=\"color: #B900B9;\">// &nbsp; :lFlatStyle &nbsp; := .T.</span><br /><br />&nbsp;</div>[/code:3qdpv50l]\n\nand \n\n[code=fw:3qdpv50l]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//:nClrBorder &nbsp; &nbsp; &nbsp; &nbsp;:= Rgb( 73, 134, 231 ) &nbsp; &nbsp; &nbsp;// only in Fwh 18.05</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:<span style=\"color: #000000;\">lDrawBorder</span> &nbsp; &nbsp; &nbsp; := .T.<br />&nbsp;</div>[/code:3qdpv50l]", "time": "06:10", "topic": "Change XBROWSE Style?", "username": "cnavarro" } ]
Change XBROWSE Style?
[ { "date": "2018-07-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Mr.Cristobal and Mr.Rao,\n\nYes, it is working [2015,NOBORDER and lDrawBorder].\n\nThank you so much.", "time": "08:17", "topic": "Change XBROWSE Style?", "username": "dutch" } ]
Change XBROWSE Style?
[ { "date": "2018-10-17", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":bo540duy]In 18.05, we can specify oBrw:nClrBorder[/quote:bo540duy]\n\nHi Mr. Rao,\n\nHave you noticed that nClrBorder is not painted when xbrowse is empty?", "time": "13:57", "topic": "Change XBROWSE Style?", "username": "Horizon" } ]
Change XBROWSE Style?
[ { "date": "2018-10-17", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Horizon\":3l0t0ami][quote=\"nageswaragunupudi\":3l0t0ami]In 18.05, we can specify oBrw:nClrBorder[/quote:3l0t0ami]\n\nHi Mr. Rao,\n\nHave you noticed that nClrBorder is not painted when xbrowse is empty?[/quote:3l0t0ami]\n\nYes, thanks.\nFixed in FWH1808.", "time": "15:47", "topic": "Change XBROWSE Style?", "username": "nageswaragunupudi" } ]
Change XBROWSE Style?
[ { "date": "2006-10-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Is possible change a no modal dialog to modal after activate him?\n\nI refer to any like:\n\n(...)\nactivate dialog oDlg NoWait centered\n\n// do anything\n\n// turn oDlg to modal here!\n\nRegards,\nMaurilio", "time": "15:13", "topic": "Change a no modal dialog to modal after activate", "username": "Maurilio Viana" } ]
Change a no modal dialog to modal after activate
[ { "date": "2006-10-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Maurilio,\n\nWhat you descibe doesn't sound very useful.\n\nExample. You put up a non-modal dialog over a parent window and the user clicks on the toolbar on the parent window, but instead of the button working, the dialog becomes modal. I can imagine a very confused user.\n\nPerhaps I am not understanding what you are trying to do?\n\nJames", "time": "15:42", "topic": "Change a no modal dialog to modal after activate", "username": "James Bott" } ]
Change a no modal dialog to modal after activate
[ { "date": "2006-10-04", "forum": "FiveWin for Harbour/xHarbour", "text": "James,\n\nWhat I want do is create a black or gray dialog and turn it transparent (it will causa a shadow over my screen) and after I activate my dialog.\nThe effect I want is like when whe click Start / Shutdown where the backgroud turn shadowed.\n\nNow I do this sequence:\n1. create a non modal dialog (shadow) \n2. create a modal dialog\n3. when close the modal close shadow too\n\nMy problem:\nThe shadow effect display ok, but if I click in non modal dialog (shadow) it appear over the modal dialog and I can't get back...\n\nRegards\nMaurilio", "time": "15:48", "topic": "Change a no modal dialog to modal after activate", "username": "Maurilio Viana" } ]
Change a no modal dialog to modal after activate
[ { "date": "2006-10-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Maurilio,\n\nHmm. The modal/non-modal state is set via the STYLE clause and I don't think an object can have it's style changed after it is created (but I may be wrong).\n\nCan you just make both dialogs modal? You can call one modal dialog from another, but the user wouldn't be able to click on the first dialog (the shadow). I mean, they could click on it, but the click would be ignored. You can close the first dialog via code after the second one is opened.\n\nI don't know it that helps.\n\nJames", "time": "16:10", "topic": "Change a no modal dialog to modal after activate", "username": "James Bott" } ]
Change a no modal dialog to modal after activate
[ { "date": "2006-10-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Maurilio,\n\nIf you disable (oWnd:Disable()) all windows and dialogs under the dialog, it will act as a modal dialog.", "time": "16:32", "topic": "Change a no modal dialog to modal after activate", "username": "Antonio Linares" } ]
Change a no modal dialog to modal after activate
[ { "date": "2006-10-04", "forum": "FiveWin for Harbour/xHarbour", "text": "James and Antonio,\n\nI'll do some tests.\n\nThanks a lot!\nMaurilio", "time": "17:05", "topic": "Change a no modal dialog to modal after activate", "username": "Maurilio Viana" } ]
Change a no modal dialog to modal after activate
[ { "date": "2012-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nIs it possible to fill the author, Title and other property-fields of an excel-file via FiveWin?\n\nThanks\n\nMarc", "time": "11:00", "topic": "Change author in excel", "username": "Marc Vanzegbroeck" } ]
Change author in excel
[ { "date": "2012-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "When I do not know how to do something in Excel I record a macro, make the changes, then go back and edit the macro to see how Excel did it.", "time": "13:32", "topic": "Change author in excel", "username": "Gale FORd" } ]
Change author in excel
[ { "date": "2012-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "The problem is that a macro doesn't record changing the title or author.\n\nMarc", "time": "14:50", "topic": "Change author in excel", "username": "Marc Vanzegbroeck" } ]
Change author in excel
[ { "date": "2012-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "That does make it harder <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \nI will check.", "time": "16:41", "topic": "Change author in excel", "username": "Gale FORd" } ]
Change author in excel
[ { "date": "2012-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nI found on the MicroSoft-site an example how to change the 'Subject'-field it in VBA\n\n[code=fw:1slgpefa]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Dim properties As Microsoft.Office.Core.DocumentProperties<br /><br />properties = DirectCast<span style=\"color: #000000;\">&#40;</span>Globals.ThisDocument.BuiltInDocumentProperties, _<br />    Microsoft.Office.Core.DocumentProperties<span style=\"color: #000000;\">&#41;</span><br /><br />properties.Item<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Subject\"</span><span style=\"color: #000000;\">&#41;</span>.Value = <span style=\"color: #ff0000;\">\"Whitepaper\"</span><br /><br /> </div>[/code:1slgpefa]\n\nDo you know how to do this in FWH?\n\nThanks,\nMarc", "time": "19:55", "topic": "Change author in excel", "username": "Marc Vanzegbroeck" } ]
Change author in excel
[ { "date": "2012-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Please try the following code. I have not tested this. \n\n[code=fw:339jiplg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oWorkBook:<span style=\"color: #000000;\">BuiltinDocumentProperties</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Author\"</span><span style=\"color: #000000;\">&#41;</span> := cAuthor <br />oWorkBook:<span style=\"color: #000000;\">BuiltinDocumentProperties</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Title\"</span><span style=\"color: #000000;\">&#41;</span> := cTitle <br />oWorkBook:<span style=\"color: #000000;\">BuiltinDocumentProperties</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Comments\"</span><span style=\"color: #000000;\">&#41;</span> := cComments</div>[/code:339jiplg]\n\nRegards\n[b:339jiplg]Anser[/b:339jiplg]", "time": "01:56", "topic": "Change author in excel", "username": "anserkk" } ]
Change author in excel
[ { "date": "2012-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Anser,\n\nUnfortunately it doesn't work. I have this error\n\n[quote:3q36b6hf] Error description: Error Excel.Application:ACTIVESHEET/16389 E_FAIL: _BUILTINDOCUMENTPROPERTIES\n Args:\n [ 1] = C Test\n\nStack Calls\n===========\n Called from: win32ole.prg => TOLEAUTO:_BUILTINDOCUMENTPROPERTIES(0)\n[/quote:3q36b6hf]\n\nRegards,\nMarc", "time": "06:54", "topic": "Change author in excel", "username": "Marc Vanzegbroeck" } ]
Change author in excel
[ { "date": "2012-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Sorry, I missed Value in the statement.\n\nThis is working fine for me.\n[code=fw:bokh8yf1]<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 />   <span style=\"color: #00C800;\">Local</span> oExcel,oWorkBook<br />   <br />   oExcel:=CreateObject<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"excel.application\"</span> <span style=\"color: #000000;\">&#41;</span><br />   oWorkBook:=oExcel:<span style=\"color: #000000;\">Workbooks</span>:<span style=\"color: #000000;\">Add</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <br />   oWorkBook:<span style=\"color: #000000;\">BuiltinDocumentProperties</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Author\"</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"Anser K.K.\"</span><br />   oWorkBook:<span style=\"color: #000000;\">BuiltinDocumentProperties</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Title\"</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"Test Title\"</span><br />   oWorkBook:<span style=\"color: #000000;\">BuiltinDocumentProperties</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Comments\"</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">Value</span> := <span style=\"color: #ff0000;\">\"Test Comments\"</span><br />   <br />   cFile := <span style=\"color: #ff0000;\">'D:<span style=\"color: #000000;\">\\t</span>est.xlsx'</span><br />  <br />   oWorkBook:<span style=\"color: #000000;\">saveAS</span><span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span><br />   oExcel:<span style=\"color: #000000;\">Quit</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>  <br />   <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"Done\"</span><span style=\"color: #000000;\">&#41;</span>    <br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span></div>[/code:bokh8yf1]\nRegards\n[b:bokh8yf1]Anser[/b:bokh8yf1]", "time": "08:55", "topic": "Change author in excel", "username": "anserkk" } ]
Change author in excel
[ { "date": "2012-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks Anser,\n\nIt's working fine now!!\n\nRegards,\nMarc", "time": "09:36", "topic": "Change author in excel", "username": "Marc Vanzegbroeck" } ]
Change author in excel
[ { "date": "2007-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi all,\n\nis it possible to change the standard behavior of the minimize and close button of a window ?\n\nA click on minimize should hide the windows", "time": "11:17", "topic": "Change behavior of minimize button", "username": "StefanHaupt" } ]
Change behavior of minimize button
[ { "date": "2007-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[code:2v4zu7f8]\n#define SIZE_MINIMIZED 1\n\nACTIVATE WINDOW oWnd ;\n ON RESIZE If&#40; nSizeType == SIZE_MINIMIZED, oWnd&#58;Hide&#40;&#41;, oWnd&#58;Show&#40;&#41; &#41;\n[/code:2v4zu7f8]", "time": "13:35", "topic": "Change behavior of minimize button", "username": "Antonio Linares" } ]
Change behavior of minimize button
[ { "date": "2007-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nmany thanks, it´s working.\n\nBut when i try to show the window again (oWnd:Show() ), it´s only shown in the taskbar. Do i miss something to restore it completely ?", "time": "19:09", "topic": "Change behavior of minimize button", "username": "StefanHaupt" } ]
Change behavior of minimize button
[ { "date": "2007-07-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Stefan,\n\nTry:\n\noWnd:Restore(), oWnd:Show()", "time": "21:25", "topic": "Change behavior of minimize button", "username": "Antonio Linares" } ]
Change behavior of minimize button
[ { "date": "2007-07-02", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nworks perfectly <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->\n\n\nmany thanks", "time": "08:37", "topic": "Change behavior of minimize button", "username": "StefanHaupt" } ]
Change behavior of minimize button
[ { "date": "2017-02-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear All,\n\nI would like to change active folder in different color than the other for showing the which active folder has focused as sample.\n- upper picture is normal folder\n- lower picture is that I need. I try with ::nClrPane or ::SetColors() but it doesn't successful.\nHow to do that? Or Which way is the better solution.\n[url=https&#58;//postimg&#46;org/image/6noshvwtb/:2osxdnmg][img:2osxdnmg]https&#58;//s27&#46;postimg&#46;org/58n7t5vqb/Folder1&#46;png[/img:2osxdnmg][/url:2osxdnmg][url=https&#58;//postimage&#46;org/:2osxdnmg]photo hosting sites[/url:2osxdnmg]\nThanks in advance.\nDutch", "time": "06:06", "topic": "Change color active folder.", "username": "dutch" } ]
Change color active folder.
[ { "date": "2017-02-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Try with this DATAs\n\n[code=fw:1jcfp6zg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aGradSel</span> &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, METRO_GRIS2, METRO_GRIS2 <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aGradUnSel</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, CLR_WHITE, CLR_WHITE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aGradOver</span> &nbsp; &nbsp; &nbsp;:= <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, METRO_STEEL, METRO_STEEL <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #B900B9;\">//</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aGradOverUnSel</span> := :<span style=\"color: #000000;\">aGradOver</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">aGradDis</span> &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, CLR_WHITE, METRO_STEEL <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrText</span> &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> | o, n | <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">aEnable</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> .and. o:<span style=\"color: #000000;\">aVisible</span><span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> n = o:<span style=\"color: #000000;\">nOption</span>, CLR_WHITE, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> n = o:<span style=\"color: #000000;\">nOver</span>, CLR_BLUE, METRO_STEEL <span style=\"color: #000000;\">&#41;</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; GetSysColor<span style=\"color: #000000;\">&#40;</span> CLR_GRAY <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nSeparator</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; &nbsp; ATail<span style=\"color: #000000;\">&#40;</span> :<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> CLR_BLUE, CLR_WHITE <span style=\"color: #000000;\">&#41;</span><br /><br /><br />&nbsp;</div>[/code:1jcfp6zg]", "time": "08:37", "topic": "Change color active folder.", "username": "cnavarro" } ]
Change color active folder.
[ { "date": "2017-02-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Cristobal \n\nIt has an error.\n[code=fw:3r6hncu9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Description : <span style=\"color: #000000;\">Warning</span> BASE/<span style=\"color: #000000;\">1005</span>  <span style=\"color: #0000ff;\">Message</span> not found: <span style=\"color: #000000;\">TFOLDER</span>:_AGRADSEL<br /> </div>[/code:3r6hncu9]", "time": "09:09", "topic": "Change color active folder.", "username": "dutch" } ]
Change color active folder.
[ { "date": "2017-02-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Sorry, I only use FolderEx", "time": "09:16", "topic": "Change color active folder.", "username": "cnavarro" } ]
Change color active folder.
[ { "date": "2018-04-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\nI would like to change some of the colors programmatically. Can you please help me on that.\n\nThanks in advance\n\nOtto\n\n\n[img:2boyoes9]http&#58;//www&#46;atzwanger-software&#46;com/fw/oculto&#46;bmp[/img:2boyoes9]", "time": "08:15", "topic": "Change color in a bmp", "username": "Otto" } ]
Change color in a bmp
[ { "date": "2018-04-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\nIf the bitmap is already shown as a control:\n[code=fw:25fec00o]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">local</span> hDC := oBmp:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">for</span> nRow = <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> oBmp:<span style=\"color: #000000;\">nHeigth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> nCol = <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">to</span> oBmp:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> - <span style=\"color: #000000;\">1</span> <br />&nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> GetPixel<span style=\"color: #000000;\">&#40;</span> hDC, nRow, nCol <span style=\"color: #000000;\">&#41;</span> == nClrToReplace<br />&nbsp; &nbsp; &nbsp; &nbsp; SetPixel<span style=\"color: #000000;\">&#40;</span> hDC, nRow, nCol, nClrNew <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 /><span style=\"color: #00C800;\">next</span><br /><br />oBmp:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:25fec00o]", "time": "08:34", "topic": "Change color in a bmp", "username": "Antonio Linares" } ]
Change color in a bmp
[ { "date": "2018-04-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Antonio,\nthank you for your help.\nBut it seems that this function is working to slow for my purpose.\nIs it possible to print a transparent bmp over the original.\nThank you in advance\nOtto\n[img:1ajk5e7a]http&#58;//www&#46;atzwanger-software&#46;com/fw/camping2&#46;jpg[/img:1ajk5e7a]", "time": "09:38", "topic": "Change color in a bmp", "username": "Otto" } ]
Change color in a bmp
[ { "date": "2018-04-18", "forum": "FiveWin for Harbour/xHarbour", "text": "I think you can use \n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35518&start=0\">viewtopic.php?f=3&t=35518&start=0</a><!-- l -->", "time": "11:39", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2018-04-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Use Windows GDI functions FloodFill() or ExtFloodFill().", "time": "12:45", "topic": "Change color in a bmp", "username": "nageswaragunupudi" } ]
Change color in a bmp
[ { "date": "2021-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\n\n[quote:1fkehl5h]Use Windows GDI functions FloodFill() or ExtFloodFill().[/quote:1fkehl5h]\n\na idea maybe using a colorpicker\n\nI still have to work on the < floodfill function > \nI could not' find any working tests inside the forum or sample folder <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \nI don't know for the moment if we can fill a single cell \ninside the image on mouseclick\n\n1. select a color\n2. use floodfill inside the working image 1\n3. after selections save the result to image 1 and 2\n4. delete old selections with floodfill using color white \n\nThere are 2 colorpickers\none with all colors and one with a colorselection\n\n[img:1fkehl5h]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/Floodfill1&#46;jpg[/img:1fkehl5h]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "12:59", "topic": "Change color in a bmp", "username": "ukoenig" } ]
Change color in a bmp
[ { "date": "2021-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "if I have this figure and I wanted to click on the pencils and recognize the color and then fill the white part of the drawing with the selected color, what can I do?\n\n[img:3t3dmhfp]https&#58;//i&#46;postimg&#46;cc/kXFD9Lts/ff&#46;jpg[/img:3t3dmhfp]", "time": "13:23", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "1, Get hDC.\n2. Read pixels around the coordinates of the mouse cursor.\n3. Determine that it is a white color and change it.\n\n Only it's a long time.\n\n You can specify the polygon with the corresponding color yourself", "time": "15:56", "topic": "Change color in a bmp", "username": "Natter" } ]
Change color in a bmp
[ { "date": "2021-03-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Natter\":bnsmrymu]1, Get hDC.\n2. Read pixels around the coordinates of the mouse cursor.\n3. Determine that it is a white color and change it.\n\n Only it's a long time.\n\n You can specify the polygon with the corresponding color yourself[/quote:bnsmrymu]\nIn words you are all good, I know what I should do, if I asked how to do it it means that perhaps I have not succeeded,\n in fact even if I know how to fill an area in a drawing I do not know the function or the command to take the pixel color only by clicking with the mouse", "time": "18:56", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-15", "forum": "FiveWin for Harbour/xHarbour", "text": "I made a sample test \n\n[code=fw:ma1sqwzx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">Function</span> test<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cFile:=<span style=\"color: #ff0000;\">\"a.jpg\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cColori:=<span style=\"color: #ff0000;\">\"colori.bmp\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg,oBmp,oImg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nColor:= <span style=\"color: #000000;\">1</span>,oColor<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hdc<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">CURSOR</span> oHand HAND<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">dialog</span> oDlg <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">600</span>,<span style=\"color: #000000;\">600</span><br /><br />&nbsp;@ <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">1</span> XIMAGE oImg filename cFile &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />&nbsp;@ <span style=\"color: #000000;\">220</span>,<span style=\"color: #000000;\">1</span> XIMAGE oBmp filename cColori &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br />&nbsp;@ <span style=\"color: #000000;\">4</span>, <span style=\"color: #000000;\">220</span> <span style=\"color: #0000ff;\">get</span> oColor <span style=\"color: #0000ff;\">var</span> ncolor <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>,<span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">pixel</span> &nbsp;<span style=\"color: #0000ff;\">COLOR</span> ncolor,ncolor <span style=\"color: #0000ff;\">UPDATE</span><br /><br /><br />&nbsp;oBmp:<span style=\"color: #000000;\">oCursor</span> = oHand<br />&nbsp;oBmp:<span style=\"color: #000000;\">bLClicked</span> = <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | <span style=\"color: #000000;\">&#40;</span>GetColor<span style=\"color: #000000;\">&#40;</span> nRow, nCol, oBmp,@nColor <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #0000ff;\">Msginfo</span><span style=\"color: #000000;\">&#40;</span>nColor<span style=\"color: #000000;\">&#41;</span>, oColor:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">activate</span> <span style=\"color: #0000ff;\">dialog</span> oDlg<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------//</span><br /><span style=\"color: #00C800;\">function</span> GetColor<span style=\"color: #000000;\">&#40;</span> nRow, nCol, oBmp,nColor <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hDC &nbsp;:= oBmp:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;nColor := GetPixel<span style=\"color: #000000;\">&#40;</span> hDC, nCol, nRow <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;DeleteDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oBmp:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><span style=\"color: #B900B9;\">//----------------------------------------------------//</span></div>[/code:ma1sqwzx]\n\nfor the first time it takes the color but does not refresh the get, the second time and after the color is always -1 why?\n\n\n[b:ma1sqwzx]a.jpg[/b:ma1sqwzx]\n[img:ma1sqwzx]https&#58;//i&#46;postimg&#46;cc/fLH9g4hs/a&#46;jpg[/img:ma1sqwzx]\n\n[b:ma1sqwzx]color.bmp[/b:ma1sqwzx]\n[img:ma1sqwzx]https&#58;//i&#46;postimg&#46;cc/sgFZL9bM/colori&#46;png[/img:ma1sqwzx]", "time": "13:47", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio \n\nmy changes and tests\nI tested < Floodfill and ExtFloodFill > but got NO result <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\n[code=fw:3qkq2v4x]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> cFile:=<span style=\"color: #ff0000;\">\"a.bmp\"</span><br /><span style=\"color: #00C800;\">local</span> cColori:=<span style=\"color: #ff0000;\">\"colori.png\"</span><br /><span style=\"color: #00C800;\">local</span> oDlg,oBmp,oImg<br /><span style=\"color: #00C800;\">local</span> nColor := <span style=\"color: #000000;\">0</span>, oColor<br /><span style=\"color: #00C800;\">local</span> hdc, nPickRow := <span style=\"color: #000000;\">0</span>, nPickCol := <span style=\"color: #000000;\">0</span><br /><span style=\"color: #00C800;\">local</span> oSay1, oSay2, oSay3, oFont <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">CURSOR</span> oHand HAND<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Verdanal\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span> BOLD<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">dialog</span> oDlg <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">520</span>, <span style=\"color: #000000;\">520</span><br /><br />@ <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">1</span> XIMAGE oImg filename cFile  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />oImg:<span style=\"color: #000000;\">oCursor</span> := oHand<br />oImg:<span style=\"color: #000000;\">bPainted</span> := < |hDC| <br />        FLOODFILL<span style=\"color: #000000;\">&#40;</span> nPickRow, nPickCol, nColor <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #B900B9;\">//  FILLCOLOR( hDC, oImg, nPickRow, nPickCol, nColor )</span><br />    oSay1:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oSay2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    oSay3:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />><br />oImg:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | nPickRow := nRow, nPickCol := nCol, oImg:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />@ <span style=\"color: #000000;\">220</span>,<span style=\"color: #000000;\">1</span> XIMAGE oBmp filename cColori  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />@ <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">183</span> <span style=\"color: #0000ff;\">get</span> oColor <span style=\"color: #0000ff;\">var</span> ncolor <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> nColor, nColor <span style=\"color: #0000ff;\">UPDATE</span><br /><br />@ <span style=\"color: #000000;\">190</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay0 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Top, Left, color\"</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />@ <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay1 <span style=\"color: #0000ff;\">var</span> nPickRow <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />@ <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay2 <span style=\"color: #0000ff;\">var</span> nPickCol <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />@ <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay3 <span style=\"color: #0000ff;\">var</span> nColor <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br /><br />oBmp:<span style=\"color: #000000;\">oCursor</span> := oHand<br />oBmp:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | <span style=\"color: #000000;\">&#40;</span> ncolor := GETCOLOR<span style=\"color: #000000;\">&#40;</span> oBmp, nRow, nCol <span style=\"color: #000000;\">&#41;</span>, ;<br />                                                            oColor:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span>nColor, nColor<span style=\"color: #000000;\">&#41;</span>, oColor:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />oFont:<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: #B900B9;\">//-----------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GETCOLOR<span style=\"color: #000000;\">&#40;</span> oBmp, nRow, nCol <span style=\"color: #000000;\">&#41;</span><br /><br />hDC := oBmp:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />nColor := GetPixel<span style=\"color: #000000;\">&#40;</span> hDC, nCol, nRow <span style=\"color: #000000;\">&#41;</span><br />oBmp:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> nColor<br /><br /><span style=\"color: #B900B9;\">//-----------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> FILLCOLOR<span style=\"color: #000000;\">&#40;</span> hDC, oImg, nRow, nCol, nColor <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//MsgAlert( nRow, \"Row\" )</span><br /><span style=\"color: #B900B9;\">//MsgAlert( nCol, \"Column\" )</span><br /><span style=\"color: #B900B9;\">//MsgAlert( nColor, \"Color\" )</span><br /><br /><span style=\"color: #B900B9;\">//ExtFloodFill( hDC, nRow, nCol, ncolor, 1 )</span><br />FloodFill<span style=\"color: #000000;\">&#40;</span> nRow, nCol, nColor <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /> </div>[/code:3qkq2v4x]\n\nOn imageclick I show the cursor-position and color-value\n\n[img:3qkq2v4x]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/Floodtest&#46;jpg[/img:3qkq2v4x]\n\nthe cleaned image with deleted dirty areas <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \n\n[img:3qkq2v4x]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/A&#46;bmp[/img:3qkq2v4x]\n\nFloodfill is done with PIXELFORMER <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \nReduce the image to 4 colors to clean the image from dirty areas\n\nThe original image shows the result ( floodfill ) without cleaning\n\n[img:3qkq2v4x]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/B&#46;bmp[/img:3qkq2v4x]\n\nnext save the image with full colors to fill the wanted sections close to clear borders\nSee the result after cleaning <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\n[img:3qkq2v4x]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/C&#46;bmp[/img:3qkq2v4x]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "11:24", "topic": "Change color in a bmp", "username": "ukoenig" } ]
Change color in a bmp
[ { "date": "2021-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Sorry \nI selet the colors \nthen click on Image not fill the color into area why ?", "time": "13:50", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nshowing a black and white image I expected that You want to repaint it\nbecause from Rao\n[quote:3ij7fsub]Use Windows GDI functions FloodFill() or ExtFloodFill().[/quote:3ij7fsub]\nI used the extended test for maybe getting a working [color=#0000FF:3ij7fsub]FLOODFILL[/color:3ij7fsub]-solution\n\na answer of Your question is included\n[quote:3ij7fsub]for the first time it takes the color but does not refresh the get, \nthe second time and after the color is always -1 why?[/quote:3ij7fsub]\n\n[img:3ij7fsub]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/Floodtest1&#46;bmp[/img:3ij7fsub]\n\nregards\nUwe", "time": "14:20", "topic": "Change color in a bmp", "username": "ukoenig" } ]
Change color in a bmp
[ { "date": "2021-03-17", "forum": "FiveWin for Harbour/xHarbour", "text": "image A is black and white\nthe handicapped child must take a color on image B and click on part of image A and color the part delimited by the lines. \nIn your example I am able to take the color from image B but then when I click on image A it does not color the selected area\n\nin an old program done at least 15 years ago I was able to color a specific area (region) in an image of a map of Italy\n when I was scrolling through a record in an xbrowse as you can see on this picture \n\n[img:2rr01bmp]https&#58;//i&#46;postimg&#46;cc/k5vLVBr1/hte&#46;png[/img:2rr01bmp]\non this application I used FloodFill function\n[code=fw:2rr01bmp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br />&nbsp;<span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">10</span> BITMAP oBmp <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"CARTINA\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">127</span>, <span style=\"color: #000000;\">179</span> NOBORDER TRANSPARENT<br />oBmp:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span> |hDC| <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> Empty<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">oTreeItem</span>:<span style=\"color: #000000;\">Cargo</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #00C800;\">nil</span>, ;<br />&nbsp; &nbsp;FloodFill<span style=\"color: #000000;\">&#40;</span> hDC, oBrw:<span style=\"color: #000000;\">oTreeItem</span>:<span style=\"color: #000000;\">Cargo</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">&#93;</span>, oBrw:<span style=\"color: #000000;\">oTreeItem</span>:<span style=\"color: #000000;\">Cargo</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">&#93;</span>, <span style=\"color: #00C800;\">nil</span>, CLR_RED <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span></div>[/code:2rr01bmp]", "time": "12:43", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":1sn24azb]Silvio,\nregards\nUwe[/quote:1sn24azb]\n\nUwe, Now the test colorize all the image and not the area\nplease try the test \n\n\n\n[code=fw:1sn24azb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><br /><br />&nbsp; &nbsp; <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> cFile:=<span style=\"color: #ff0000;\">\"a.bmp\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> cColori:=<span style=\"color: #ff0000;\">\"colori.png\"</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> oDlg,oBmp,oImg<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> nColor := <span style=\"color: #000000;\">0</span>, oColor<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> hdc, nPickRow := <span style=\"color: #000000;\">0</span>, nPickCol := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> oSay1, oSay2, oSay3, oFont<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">local</span> nColorSet:= <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">CURSOR</span> oHand HAND<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;\">\"Verdanal\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span> BOLD<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">dialog</span> oDlg <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">520</span>, <span style=\"color: #000000;\">520</span><br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">1</span> XIMAGE oImg filename cFile &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp; &nbsp; oImg:<span style=\"color: #000000;\">oCursor</span> := oHand<br />&nbsp; &nbsp; oImg:<span style=\"color: #000000;\">bPainted</span> := < |hDC|<br />&nbsp; &nbsp; &nbsp; &nbsp; oSay1:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oSay2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oSay3:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp; &nbsp; ><br /><br /><br /><br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">220</span>,<span style=\"color: #000000;\">1</span> XIMAGE oBmp filename cColori &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">180</span>,<span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">183</span> <span style=\"color: #0000ff;\">get</span> oColor <span style=\"color: #0000ff;\">var</span> ncolor <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span> &nbsp;<span style=\"color: #0000ff;\">COLOR</span> nColor, nColor <span style=\"color: #0000ff;\">UPDATE</span><br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">190</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay0 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Top, Left, color\"</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">pixel</span> &nbsp;<span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay1 <span style=\"color: #0000ff;\">var</span> nPickRow <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span> &nbsp;<span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay2 <span style=\"color: #0000ff;\">var</span> nPickCol <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span> &nbsp;<span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay3 <span style=\"color: #0000ff;\">var</span> nColor <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span> &nbsp;<span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br /><br />&nbsp; &nbsp; oBmp:<span style=\"color: #000000;\">oCursor</span> := oHand<br />&nbsp; &nbsp; oBmp:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | <span style=\"color: #000000;\">&#40;</span> ncolor := GETCOLOR<span style=\"color: #000000;\">&#40;</span> oBmp, nRow, nCol <span style=\"color: #000000;\">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oColor:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span>nColor, nColor<span style=\"color: #000000;\">&#41;</span>, oColor:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,nColorSet:=ncolor <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; oImg:<span style=\"color: #000000;\">blClicked</span> := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | nPickRow := nRow, nPickCol := nCol,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FILLCOLOR<span style=\"color: #000000;\">&#40;</span>oImg, nPickRow, nPickCol, nColorSet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />&nbsp; &nbsp; oFont:<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: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//-----------------------</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">FUNCTION</span> GETCOLOR<span style=\"color: #000000;\">&#40;</span> oBmp, nRow, nCol <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; hDC := oBmp:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; nColor := GetPixel<span style=\"color: #000000;\">&#40;</span> hDC, nCol, nRow <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oBmp:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> nColor<br /><br />&nbsp; &nbsp; <span style=\"color: #B900B9;\">//-----------------------</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">FUNCTION</span> FILLCOLOR<span style=\"color: #000000;\">&#40;</span> oImg, nRow, nCol, nColor <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hDC:=oImg:<span style=\"color: #000000;\">getDc</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FloodFill<span style=\"color: #000000;\">&#40;</span> hDC, nRow, nCol, <span style=\"color: #00C800;\">nil</span>,nColor <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oImg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">//----------------------</span><br /><br />&nbsp;</div>[/code:1sn24azb]", "time": "09:40", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nit seems to work now with BMP but I still noticed a problem using JPG <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \nJust change these lines\nxImage moving and zooming will delete selected colors <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \n\n@ 4,1 XIMAGE oImg filename cFile SIZE 200,200 OF oDlg\n[size=150:3c9p7tc9]oImg:nUserControl := 0[/size:3c9p7tc9]\noImg:oCursor := oHand\n[size=150:3c9p7tc9]oImg:blClicked := { | nCol, nRow | nPickRow := nRow, nPickCol := nCol,;\n[/size:3c9p7tc9]FILLCOLOR(oImg, nPickRow, nPickCol, nColorSet ) }\n\n// -----------\n\nFUNCTION FILLCOLOR( oImg, nRow, nCol, nColor )\nLOCAL hDC := oImg:getDc()\n\nFloodFill( hDC, nRow, nCol, nil, nColor )\n[color=#FF0000:3c9p7tc9]oImg:SaveToBmp( \"A.bmp\" )[/color:3c9p7tc9] // save the last result <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \noImg:ReleaseDC()\n\nRETURN NIL\n\n[size=150:3c9p7tc9]The original test-image[/size:3c9p7tc9]\n\n[img:3c9p7tc9]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/A&#46;bmp[/img:3c9p7tc9]\n\n[size=150:3c9p7tc9]The test[/size:3c9p7tc9]\n\n[img:3c9p7tc9]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/A&#46;jpg[/img:3c9p7tc9]\n\n[size=150:3c9p7tc9]sample from Otto[/size:3c9p7tc9]\n\n[img:3c9p7tc9]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/Otto1&#46;jpg[/img:3c9p7tc9]\n\nregards\nUwe", "time": "13:00", "topic": "Change color in a bmp", "username": "ukoenig" } ]
Change color in a bmp
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe, \n\nI made a test (using ExtFloodFill)\n\n[img:10fg78x4]https&#58;//i&#46;postimg&#46;cc/7ZMtT4rW/risultato&#46;jpg[/img:10fg78x4]\n\nI do not believe that in fivewin you cannot draw and color a drawing in a uniform way", "time": "10:46", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio, I think I know where the problem is. Please post your code and the bitmap.\nBest regards,\nOtto", "time": "10:53", "topic": "Change color in a bmp", "username": "Otto" } ]
Change color in a bmp
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":3qua16rx]Silvio, I think I know where the problem is. Please post your code and the bitmap.\nBest regards,\nOtto[/quote:3qua16rx]\n\nOtto,\nthis is the test \n[code=fw:3qua16rx]<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> cColori:=<span style=\"color: #ff0000;\">\"colori.png\"</span><br />    <span style=\"color: #00C800;\">local</span> cModello:=<span style=\"color: #ff0000;\">\"Modello.jpg\"</span><br />    <span style=\"color: #00C800;\">local</span> cFile:=<span style=\"color: #ff0000;\">\"da_colorare.jpg\"</span><br />    <span style=\"color: #00C800;\">local</span> oDlg,oBmp,oImg,oImgx<br />    <span style=\"color: #00C800;\">local</span> nColor := <span style=\"color: #000000;\">0</span>, oColor<br />    <span style=\"color: #00C800;\">local</span> hdc, nPickRow := <span style=\"color: #000000;\">0</span>, nPickCol := <span style=\"color: #000000;\">0</span><br />    <span style=\"color: #00C800;\">local</span> oSay1, oSay2, oSay3, oFont<br />    <span style=\"color: #00C800;\">local</span> nColorSet:= <span style=\"color: #000000;\">1</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">CURSOR</span> oHand HAND<br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Verdanal\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span> BOLD<br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">dialog</span> oDlg <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">1100</span>, <span style=\"color: #000000;\">500</span><br /><br />    @ <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">1</span> BITMAP oImgx filename cModello  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">270</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> NOBORDER<br />    @ <span style=\"color: #000000;\">4</span>,<span style=\"color: #000000;\">280</span> BITMAP oImg filename cFile  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">260</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #0000ff;\">PIXEL</span> NOBORDER<br />    @ <span style=\"color: #000000;\">210</span>,<span style=\"color: #000000;\">260</span> BITMAP oBmp filename cColori  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> NOBORDER<br /><br /><br /><br />    oImg:<span style=\"color: #000000;\">oCursor</span> := oHand<br />    oImg:<span style=\"color: #000000;\">bPainted</span> := < |hDC|<br />        oSay1:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        oSay2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        oSay3:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br />    ><br /><br /><br />    @ <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">18</span> <span style=\"color: #0000ff;\">get</span> oColor <span style=\"color: #0000ff;\">var</span> ncolor <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> nColor, nColor <span style=\"color: #0000ff;\">UPDATE</span>  NOBORDER<br />    @ <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">say</span> oSay0 <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Top, Left, color\"</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">30</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />    @ <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay1 <span style=\"color: #0000ff;\">var</span> nPickRow <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />    @ <span style=\"color: #000000;\">210</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay2 <span style=\"color: #0000ff;\">var</span> nPickCol <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br />    @ <span style=\"color: #000000;\">220</span>, <span style=\"color: #000000;\">210</span> <span style=\"color: #0000ff;\">say</span> oSay3 <span style=\"color: #0000ff;\">var</span> nColor <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">pixel</span>  <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">UPDATE</span><br /><br />    oBmp:<span style=\"color: #000000;\">oCursor</span> := oHand<br />    oBmp:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | <span style=\"color: #000000;\">&#40;</span> ncolor := GETCOLOR<span style=\"color: #000000;\">&#40;</span> oBmp, nRow, nCol <span style=\"color: #000000;\">&#41;</span>, ;<br />                                                                oColor:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span>nColor, nColor<span style=\"color: #000000;\">&#41;</span>, oColor:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,nColorSet:=ncolor <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />    oImg:<span style=\"color: #000000;\">blClicked</span> := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | nPickRow := nRow, nPickCol := nCol,;<br />                        FILLCOLOR<span style=\"color: #000000;\">&#40;</span>oImg, nPickRow, nPickCol, nColorSet <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />    oFont:<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: #B900B9;\">//-----------------------</span><br /><br />    <span style=\"color: #00C800;\">FUNCTION</span> GETCOLOR<span style=\"color: #000000;\">&#40;</span> oBmp, nRow, nCol <span style=\"color: #000000;\">&#41;</span><br />    hDC := oBmp:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    nColor := GetPixel<span style=\"color: #000000;\">&#40;</span> hDC, nCol, nRow <span style=\"color: #000000;\">&#41;</span><br />    oBmp:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">RETURN</span> nColor<br /><br />   <span style=\"color: #B900B9;\">//-----------------------</span><br /><br />  <span style=\"color: #00C800;\">FUNCTION</span> FILLCOLOR<span style=\"color: #000000;\">&#40;</span> oImg, nRow, nCol, nColor <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">local</span> hDC:=oImg:<span style=\"color: #000000;\">getDc</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">LOCAL</span> hBrush := CreateSolidBrush<span style=\"color: #000000;\">&#40;</span> nColor <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">LOCAL</span> hOld := SelectObject<span style=\"color: #000000;\">&#40;</span>hDC, hBrush<span style=\"color: #000000;\">&#41;</span><br />    ExtFloodFill<span style=\"color: #000000;\">&#40;</span>hDC, nCol, nRow,CLR_WHITE,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><br />    SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hOld <span style=\"color: #000000;\">&#41;</span><br />    DeleteObject<span style=\"color: #000000;\">&#40;</span> hBrush <span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #B900B9;\">//FloodFill( hDC, nCol, nRow, nil, nColor )</span><br />    oImg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:3qua16rx]\nsee your maiil", "time": "11:06", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Silvio,\nGreat example.\nExtFloodFill only works on one color.\nYou have in your image at the border another color.\n\n[img:1w3n2eu6]https&#58;//mybergland&#46;com/fwforum/silviodug2&#46;jpg[/img:1w3n2eu6]\n\nStore your image as monochrome and all is working fine.\n\n[img:1w3n2eu6]https&#58;//mybergland&#46;com/fwforum/dugcolor&#46;jpg[/img:1w3n2eu6]\n\nThank you for sharing.\nNow I have an easter present for my grandchildren.\n\nBest regards,\nOtto", "time": "11:28", "topic": "Change color in a bmp", "username": "Otto" } ]
Change color in a bmp
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "good\n[img:vg2cfsit]https&#58;//i&#46;postimg&#46;cc/Fz34wK7x/good&#46;png[/img:vg2cfsit]\n\nbut there are many white points also", "time": "12:21", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio, zoom your image, and you will see you have also RGB(204,204,204) inside the white spaces.\nYou must clean up the image.\nBest regards,\nOtto", "time": "12:34", "topic": "Change color in a bmp", "username": "Otto" } ]
Change color in a bmp
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Otto,\nI have many images , How I can clear all ?", "time": "13:03", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2021-03-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio, maybe Uwe knows a way?\nBest regards,\nOtto", "time": "13:16", "topic": "Change color in a bmp", "username": "Otto" } ]
Change color in a bmp
[ { "date": "2021-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Silvio,\nTry this online service:\n<!-- m --><a class=\"postlink\" href=\"https://onlinepngtools.com/change-png-color\">https://onlinepngtools.com/change-png-color</a><!-- m -->\n\nBest regards,\nOtto", "time": "09:05", "topic": "Change color in a bmp", "username": "Otto" } ]
Change color in a bmp
[ { "date": "2021-03-25", "forum": "FiveWin for Harbour/xHarbour", "text": "New release ( Otto see on your mail)\n\n[img:hejyxnpr]https&#58;//i&#46;postimg&#46;cc/6png9Kdk/nn&#46;png[/img:hejyxnpr]", "time": "11:56", "topic": "Change color in a bmp", "username": "Silvio.Falconi" } ]
Change color in a bmp
[ { "date": "2009-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\nis there a way to change the color of the text of a say-object when the mouse is moved over it and the cursor changes to HAND?\n\nI did this for years with an old class called sensitive say:\n\n[code=fw:2mpvkvfn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #0000ff;\">REDEFINE</span> SENSITIVE <span style=\"color: #0000ff;\">SAY</span> geSay2 <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">903</span> <span style=\"color: #0000ff;\">of</span> SuchFolder:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>;<br />         COLOROVER RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span>;<br />         BOX TRANSPARENT;<br />         <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span>HelpTopic<span style=\"color: #000000;\">&#40;</span>IDH_SM_CHECK<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2mpvkvfn]\n\nBut now in Vista the transparent painting with this old class does not work any more.\n\nThanks for help,\nDietmar", "time": "18:28", "topic": "Change color of say when mouse is over it", "username": "Dietmar Jahnel" } ]
Change color of say when mouse is over it
[ { "date": "2009-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Dietmar,\nyou could try with lWantClick.\nBest regards,\nOtto\n\n\n [code=fw:k6apfduh]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;oSay:<span style=\"color: #000000;\">lWantClick</span> := .t.<br />&nbsp; &nbsp;oSay:<span style=\"color: #000000;\">bMMoved</span> &nbsp; = <span style=\"color: #000000;\">&#123;</span>||oSay:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> &nbsp;<span style=\"color: #000000;\">0</span>, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp;</div>[/code:k6apfduh]", "time": "20:32", "topic": "Change color of say when mouse is over it", "username": "Otto" } ]
Change color of say when mouse is over it
[ { "date": "2009-05-17", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:28x9u9x2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />   oSay:<span style=\"color: #000000;\">lWantClick</span> := .t.<br />   oSay:<span style=\"color: #000000;\">bMMoved</span>   = <span style=\"color: #000000;\">&#123;</span>||oSay:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span>  <span style=\"color: #000000;\">0</span>, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>,   oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /> </div>[/code:28x9u9x2][/quote]\n\nSorry, but the color does not change...\nDietmar", "time": "08:36", "topic": "Change color of say when mouse is over it", "username": "Dietmar Jahnel" } ]
Change color of say when mouse is over it
[ { "date": "2009-05-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Dietmar,\nwhat version of FW do you use?\nDo you have this line in Say class:\n\n[quote:amqldsic]\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TSay \n\n if ... nMsg == WM_NCHITTEST ) // To have a standard behavior on Clicks\n [/quote:amqldsic]\n\nBest regards,\nOtto", "time": "09:59", "topic": "Change color of say when mouse is over it", "username": "Otto" } ]
Change color of say when mouse is over it
[ { "date": "2009-05-17", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Otto\":176zxg4x]Dietmar,\nwhat version of FW do you use?\n\nlatest: 9.04\n\nDo you have this line in Say class:\n\n[quote:176zxg4x]\nMETHOD HandleEvent( nMsg, nWParam, nLParam ) CLASS TSay \n\n if ... nMsg == WM_NCHITTEST ) // To have a standard behavior on Clicks\n [/quote:176zxg4x][/quote:176zxg4x]\n\nyes.\nDo you get the color change?\n\nGrüße,\nDietmar", "time": "11:36", "topic": "Change color of say when mouse is over it", "username": "Dietmar Jahnel" } ]
Change color of say when mouse is over it
[ { "date": "2009-05-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Dietmar,\nyes. As soon as you move the mouse on the control the event is fired and it works.\nI only don’t know – there are many ways – what would be the best way and when to change the color back to the original.\nI have version 9.02 but I don’t think there was another change in the class.\nBest regards,\nOtto\n\n\n\n[code=fw:i5jwn084]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #B900B9;\">// A sample showing to to let a SAY accept Clicks events</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#define</span> COLOR_BTNFACE &nbsp; &nbsp; &nbsp; <span style=\"color: #000000;\">15</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, oSay, oCursor<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">CURSOR</span> oCursor HAND<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Test\"</span><br />&nbsp; &nbsp;oSay:<span style=\"color: #000000;\">lWantClick</span> = .t.<br />&nbsp; &nbsp;oSay:<span style=\"color: #000000;\">bMMoved</span> &nbsp; = <span style=\"color: #000000;\">&#123;</span>|| oSay:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> &nbsp;<span style=\"color: #000000;\">0</span>, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">128</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, &nbsp; oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;oSay:<span style=\"color: #000000;\">oCursor</span> &nbsp; &nbsp;= oCursor<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br />&nbsp;</div>[/code:i5jwn084]", "time": "15:22", "topic": "Change color of say when mouse is over it", "username": "Otto" } ]
Change color of say when mouse is over it
[ { "date": "2009-05-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Not very elegant, but this works.\n[code=fw:1r9sfvdn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> <br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"urllink.ch\"</span><br /><br />.....<br />< other code ><br />  <br />@   <span style=\"color: #000000;\">40</span>, <span style=\"color: #000000;\">20</span> URLLINK oSay URL <span style=\"color: #ff0000;\">'This is a say'</span> ;<br />      <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oWnd CLROVER CLR_HRED <span style=\"color: #0000ff;\">FONT</span> oFont<br /><br /><other code><br /><br />&nbsp;</div>[/code:1r9sfvdn]\nProbably a better way would be to derive a class from TUrlLink, with more features for mouseover, like change of font, change of background and foreground colors, attach an action block on click, etc. Or write a class derived from TSay with similar features", "time": "16:26", "topic": "Change color of say when mouse is over it", "username": "nageswaragunupudi" } ]
Change color of say when mouse is over it
[ { "date": "2008-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear All,\r\n\r\nI try to set color CLR_RED for columns that content 'X' but it's not working.\r\nHow can I do that? This is image of my sample code.\r\n\r\n[url=http&#58;//img507&#46;imageshack&#46;us/my&#46;php?image=columnscolorof2&#46;jpg:1mbdvymt][img:1mbdvymt]http&#58;//img507&#46;imageshack&#46;us/img507/8096/columnscolorof2&#46;th&#46;jpg[/img:1mbdvymt][/url:1mbdvymt]\r\n[code:1mbdvymt]\n#include 'fivewin&#46;ch'\n#include 'xbrowse&#46;ch'\n\nFUNCTION Main\n\nlocal oWnd, oBrw\nlocal aStatus &#58;= &#123; &#123;'1','','X','','X'&#125;, ;\n\t\t &#123;'2','X','X','','X'&#125;, ;\n\t\t &#123;'3','','','X','X'&#125; &#125;\nlocal n\n\n DEFINE WINDOW oWnd TITLE \"Change columns colors\" \n\n oBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40; oWnd &#41;\n\n oBrw&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLCELL\n oBrw&#58;nColDividerStyle &#58;= LINESTYLE_BLACK\n oBrw&#58;nRowDividerStyle &#58;= LINESTYLE_BLACK\n oBrw&#58;nFreeze &#58;= 1\n oBrw&#58;bLDblClick\t &#58;= &#123;|nRow,nCol,nKeyFlag| msginfo&#40; eval&#40;oBrw&#58;acols&#91;oBrw&#58;nAt&#40;&#41;&#93;&#58;bStrData&#41; &#41; &#125;\n\n oBrw&#58;SetArray&#40; aStatus &#41;\n\n for n &#58;= 1 to len&#40;aStatus&#41;\n oBrw&#58;aCols&#91;n&#93;&#58;bClrStd &#58;= &#123;|| &#123; CLR_BLACK, iif&#40;eval&#40;oBrw&#58;aCols&#91;n&#93;&#58;bStrData&#41;='X',CLR_RED,CLR_WHITE&#41; &#125; &#125;\n next\n\n oBrw&#58;CreateFromCode&#40;&#41;\n\n oWnd&#58;oClient &#58;= oBrw\n\n ACTIVATE WINDOW oWnd ON INIT oBrw&#58;SetFocus&#40;&#41;\n\nreturn nil\n[/code:1mbdvymt]\r\n\r\nRegards,\r\nDutch", "time": "20:46", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "dutch" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Dutch,\r\n\r\nTry this:\r\n\r\n oBrw:aCols[n]:bClrStd := {|| iif(eval(oBrw:aCols[n]:bStrData)='X',{CLR_BLACK,CLR_RED},{CLR_BLACK,CLR_WHITE } } \r\n\r\nJames", "time": "22:28", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "James Bott" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear James,\r\n\r\nIt still doesn't work. It likes the eval(oBrw:aCols[n]:bStrData) don't return correctly.\r\n\r\n[quote=\"James Bott\":1ks2uekl]Dutch,\n\nTry this:\n oBrw:aCols[n]:bClrStd := {|| iif(eval(oBrw:aCols[n]:bStrData)='X',{CLR_BLACK,CLR_RED},{CLR_BLACK,CLR_WHITE } } \n\nJames[/quote:1ks2uekl]\r\n\r\nI try this code but still doesn't work.\r\n[code:1ks2uekl]\noBrw&#58;aCols&#91;n&#93;&#58;bClrStd &#58;= &#123;|| iif&#40;aStatus&#91;oBrw&#58;nArrayAt&#93;&#91;n&#93;='X',&#123;CLR_BLACK,CLR_RED&#125;,&#123;CLR_BLACK,CLR_WHITE &#125;&#41; &#125; [/code:1ks2uekl]", "time": "03:00", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "dutch" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dutch\r\n\r\nXbrowse behaves a bit strange on evaluating colors, try it this way\r\n\r\n oBrw:aCols[I]:bClrStd := {|| {CLR_BLACK,iif(eval(oBrw:aCols[n]:bStrData)='X',CLR_RED,CLR_WHITE ) } }\r\n\r\nHTH\r\n\r\nRichard", "time": "05:21", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "Richard Chidiak" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dutch,\r\n\r\n>I try to set color CLR_RED for columns that content 'X' but it's not working\r\n\r\nI think you have problem with this logic. Do you want to change the color of the entire colomn if there is a X in any row in the column? If so this is going to be very hard to do. You will need to scan the entire database looking for X's before you decide which color to make the column.\r\n\r\nYou can't do this with a codeblock that is only looking at the current row.\r\n\r\nPerhaps I don't understand what you are trying to do?\r\n\r\nJames", "time": "05:40", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "James Bott" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear James,\r\n\r\nIn the past I use TWBrowse() to do as picture and now I would like to change to TXBrowse().\r\n[url=http&#58;//img440&#46;imageshack&#46;us/my&#46;php?image=twbrowsejo6&#46;jpg:1hj5r458][img:1hj5r458]http&#58;//img440&#46;imageshack&#46;us/img440/686/twbrowsejo6&#46;th&#46;jpg[/img:1hj5r458][/url:1hj5r458]\r\n\r\nThis is TWbrowse() code that I use. It is able to change bBkColor, bTextColor at runtime.\r\n\r\n[code:1hj5r458] \n REDEFINE LISTBOX oBrw FIELDS \"\" ;\n \t\t ID 103 ;\n \t\t\t \t OF oDlg \n\n oBrw&#58;nAt &#58;= 1\n oBrw&#58;bLine\t &#58;= &#123; || aRmNo&#91;oBrw&#58;nAt&#93; &#125;\n oBrw&#58;bGoTop\t &#58;= &#123; || oBrw&#58;nAt &#58;= 1 &#125;\n oBrw&#58;bGoBottom &#58;= &#123; || oBrw&#58;nAt &#58;= Eval&#40; oBrw&#58;bLogicLen &#41; &#125;\n oBrw&#58;bSkip\t &#58;= &#123; | nWant, nOld | nOld &#58;= oBrw&#58;nAt, oBrw&#58;nAt += nWant,;\n\t\t\t\t\t\t oBrw&#58;nAt &#58;= Max&#40; 1, Min&#40; oBrw&#58;nAt, Eval&#40; oBrw&#58;bLogicLen &#41; &#41; &#41;,;\n\t\t\t\t\t\t oBrw&#58;nAt - nOld &#125;\n\n oBrw&#58;bLogicLen&#58;= &#123; || Len&#40; aRmNo &#41; &#125;\n oBrw&#58;SetArray&#40; aRmNo &#41;\n\n oBrw&#58;lDrawSelect &#58;= &#46;T&#46;\n oBrw&#58;aColSizes &#58;= aSizes\n oBrw&#58;aHeaders &#58;= aHead\n oBrw&#58;aJustify &#58;= aJust\n oBrw&#58;aHJustify &#58;= aHJust\n oBrw&#58;lAdjBrowse &#58;= &#46;F&#46;\n oBrw&#58;lAdjLastCol &#58;= &#46;F&#46;\n oBrw&#58;lCellStyle &#58;= &#46;T&#46;\n oBrw&#58;nLineStyle &#58;= 11\n oBrw&#58;nFreeze &#58;= 1\n oBrw&#58;nLineHeight &#58;= 20\n oBrw&#58;nHeaderHeight&#58;= 22\n oBrw&#58;lMChange &#58;= &#46;F&#46;\n oBrw&#58;bGoLeft &#58;= &#123;|| oBrw&#58;nColAct > 2 &#125;\n oBrw&#58;bBkColor &#58;= &#123;|nRow,nCol,nStyle| if&#40;nStyle=0,SetClr&#40;oBrw&#58;nAt,nCol,nStyle,oBrw,aRmSt&#41;,&#41; &#125;\n oBrw&#58;bTextColor &#58;= &#123;|nRow,nCol,nStyle| if&#40;nStyle=1,SetClr&#40;oBrw&#58;nAt,nCol,nStyle,oBrw,aRmSt&#41;,&#41; &#125;\n* oBrw&#58;bFont &#58;= &#123;|nRow,nCol,nStyle| if&#40;nStyle=1&#46;and&#46;aDate&#91;nCol&#93;=1, oFnt&#58;hFont , if&#40;nStyle=0&#46;or&#46;nStyle=3, oFont&#58;hFont , &#41; &#41; &#125;\n oBrw&#58;bChange &#58;= &#123;|| oBrw&#58;Refresh&#40;&#41; &#125;\n\n oBrw&#58;nClrNFFore &#58;= oBrw&#58;nClrText\n oBrw&#58;nClrNFBack &#58;= oBrw&#58;nClrPane\n[/code:1hj5r458]\r\n\r\nRegards,\r\nDutch", "time": "05:54", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "dutch" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Richard,\r\n\r\nYour example is the same first sample above and It doesn't work correctly.\r\n\r\n[quote=\"Richard Chidiak\":21b6g1yz]Dutch\n\nXbrowse behaves a bit strange on evaluating colors, try it this way\n\n oBrw:aCols[I]:bClrStd := {|| {CLR_BLACK,iif(eval(oBrw:aCols[n]:bStrData)='X',CLR_RED,CLR_WHITE ) } }\n\nHTH\n\nRichard[/quote:21b6g1yz]\r\n\r\nRegards,\r\nDutch", "time": "05:56", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "dutch" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Please modify the code like this\r\n[code:27ibjq64]\n for n &#58;= 1 to len&#40;aStatus&#41; \n oBrw&#58;aCols&#91;n&#93;&#58;bClrStd &#58;= &#123; || CellColor&#40; oBrw, n &#41; &#125;\n next \n\n&#46;&#46;&#46;\n&#46;&#46;&#46;\n\n//-----------------------------//\nstatic function CellColor&#40; oBrw, n &#41;\nreturn &#123;|| &#123; CLR_BLACK, iif&#40;eval&#40;oBrw&#58;aCols&#91;n&#93;&#58;bStrData&#41;='X',CLR_RED,CLR_WHITE&#41; &#125; &#125;\n//-----------------------------//\n\n[/code:27ibjq64]\r\nThe problem is because of using loop variable to construct a codeblock.", "time": "06:08", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "nageswaragunupudi" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear nageswaragunupudi\r\n\r\nI try as your suggestion and now it shows correctly as following code\r\n\r\n[quote=\"nageswaragunupudi\":9vf975im]Please modify the code like this\n[code:9vf975im]\n for n &#58;= 1 to len&#40;aStatus&#41; \n oBrw&#58;aCols&#91;n&#93;&#58;bClrStd &#58;= &#123; || CellColor&#40; oBrw, n &#41; &#125;\n next \n\n&#46;&#46;&#46;\n&#46;&#46;&#46;\n\n//-----------------------------//\nstatic function CellColor&#40; oBrw, n &#41;\nreturn &#123;|| &#123; CLR_BLACK, iif&#40;eval&#40;oBrw&#58;aCols&#91;n&#93;&#58;bStrData&#41;='X',CLR_RED,CLR_WHITE&#41; &#125; &#125;\n//-----------------------------//\n\n[/code:9vf975im]\nThe problem is because of using loop variable to construct a codeblock.[/quote:9vf975im]\n\n[url=http&#58;//img216&#46;imageshack&#46;us/my&#46;php?image=columnscolorrf3&#46;jpg:9vf975im][img:9vf975im]http&#58;//img216&#46;imageshack&#46;us/img216/8127/columnscolorrf3&#46;th&#46;jpg[/img:9vf975im][/url:9vf975im]\n\n[code:9vf975im]\n#include 'fivewin&#46;ch'\n#include 'xbrowse&#46;ch'\n\nFUNCTION Main\n\nlocal oWnd, oBrw\nlocal aStatus &#58;= &#123; &#123;'1','','X','','X'&#125;, ;\n\t\t &#123;'2','X','X','','X'&#125;, ;\n\t\t &#123;'3','','','X','X'&#125; &#125;\nlocal n\n\n DEFINE WINDOW oWnd TITLE \"Change columns colors\" \n\n oBrw &#58;= TXBrowse&#40;&#41;&#58;New&#40; oWnd &#41;\n\n oBrw&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLCELL\n oBrw&#58;nColDividerStyle &#58;= LINESTYLE_BLACK\n oBrw&#58;nRowDividerStyle &#58;= LINESTYLE_BLACK\n oBrw&#58;nFreeze &#58;= 1\n oBrw&#58;bLDblClick\t &#58;= &#123;|nRow,nCol,nKeyFlag| msginfo&#40; eval&#40;oBrw&#58;acols&#91;oBrw&#58;nAt&#40;&#41;&#93;&#58;bStrData&#41; &#41; &#125;\n\n oBrw&#58;SetArray&#40; aStatus &#41;\n\n\n for n &#58;= 1 to len&#40;aStatus&#91;1&#93;&#41; \n oBrw&#58;aCols&#91;n&#93;&#58;bClrStd &#58;= CellColor&#40; oBrw, n &#41; \n next \n/*\n for n &#58;= 1 to len&#40;aStatus&#41; \n * oBrw&#58;aCols&#91;n&#93;&#58;bClrStd &#58;= &#123;|| &#123; CLR_BLACK, iif&#40;eval&#40;oBrw&#58;aCols&#91;n&#93;&#58;bStrData&#41;='X',CLR_RED,CLR_WHITE&#41; &#125; &#125;\n * oBrw&#58;aCols&#91;n&#93;&#58;bClrStd &#58;= &#123;|| iif&#40;eval&#40;oBrw&#58;aCols&#91;n&#93;&#58;bStrData&#41;='X',&#123;CLR_BLACK,CLR_RED&#125;,&#123;CLR_BLACK,CLR_WHITE &#125;&#41; &#125; \n oBrw&#58;aCols&#91;n&#93;&#58;bClrStd &#58;= &#123;|| iif&#40;aStatus&#91;oBrw&#58;nArrayAt&#93;&#91;n&#93;='X',&#123;CLR_BLACK,CLR_RED&#125;,&#123;CLR_BLACK,CLR_WHITE &#125;&#41; &#125; \n next\n*/\n\n oBrw&#58;CreateFromCode&#40;&#41;\n\n oWnd&#58;oClient &#58;= oBrw\n\n ACTIVATE WINDOW oWnd ON INIT oBrw&#58;SetFocus&#40;&#41;\n\nreturn nil\n\n\nstatic function CellColor&#40; oBrw, n &#41; \nreturn &#123;|| &#123; CLR_HCYAN, iif&#40;eval&#40;oBrw&#58;aCols&#91;n&#93;&#58;bStrData&#41;='X',CLR_RED,CLR_WHITE&#41; &#125; &#125; \n[/code:9vf975im]\r\n\r\nRegards,\r\nDutch", "time": "07:34", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "dutch" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dutch\r\n\r\nThis is a piece of code from my application, it works OK\r\n\r\n[code:34p1af4z]\nFOR I = 1 TO LEN&#40;oBrw&#58;aCols&#41;\n oBrw&#58;aCols&#91;I&#93;&#58;nWidth &#58;= ASIZE&#91;I&#93;\n oBrw&#58;aCols&#91;I&#93;&#58;oDataFont &#58;= &#123;||IIF&#40;DET->SDETAIL,TABCOL&#91;12&#93;,IIF&#40;DET->ENR = \"3\" &#46;OR&#46; DET->ENR = \"1\" ,TABOBJ&#91;04&#93;, TABCOL&#91;11&#93; &#41; &#41; &#125;\n oBrw&#58;aCols&#91;I&#93;&#58;bClrStd &#58;= &#123;|| &#123;CLR_BLUE, If&#40; DET->SDETAIL,CLR_YELLOW,CLR_WHITE&#41; &#125; &#125;\nNEXT\n[/code:34p1af4z]\r\n\r\nHTH\r\n\r\nRichard", "time": "08:10", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "Richard Chidiak" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2008-04-29", "forum": "FiveWin for Harbour/xHarbour", "text": "It work as spectation.\r\n\r\nThanks to all,\r\nDutch", "time": "19:15", "topic": "Change columns color at run-time TXBrowse()? *Fixed Now*", "username": "dutch" } ]
Change columns color at run-time TXBrowse()? *Fixed Now*
[ { "date": "2022-04-18", "forum": "FiveWin for Harbour/xHarbour", "text": "I have an array 16 columns\nwith a radiomenu I change a nvalue \n \n[img:15rb3xwp]https&#58;//i&#46;postimg&#46;cc/nLjFwf78/bu&#46;jpg[/img:15rb3xwp]\n\nI wish change the title of [b:15rb3xwp]SetGroupHeader[/b:15rb3xwp]\n\nI made \n:SetGroupHeader( Iif(nRadio=1,\"Somme estratti\",\"Distanze cilometriche\" ), 7, 16 ,oFontsmall,,30)\n\nHow I can to refresh the setgroupHeader ?", "time": "17:06", "topic": "Change columns title array on line - Resolved -", "username": "Silvio.Falconi" } ]
Change columns title array on line - Resolved -
[ { "date": "2022-04-24", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:tkretjqu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AEval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span>, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">cGrpHdr</span> := &nbsp;Iif<span style=\"color: #000000;\">&#40;</span>nRadio=<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Somme estratti\"</span>,<span style=\"color: #ff0000;\">\"Distanze cilometriche\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span><br />oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:tkretjqu]", "time": "02:38", "topic": "Change columns title array on line - Resolved -", "username": "nageswaragunupudi" } ]
Change columns title array on line - Resolved -
[ { "date": "2022-04-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"nageswaragunupudi\":3fjspa2j][code=fw:3fjspa2j]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AEval<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span>, <span style=\"color: #000000;\">&#123;</span> |o| o:<span style=\"color: #000000;\">cGrpHdr</span> :=  Iif<span style=\"color: #000000;\">&#40;</span>nRadio=<span style=\"color: #000000;\">1</span>,<span style=\"color: #ff0000;\">\"Somme estratti\"</span>,<span style=\"color: #ff0000;\">\"Distanze cilometriche\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">7</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">&#41;</span><br />oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:3fjspa2j][/quote:3fjspa2j]\n\nthanks", "time": "12:42", "topic": "Change columns title array on line - Resolved -", "username": "Silvio.Falconi" } ]
Change columns title array on line - Resolved -
[ { "date": "2019-01-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear All,\n\nI need to change cursor to Hand when MouseOver on desired columns for notify user that which columns can click.\n\nThanks in advance for any help or ideas.", "time": "06:36", "topic": "Change cursor to hand when mouseover desired columns", "username": "dutch" } ]
Change cursor to hand when mouseover desired columns
[ { "date": "2006-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I have seen that some programmers use instead of dbf own extensions.\n\ndatabase.dbf database.xxx\n\nIs this easy to do and if yes how?\n\nThanks in advance\nOtto", "time": "10:49", "topic": "Change dbf extension form dbf to blabla", "username": "Otto" } ]
Change dbf extension form dbf to blabla
[ { "date": "2006-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, it is as easy as renaming the file and specifying the file extension in the USE command.\n\nEMG[/i]", "time": "11:29", "topic": "Change dbf extension form dbf to blabla", "username": "Enrico Maria Giordano" } ]
Change dbf extension form dbf to blabla
[ { "date": "2006-06-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you.\n\nRegards\nOtto", "time": "18:09", "topic": "Change dbf extension form dbf to blabla", "username": "Otto" } ]
Change dbf extension form dbf to blabla
[ { "date": "2012-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nHow can I change a getfield in a dialog on the fly?\n\nI have a code like\n\n[code=fw:80n4j93i]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> ovar <span style=\"color: #0000ff;\">VAR</span> artikel->omschrijv   <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> oDlg</div>[/code:80n4j93i]\n\nI want to change artikel->omschrijv to artikel->omschrijv1 when I press a button.\n\nI have try\n[quote:80n4j93i]ovar:oGet:bSETGET( artikel->omschrijv1)[/quote:80n4j93i]\nbut get an compile error\n\nThanks,\nMarc", "time": "09:03", "topic": "Change field in get", "username": "Marc Vanzegbroeck" } ]
Change field in get
[ { "date": "2012-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc\n\nI would assign your database field to a variable then with your button, re-assign the variable then refresh your object ..\n\nSomething like this :\n\n[code=fw:r10mj7h4]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />cOmschrijv := artikel->omschrijv<br /><br /><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oVar <span style=\"color: #0000ff;\">VAR</span> cOmschrijv   <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">202</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br /><span style=\"color: #0000ff;\">Redefine</span> <span style=\"color: #0000ff;\">button</span> oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Change\"</span> ;<br />            <span style=\"color: #0000ff;\">ACTION</span><span style=\"color: #000000;\">&#40;</span> cOmschrijv := artikel->omschrijv1, oVar:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, SysReFresh<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oVar:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:r10mj7h4]\n\nRick Lipkin", "time": "13:47", "topic": "Change field in get", "username": "Rick Lipkin" } ]
Change field in get
[ { "date": "2012-03-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Rick,\n\nThanks for your reply.\nI just found an other way.\n\n[code=fw:311mxjk6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">ovar:<span style=\"color: #000000;\">oget</span>:<span style=\"color: #000000;\">block</span> := bSETGET<span style=\"color: #000000;\">&#40;</span>artikel->omschrijv1<span style=\"color: #000000;\">&#41;</span><br />ovar:<span style=\"color: #0000ff;\">ReFresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:311mxjk6]\n\nRegards,\nMarc", "time": "13:57", "topic": "Change field in get", "username": "Marc Vanzegbroeck" } ]
Change field in get
[ { "date": "2014-07-21", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\n\nWith a normal Get I can use\n[code=fw:3czr5rqx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">vGetlist:<span style=\"color: #000000;\">oget</span>:<span style=\"color: #000000;\">block</span> := bSETGET<span style=\"color: #000000;\">&#40;</span>instaanm->aanmb1<span style=\"color: #000000;\">&#41;</span></div>[/code:3czr5rqx]\nto change a fieldname in guntime, but it doesn't work with a multget.\nI get the error\n[quote:3czr5rqx]Error description: Error BASE/1004 Message not found: TGET:OMULTIGET[/quote:3czr5rqx]\n\nWhat can I use?", "time": "19:39", "topic": "Change field in tMultiGet", "username": "Marc Vanzegbroeck" } ]
Change field in tMultiGet
[ { "date": "2014-07-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\n[quote=\"Marc Vanzegbroeck\":j1s7piiz]Hi,\n\nWith a normal Get I can use\n[code=fw:j1s7piiz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">vGetlist:<span style=\"color: #000000;\">oget</span>:<span style=\"color: #000000;\">block</span> := bSETGET<span style=\"color: #000000;\">&#40;</span>instaanm->aanmb1<span style=\"color: #000000;\">&#41;</span></div>[/code:j1s7piiz]\nto change a fieldname in guntime, but it doesn't work with a multget.\nI get the error\n[quote:j1s7piiz]Error description: Error BASE/1004 Message not found: TGET:OMULTIGET[/quote:j1s7piiz]\n\nWhat can I use?[/quote:j1s7piiz]\n\nWith both class try:\n\n[code=fw:j1s7piiz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">vGetlist:<span style=\"color: #000000;\">bSetGet</span> := bSETGET<span style=\"color: #000000;\">&#40;</span>instaanm->aanmb1<span style=\"color: #000000;\">&#41;</span></div>[/code:j1s7piiz]\n\nEMG", "time": "14:45", "topic": "Change field in tMultiGet", "username": "Enrico Maria Giordano" } ]
Change field in tMultiGet
[ { "date": "2014-07-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nI just found it 10 minutes ago myself, and wanted to post the result.\n\nThanks anyway!!", "time": "14:52", "topic": "Change field in tMultiGet", "username": "Marc Vanzegbroeck" } ]
Change field in tMultiGet
[ { "date": "2006-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi,\nI need to change the date and time of a file.\n\nI tried with the SetFdate() FW's function but an \"not implemented yet for 32 bit\" error message appairs.\n\nIs there any tourn-around available ?\n\nThanks in advance\n\nRegards,\n\nMarco Turco", "time": "10:14", "topic": "Change file time and date", "username": "Marco Turco" } ]
Change file time and date
[ { "date": "2006-04-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Try SetDate( nDay, nMonth, nYear )\n\nEMG", "time": "11:26", "topic": "Change file time and date", "username": "Enrico Maria Giordano" } ]
Change file time and date