messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2011-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco,\n\n>Probably it it could happen in other situations but not in XP pro, Windows Server and Windows 7\n\nAs long as I have been programming in xbase (since the beginning of dBase) I have never seen an index that was affected by the Windows version, so from my experience it seems unlikely that this is what you are experiencing.\n\nCan you repeat the problem multiple times at will under Vista, and not under any other Windows version? Using the exact same EXE, DBFs and indexes? Can you repeat it on more than one PC running Vista?\n\nCan you create a small example program that shows the problem? I don't have Vista running here, but perhaps someone else can test it under Vista.\n\nPerhaps your index is corrupted? Try rebuilding the index.\n\nRegards,\nJames", "time": "19:05", "topic": "A problem in Vista", "username": "James Bott" } ]
A problem in Vista
[ { "date": "2011-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Marco,\n\n[quote=\"MarcoBoschi\":2l0elbua]\nIs there any known problem concerning Vista?\n[/quote:2l0elbua]\n\nThe only problem I know with Vista is in a network environment. Here you have to disable [url=https://secure.wikimedia.org/wikipedia/en/wiki/Server_Message_Block:2l0elbua]SMB 2.0[/url:2l0elbua].", "time": "19:16", "topic": "A problem in Vista", "username": "IBTC" } ]
A problem in Vista
[ { "date": "2011-02-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco,\n\nPerhaps it is a disk buffer issue.\n\nAs a workaround, you could try a dbcommit() or closing and then reopening the database between creation and viewing the list where the invoice currently doesn't show.\n\nRegards,\nJames", "time": "19:27", "topic": "A problem in Vista", "username": "James Bott" } ]
A problem in Vista
[ { "date": "2011-02-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco,\ni have a windows 64 bit Home premium ,\nand I have problem with ordsetfocus and sertorder ( cdx) , I worked on it from a week\nbut the same cose run ok on wn xp prof 2600 also sp 3\nthen My friend Eduardo Freni of Florence sad me was happened : I erase the antivirus ( avira) from my computer and now it run ok, I not Know why ... I purchased the antivirus 3 licenses but I cannot use it \nperhaps I must use avg", "time": "17:10", "topic": "A problem in Vista", "username": "Silvio" } ]
A problem in Vista
[ { "date": "2011-02-11", "forum": "FiveWin for Harbour/xHarbour", "text": "Falconi,\n\nDid you exclude scanning of DBFs and index files? Perhaps that would solve the problem. Databases and indexes should always be excluded at least for performance reasons.\n\nJames", "time": "17:49", "topic": "A problem in Vista", "username": "James Bott" } ]
A problem in Vista
[ { "date": "2011-02-14", "forum": "FiveWin for Harbour/xHarbour", "text": "I will return the next day and then I will try\nThanks to everybody\n\nmarco", "time": "12:45", "topic": "A problem in Vista", "username": "MarcoBoschi" } ]
A problem in Vista
[ { "date": "2011-02-14", "forum": "FiveWin for Harbour/xHarbour", "text": "jAMES ,\nI not Know why... for a sample now I have a strange problem with xbrowse for the bitmaps on header at right (line 8714) but on xp professional this not happen, it is perhaps windows seven ? I saw also the avira take cdx files as spyware...", "time": "13:33", "topic": "A problem in Vista", "username": "Silvio" } ]
A problem in Vista
[ { "date": "2011-02-17", "forum": "FiveWin for Harbour/xHarbour", "text": "news: \nIn today's session:\n- I disable from norton antivirus the folder of the application.\n- first test: OK\n- second test\n\nAfter an Invoice creation:\n- I return to main Menu (there is a CLOSE DATABASE instruction)\n- I select \"Invoce\"\n- a list of all invoices appears except last five invoices\n- with emagdbu, the most useful Enrico program I open invoices table and I've seen them all\n\nIf I Exit from application and re-run it IF I select \"Invoice\" now the Invoice is visible.\n\nIn my opinion this is a big problem of Vista", "time": "12:43", "topic": "A problem in Vista", "username": "MarcoBoschi" } ]
A problem in Vista
[ { "date": "2011-02-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Erase all antivirus and spyware\nAvg seem run ok", "time": "13:21", "topic": "A problem in Vista", "username": "Silvio" } ]
A problem in Vista
[ { "date": "2011-02-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio: Ok", "time": "14:52", "topic": "A problem in Vista", "username": "MarcoBoschi" } ]
A problem in Vista
[ { "date": "2011-02-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco,\n\nMay I suggest this simple test.\n\nUse a copy of the invoice file and indexes.\n\nCreate a simple program to open the file, add several new indexes, then close the file. Then reopen the file and use a browse to see if the new records are visible.\n\nYou could probably do this with 20 lines of code or so. This test would eliminate your main program code as being an issue.\n\nRegards,\nJames", "time": "17:33", "topic": "A problem in Vista", "username": "James Bott" } ]
A problem in Vista
[ { "date": "2011-02-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Marco\n\nIf you are in a network environment, you may consider disabling smb2 , this is also true for vista\n\nIf not try to delete your index and build it again\n\nHth\n\nRichard", "time": "18:13", "topic": "A problem in Vista", "username": "Richard Chidiak" } ]
A problem in Vista
[ { "date": "2011-02-18", "forum": "FiveWin for Harbour/xHarbour", "text": "There are only two pc.\nThis Vista PC has a shared volume\nThis problem occur in this PC, locally.\nI will creat this simple test\n\nThanks again", "time": "08:46", "topic": "A problem in Vista", "username": "MarcoBoschi" } ]
A problem in Vista
[ { "date": "2008-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello, \r\ni noticed a problem from changing Row- to Col-preview.\r\n\r\nRow-Colors\r\n\r\n[img:2igkngzj]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting10&#46;jpg[/img:2igkngzj]\r\n\r\nColumn-Colors\r\n\r\n[img:2igkngzj]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting11&#46;jpg[/img:2igkngzj]\r\n\r\nThe switching works only once. I can switch from Row-colors to Col-colors.\r\nTo switch back from Cols to Rows, doesn't work.\r\nThe Browser shows still the Col-colors after switching.\r\n\r\n[code:2igkngzj]\n\n&#46;&#46;&#46;&#46;\n&#46;&#46;&#46;&#46;\n&#46;&#46;&#46;&#46; THE SWITCH SELECTION ------\n\noLbx14 &#58;= TXBrowse&#40;&#41;&#58;New&#40; oFld&#58;aDialogs&#91;3&#93; &#41;\noLbx14&#58;nMarqueeStyle &#58;= MARQSTYLE_HIGHLROW\noLbx14&#58;nColDividerStyle\t &#58;= LINESTYLE_BLACK\noLbx14&#58;nRowDividerStyle &#58;= LINESTYLE_BLACK\noLbx14&#58;SetArray&#40; aBRSTYLE1 &#41;\noLbx14&#58;aCols&#91; 1 &#93;&#58;cHeader = Padr&#40;\"No&#46;\", 3&#41;\noLbx14&#58;aCols&#91; 2 &#93;&#58;cHeader = Padr&#40;\"Style\", 20&#41;\noLbx14&#58;nRecSelColor = 15512898 \noLbx14&#58;bClrSelFocus = &#123; || &#123; 16777215, 15512898 &#125; &#125; \noLbx14&#58;bClrSel = &#123; || &#123; 16777215, 15512898 &#125; &#125; \noLbx14&#58;lHScroll &#58;= &#46;F&#46;\noLbx14&#58;lVScroll &#58;= &#46;F&#46;\noLbx14&#58;lFooter &#58;= &#46;T&#46;\noLbx14&#58;nFooterHeight &#58;= 15\n\noLbx14&#58;bLClicked &#58;= &#123; | nRow, nCol | &#40; BR_STYLE1 &#58;= oLbx14&#58;nRowSel, ;\n IIF&#40; BR_STYLE1 = 1, BRW_ROWS&#40;oLbx0&#41;, BRW_COLS&#40;oLbx0&#41; &#41; &#41; &#125;\n\noLbx14&#58;aCols&#91; 2 &#93;&#58;AddResource&#40;\"Horizont\"&#41;\noLbx14&#58;aCols&#91; 2 &#93;&#58;AddResource&#40;\"Vertikal\"&#41;\noLbx14&#58;aCols&#91; 2 &#93;&#58;bBmpData &#58;= &#123;|| oLbx14&#58;nArrayAt &#125;\noLbx14&#58;aCols&#91; 2 &#93;&#58;bStrData &#58;= &#123;|| oLbx14&#58;aRow&#91;2&#93; &#125; \n\noLbx14&#58;nArrayAt &#58;= 1\noLbx14&#58;nRowSel &#58;= 1\n\noLbx14&#58;CreateFromResource&#40; 140 &#41;\n\n&#46;&#46;&#46;&#46;\n&#46;&#46;&#46;&#46;\n&#46;&#46;&#46;&#46;\n\n// ----------------------------------------\n\nFUNCTION BRW_ROWS&#40;oLbx0&#41;\n\noLbx0&#58;bClrStd &#58;= &#123;|| IF &#40; EVAL &#40; oLbx0&#58;bKeyno, NIL, oLbx0 &#41; %2 == 0, ;\n &#123; ROW_TEXT, ROW_COL1 &#125;, &#123; ROW_TEXT, ROW_COL2 &#125; &#41; &#125;\n\noLbx0&#58;Refresh&#40;&#41;\n\nMsgAlert&#40; \"Row-Colors\",\"Attention\" &#41;\n\nRETURN&#40; NIL &#41;\n\n// ----------------------------------------\n\nFUNCTION BRW_COLS&#40;oLbx0&#41;\n\noLbx0&#58;aCols&#91; 1 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL1 &#125; &#125;\noLbx0&#58;aCols&#91; 2 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL2 &#125; &#125;\noLbx0&#58;aCols&#91; 3 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL1 &#125; &#125;\n\noLbx0&#58;Refresh&#40;&#41;\n\nMsgAlert&#40; \"Column-Colors\",\"Attention\" &#41;\n\nRETURN&#40; NIL &#41;\n\n\n// -------- a TEST-FUNCTION --------------------------------\n\nFUNCTION SWITCHTEST&#40;oLbx0&#41;\n\noLbx0&#58;bClrStd &#58;= &#123;|| IF &#40; EVAL &#40; oLbx0&#58;bKeyno, NIL, oLbx0 &#41; %2 == 0, ;\n &#123; ROW_TEXT, ROW_COL1 &#125;, &#123; ROW_TEXT, ROW_COL2 &#125; &#41; &#125;\n\noLbx0&#58;Refresh&#40;&#41;\n\nMsgAlert&#40; \"ROW\" &#41;\n\noLbx0&#58;aCols&#91; 1 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL1 &#125; &#125;\noLbx0&#58;aCols&#91; 2 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL2 &#125; &#125;\noLbx0&#58;aCols&#91; 3 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL1 &#125; &#125;\n\noLbx0&#58;Refresh&#40;&#41;\n\nMsgAlert&#40; \"COL\" &#41;\n\n// ----- From this point no change !!!! --------------\n\noLbx0&#58;bClrStd &#58;= &#123;|| IF &#40; EVAL &#40; oLbx0&#58;bKeyno, NIL, oLbx0 &#41; %2 == 0, ;\n &#123; ROW_TEXT, ROW_COL1 &#125;, &#123; ROW_TEXT, ROW_COL2 &#125; &#41; &#125;\n\noLbx0&#58;Refresh&#40;&#41;\n\nMsgAlert&#40; \"ROW\" &#41;\n\noLbx0&#58;aCols&#91; 1 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL1 &#125; &#125;\noLbx0&#58;aCols&#91; 2 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL2 &#125; &#125;\noLbx0&#58;aCols&#91; 3 &#93;&#58;bClrStd &#58;= &#123;|| &#123; ROW_TEXT, ROW_COL1 &#125; &#125;\n\noLbx0&#58;Refresh&#40;&#41;\n\nMsgAlert&#40; \"COL\" &#41;\n\nRETURN&#40; NIL &#41;\n\n[/code:2igkngzj]\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "22:59", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "ukoenig" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2008-08-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\nAfter some more tests, i found the situation for the problem :\r\n\r\nI start a browser with col-display like this :\r\n\r\noLbx0:aCols[ 1 ]:bClrStd := {|| { ROW_TEXT, ROW_COL1 } } \r\noLbx0:aCols[ 2 ]:bClrStd := {|| { ROW_TEXT, ROW_COL2 } } \r\noLbx0:aCols[ 3 ]:bClrStd := {|| { ROW_TEXT, ROW_COL1 } } \r\noLbx0:Refresh() \r\n\r\nAfter showing the col-display, i change to row-display.\r\n\r\noLbx0:bClrStd := {|| IF ( EVAL ( oLbx0:bKeyno, NIL, oLbx0 ) %2 == 0, ; \r\n{ ROW_TEXT, ROW_COL1 }, { ROW_TEXT, ROW_COL2 } ) } \r\noLbx0:Refresh() \r\n\r\nNothing happens.\r\n\r\nIf i do it the other way : changing from Row-display to Col-display, \r\nit works.\r\n\r\nWhat can be wrong ?\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "13:59", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "ukoenig" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2008-08-28", "forum": "FiveWin for Harbour/xHarbour", "text": "I think that after oCol:bClrStd is set it has preference on oBrw:bClrStd.\r\n\r\nWhen a column is created the default value from oCol:bClrStd is oBrw:bClrStd , this means that oCol:bClrStd is only set when it is nil\r\n\r\nMaybe you have always to set oCol:bClrStd (for each column) :\r\n\r\n[code:50sykta3]\nFOR EACH oCol IN oLbx0&#58;aCols\n oCol&#58;bClrStd &#58;= &#123;|| IF &#40; EVAL &#40; oLbx0&#58;bKeyno, NIL, oLbx0 &#41; %2 == 0, &#123; ROW_TEXT, ROW_COL1 &#125;, &#123; ROW_TEXT, ROW_COL2 &#125; &#41; &#125; \nNEXT\noLbx0&#58;Refresh&#40;&#41; \n\n[/code:50sykta3]", "time": "15:49", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "demont frank" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2008-08-28", "forum": "FiveWin for Harbour/xHarbour", "text": ">\r\nI think that after oCol:bClrStd is set it has preference on oBrw:bClrStd.\r\n\r\nWhen a column is created the default value from oCol:bClrStd is oBrw:bClrStd , this means that oCol:bClrStd is only set when it is nil\r\n>\r\nYes. For obvious reasons.\r\n\r\n>\r\nIF ( EVAL ( oLbx0:bKeyno, NIL, oLbx0 ) %2 == 0,\r\n>\r\nSimpler way to write this is \" If( oLbx0:KeyNo() % 2 == 0 ), ....... \"\r\n\r\n>\r\nMaybe you have always to set oCol:bClrStd (for each column) :\r\n>\r\nThat is one way of doing it.\r\nBut more elegant way is something like this:\r\n\r\nnClr1 := .... , nClr2 := .... , nClr3 := ... , nClr4 := ....\r\n\r\noCol:bClrStd := { || If( oLbx:KeyNo() % 2 == 0, { nCrl1, nClr2 }, {nClr3,nClr4} }\r\n\r\nAfter this we do not have to change the code blocks.\r\nSimply assign whatever new colors we want to nClr1, nClr2, etc.\r\nBrowse will automatically paint with whatever colors the variables nClr1, nClr2, ... etc. represent.\r\n\r\nThis would be the simplest way and code also is much more clear.\r\n\r\nNote:\r\nI have a slightly different way of programming.\r\n\r\nlocal aClrCol := { { clr1, clr2 }, { clr3, clr4 } }\r\n\r\noCol:bClrStd := { || aClrCol[ oBrw:KeyNo % 2 + 1 ] }\r\n\r\nNow whenever I need, I just change the value of the relevant element in the array aClrCol. Example: aClrCol[ 2 ][ 2 ] := CLR_YELLOW\r\n\r\nNow next refresh will use this color", "time": "16:22", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "nageswaragunupudi" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2008-08-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you very much for all the help.\r\n\r\nThe work on the tools i can finish with this solution.\r\nNearly all possible xBrowse-settings are tested and can \r\nbe changed at runtime. \r\n\r\nThis weekend, i create a download-link in the forum,\r\nhoping, the tools will be a help for the users.\r\n\r\nThe final release will come after FWH-version 8.09 is out,\r\nbecause Antonio want's to fix the brush-problem :\r\nadjustment to data-area-size.\r\n\r\nBest Regards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "18:04", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "ukoenig" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2008-08-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\nI changed the function BRW_HORIZ( oLbx0 ).\r\nThe row-color-changes working fine.\r\n\r\nBut there is still the problem :\r\nAfter switching to => BRW_VERTIC(oLbx0)\r\nthe Row-display changes to Col-display.\r\nCalling BRW_HORIZ(oLbx0) again,\r\nthe browser is not repainted.\r\n\r\nA download of the tools\r\n( nearly finished, the final-version comes this weekend ).\r\nIf you like to view the problem on Folderpage 3 :\r\n\r\nThis Version is for testing at runtime !!\r\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/fw_download/testbrw.zip\">http://www.pflegeplus.com/fw_download/testbrw.zip</a><!-- m -->\r\n\r\nA version with dialog-preview :\r\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/fw_download/Browsetest1.zip\">http://www.pflegeplus.com/fw_download/Browsetest1.zip</a><!-- m -->\r\n\r\nBRW_HORIZ(oLbx0) ==> display is ok\r\nBRW_VERTIC(oLbx0) ==> display is ok\r\nBRW_HORIZ(oLbx0) ==> doesn't work anymore !!!!\r\n\r\n[code:rhpxg6ep]\n\nFUNCTION BRW_HORIZ&#40;oLbx0&#41;\nLOCAL hDC\n\naClrCol &#58;= &#123; &#123; ROW_TEXT, ROW_COL1 &#125;, &#123; ROW_TEXT, ROW_COL2 &#125; &#125; \noLbx0&#58;bClrStd &#58;= &#123; || aClrCol&#91; oLbx0&#58;KeyNo % 2 + 1 &#93; &#125; \n\noLbx0&#58;Refresh&#40;&#41;\n\nRETURN&#40; NIL &#41;\n\n// ----------------------------------------\n\nFUNCTION BRW_VERTIC&#40;oLbx0&#41;\n\nMaybe to have something like in BRW_HORIZ&#40;oLbx0&#41;\nfor Col-color-changing ???\n\n// --------- CHANGES every 2&#46; Column -------------------------------\n\nFUNCTION BRW_VERTIC&#40;oLbx0&#41;\nLOCAL nFOR\n\naClrCol &#58;= &#123; &#123; ROW_TEXT, ROW_COL1 &#125;, &#123; ROW_TEXT, ROW_COL2 &#125; &#125; \nlSELECT &#58;= &#46;T&#46;\nFOR nFOR &#58;= 1 TO LEN&#40; oLbx0&#58;aCols &#41;\n IF lSELECT = &#46;T&#46; \n oLbx0&#58;aCols&#91;nFOR&#93;&#58;bClrStd &#58;= &#123; || aClrCol&#91; nFOR % 2 + 1 &#93; &#125;\n lSELECT &#58;= &#46;F&#46;\n ELSE\n oLbx0&#58;aCols&#91;nFOR&#93;&#58;bClrStd &#58;= &#123; || aClrCol&#91; nFOR % 2 + 2 &#93; &#125;\n lSELECT &#58;= &#46;T&#46;\n ENDIF\nNEXT\n\noLbx0&#58;Refresh&#40;&#41;\n\nRETURN&#40; NIL &#41;\n\n[/code:rhpxg6ep]\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "14:08", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "ukoenig" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2008-08-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\nIt seems, there is another runtime problem like the left record-bar :\r\n\r\nI changed the display from runtime to a extra dialog ( same like for the Rec-bar ).\r\nThere it works.\r\nYou can test this version, if you like :\r\n\r\nDownload :\r\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/fw_downloads/Browsetest1.zip\">http://www.pflegeplus.com/fw_downloads/Browsetest1.zip</a><!-- m -->\r\n\r\nRow-display :\r\n\r\n[img:2wjg7mee]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting12&#46;jpg[/img:2wjg7mee]\r\n\r\nCol-display :\r\n\r\n[img:2wjg7mee]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting13&#46;jpg[/img:2wjg7mee]\r\n\r\nWith this solution, i can switch as often as i like.\r\n\r\nWhen it isn't possible, to do this with the main-browser,\r\nthat wouldn't be nice, because it can be, \r\ni want to show special values in a colored Column and \r\nswitch back to row-display.\r\n\r\nMaybe any solution ?\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "20:17", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "ukoenig" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2009-08-26", "forum": "FiveWin for Harbour/xHarbour", "text": "In the example above, you use\n\noLbx0:bClrStd := { || aClrCol[ oLbx0:KeyNo % 2 + 1 ] } \n\nI don't see KeyNo as a data holder in xBrowse. There is a function. Can you explain this to me, or is there a change necessary for xbrowse ?\n\nI also noticed that the alternating color bars for xbrowse using this method don't always alternate. I assume that is the result of non-displayed, but deleted, records in the database.", "time": "20:11", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "TimStone" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2009-08-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Tim,\n\nthere is nothing to add or to change.\nYou can use the sample [color=#FF0000:345cqogo]testxbr2.prg [/color:345cqogo] for a Test and add some lines.\n\nRow-Color-Change\n[img:345cqogo]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrwcol1&#46;jpg[/img:345cqogo]\n\nColumn-Color-Change\n( Add the Line for < Lost-Focus-Color > from Your other Question )\n[img:345cqogo]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrwcol2&#46;jpg[/img:345cqogo]\n\n[code=fw:345cqogo]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />...<br />...<br /><span style=\"color: #00C800;\">for</span> nFor := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span> <span style=\"color: #000000;\">&#41;</span> <br />      oCol := oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span> nFor <span style=\"color: #000000;\">&#93;</span> <br />      oCol:<span style=\"color: #000000;\">nEditType</span> := <span style=\"color: #000000;\">1</span> <br />      oCol:<span style=\"color: #000000;\">bOnPostEdit</span> := <span style=\"color: #000000;\">&#123;</span>|o, v, n| iif<span style=\"color: #000000;\">&#40;</span> n != VK_ESCAPE, FieldPut<span style=\"color: #000000;\">&#40;</span> o:<span style=\"color: #000000;\">nCreationOrder</span>, v <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <br /><span style=\"color: #00C800;\">next</span> <br /><br /><span style=\"color: #B900B9;\">// Choose the Color-Display You need.</span><br /><span style=\"color: #B900B9;\">// Add these Lines :</span><br /><span style=\"color: #B900B9;\">// --------------------</span><br /><span style=\"color: #B900B9;\">// BRW_VERTIC(oBrw)</span><br />BRW_HORIZ<span style=\"color: #000000;\">&#40;</span>oBrw<span style=\"color: #000000;\">&#41;</span><br /><br />oBrw:<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <br />...<br />...<br /><span style=\"color: #B900B9;\">// --------------------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> BRW_HORIZ<span style=\"color: #000000;\">&#40;</span>oBrw<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> hDC<br /><span style=\"color: #00C800;\">LOCAL</span> aClrCol := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">15122321</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">16509392</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <br /><br />oBrw:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span> || aClrCol<span style=\"color: #000000;\">&#91;</span> oBrw:<span style=\"color: #000000;\">KeyNo</span> % <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span> <br /><br />oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// --------- CHANGES every 2. Column -------------------------------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> BRW_VERTIC<span style=\"color: #000000;\">&#40;</span>oBrw<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> nFOR<br /><span style=\"color: #00C800;\">LOCAL</span> aClrCol := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">15122321</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">16509392</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <br /><br />lSELECT := .T.<br /><span style=\"color: #00C800;\">FOR</span> nFOR := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> LEN<span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">aCols</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">IF</span> lSELECT = .T. <br />      oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>nFOR<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span> || aClrCol<span style=\"color: #000000;\">&#91;</span> nFOR % <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span><br />      lSELECT := .F.<br />   <span style=\"color: #00C800;\">ELSE</span><br />      oBrw:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">&#91;</span>nFOR<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span> || aClrCol<span style=\"color: #000000;\">&#91;</span> nFOR % <span style=\"color: #000000;\">2</span> + <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#125;</span><br />      lSELECT := .T.<br />   <span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">NEXT</span><br /><br />oBrw:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:345cqogo]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "22:01", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "ukoenig" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2009-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Rao,\n\n[quote=\"nageswaragunupudi\":2rfyz8so]>\noCol:bClrStd := { || If( oLbx:KeyNo() % 2 == 0, { nCrl1, nClr2 }, {nClr3,nClr4} }\n[/quote:2rfyz8so]\n\nI've used this following but it shows below image. What's wrong? oTbw:KeyNo() is show on the most right column.\n[code=fw:2rfyz8so]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oTbw:<span style=\"color: #000000;\">bClrStd</span>    := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span> iif<span style=\"color: #000000;\">&#40;</span> GST->GST_GSTYPE=<span style=\"color: #ff0000;\">'V'</span> , CLR_HRED , CLR_BLACK <span style=\"color: #000000;\">&#41;</span>, iif<span style=\"color: #000000;\">&#40;</span>oTbw:<span style=\"color: #000000;\">Keyno</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>%<span style=\"color: #000000;\">2</span> == <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">15122321</span>,<span style=\"color: #000000;\">16509392</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span></div>[/code:2rfyz8so]\n[url=http&#58;//img509&#46;imageshack&#46;us/i/keyno2&#46;jpg/:2rfyz8so][img:2rfyz8so]http&#58;//img509&#46;imageshack&#46;us/img509/5655/keyno2&#46;th&#46;jpg[/img:2rfyz8so][/url:2rfyz8so]\n\nRegards,\nDutch", "time": "07:58", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "dutch" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2009-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Dutch\n\nIf you are using ADSCDX of RDDADS, you experience this problem. In that case, replace \"obrw:keyno\" in your expression as \"(oBrw:cAlias)->( OrdKeyNo() )\"\nThis gives correct count for the color block", "time": "09:12", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "nageswaragunupudi" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2009-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Rao,\n\nYes, master. You are absolutely right. I used \"ADSCDX\" and your comment is correctly.\n\nThanks master,\nDutch", "time": "12:45", "topic": "A problem in xBrowse to change from Row to Col-preview ???", "username": "dutch" } ]
A problem in xBrowse to change from Row to Col-preview ???
[ { "date": "2008-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello, \r\n\r\nI want to change the Rec-Select-Color at runtime.\r\n\r\nIt seems, there is a problem.\r\nThe background-color of the pointer changes.\r\n\r\n[code:lxjsk26z]\n\noLbx20&#58;bLClicked &#58;= &#123; | nRow, nCol | ROW_POS6 &#58;= oLbx20&#58;nRowSel, ;\n SELCOLOR &#58;= NEW_SELCOL&#40;&#41;, ; // new selected color \n oLbx0&#58;SetBackGround&#40; &#41;, ; // tested erase background &#40; doesn't help &#41;\n oLbx0&#58;nRecSelColor &#58;= SELCOLOR, ; // new Color for record select\n oLbx0&#58;Refresh&#40;&#41; &#125;\n\n[/code:lxjsk26z]\r\n\r\n[img:lxjsk26z]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting5&#46;jpg[/img:lxjsk26z]\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "16:09", "topic": "A problem in xBrowse with => oBrw:nRecSelColor", "username": "ukoenig" } ]
A problem in xBrowse with => oBrw:nRecSelColor
[ { "date": "2008-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "As of now, we can not change it at runtime", "time": "16:14", "topic": "A problem in xBrowse with => oBrw:nRecSelColor", "username": "nageswaragunupudi" } ]
A problem in xBrowse with => oBrw:nRecSelColor
[ { "date": "2008-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank you very much,\r\n\r\nfor the moment i leave it like that.\r\nI hope, it works with BITMAPS and BRUSHES.\r\nIt is the next test.\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "16:18", "topic": "A problem in xBrowse with => oBrw:nRecSelColor", "username": "ukoenig" } ]
A problem in xBrowse with => oBrw:nRecSelColor
[ { "date": "2008-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\nIt seems, the complete Record-selector-part doesn't work at runtime.\r\nThe background-color is disabled and the old pointer is still visible.\r\n( It means, for folder-page-preview No. 5, i have to open a extra\r\npreview-dialog )\r\n\r\n[img:cl2r0zq8]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting6&#46;jpg[/img:cl2r0zq8]\r\n\r\n[code:cl2r0zq8]\n\n// Brush Select\n// ------------------\n\nREDEFINE BUTTONBMP oBtn40 ID 50 OF oFld&#58;aDialogs&#91;5&#93; ;\nACTION &#40; cFilter &#58;= \"BMP &#40;*&#46;bmp&#41;|*&#46;bmp|\" , ;\n cNewBITM &#58;= cGetFile32&#40; cFilter,\"Select a Picture\"&#41;, ;\n IIF&#40; empty&#40; cNewBITM &#41;, ;\n MsgAlert&#40; \"No file selected !\",\"ATTENTION\" &#41;, NIL &#41;, ;\n BRSELECT1 &#58;= cFileNoPath&#40; cNewBITM &#41;, oBRSELECT1&#58;Refresh&#40;&#41;, ;\n oLbx0&#58;hBrushRecSel&#40; BRSELECT1 &#41;, oLbx0&#58;Refresh&#40;&#41; &#41; ;\nBITMAP \"bitmap\" PROMPT \" &Brush\" TEXTRIGHT\noBtn40&#58;cToolTip = &#123; \"Select a \" + CRLF + \"xBrowse-Brush\", \"Brush-Select\", 1, CLR_BLACK, 14089979 &#125; \n\n[/code:cl2r0zq8]\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "16:57", "topic": "A problem in xBrowse with => oBrw:nRecSelColor", "username": "ukoenig" } ]
A problem in xBrowse with => oBrw:nRecSelColor
[ { "date": "2008-08-27", "forum": "FiveWin for Harbour/xHarbour", "text": "How i solved the problem :\r\n\r\nA copy of the original Browser is shown in a extra dialog.\r\nI think, nobody will change this at runtime in his application.\r\nIt is just for the tools. \r\n\r\nThat was the rest of the visual-part, i had to test. \r\nI couldn't find any other problems in xBrowse. \r\n\r\n[img:3740r8wv]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting7&#46;jpg[/img:3740r8wv]\r\n\r\nI tested BMP ( 15 x 15 with a red circle )\r\nIs there a special format to be used ?\r\nIt looks a bit funny.\r\n\r\noBmp5 := ReadBitmap( 0, BRSELECT2 ) // the Bitmap\r\noLbx0:hBmpRecSel( oBmp5 )\r\n\r\n[img:3740r8wv]http&#58;//www&#46;pflegeplus&#46;com/pictures/setting8&#46;jpg[/img:3740r8wv]\r\n\r\ni don't know why, but this didn't work\r\n\r\nDEFINE BRUSH oBrush5 FILE BRSELECT1 // the Brush\r\noLbx0:hBrushRecSel( oBrush5 )\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "17:33", "topic": "A problem in xBrowse with => oBrw:nRecSelColor", "username": "ukoenig" } ]
A problem in xBrowse with => oBrw:nRecSelColor
[ { "date": "2019-09-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI noticed a problem using xImage [color=#0000FF:19ydm99k]<[b:19ydm99k] save and paste [/b:19ydm99k]>[/color:19ydm99k]\npainting on a image and past as a new image from clipboard, the pen-color gets lost\nusing past in any other programs like word it works.\nI think nobody did any paintings on a image before to see the result.\n\n[color=#4000FF:19ydm99k][b:19ydm99k]paintings inside the original[/b:19ydm99k][/color:19ydm99k]\n\n[img:19ydm99k]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/XImg1&#46;jpg[/img:19ydm99k]\n\nThe result with white lines <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\n[img:19ydm99k]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/XImg2&#46;jpg[/img:19ydm99k]\n\n[b:19ydm99k][color=#0000FF:19ydm99k]paste in word or any other program like pixelformer works[/color:19ydm99k][/b:19ydm99k] <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\n[img:19ydm99k]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/XImg3&#46;jpg[/img:19ydm99k]\n\n[img:19ydm99k]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/draw3&#46;jpg[/img:19ydm99k]\n\nit seems to be something wrong in\n\n[b:19ydm99k]METHOD Save( lAsViewed, cFile, nQuality )\nMETHOD Paste()[/b:19ydm99k]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "10:47", "topic": "A problem saving linecolors ( new image ) with xImage", "username": "ukoenig" } ]
A problem saving linecolors ( new image ) with xImage
[ { "date": "2019-09-25", "forum": "FiveWin for Harbour/xHarbour", "text": "1) Try \"SaveAsViewed\" and save as bmp file.\n2) Can you post your code how are you drawing on the image?", "time": "16:06", "topic": "A problem saving linecolors ( new image ) with xImage", "username": "nageswaragunupudi" } ]
A problem saving linecolors ( new image ) with xImage
[ { "date": "2019-09-25", "forum": "FiveWin for Harbour/xHarbour", "text": "I used it otherwise the painting is not included\n\n[quote:1d5mmkv7]1) Try \"SaveAsViewed\" and save as bmp file.[/quote:1d5mmkv7]\n\nThe same usage but with a quality-difference\n\n// xImage\nDEFINE BUTTON OF oDlg:oBar PROMPT \"Save xImage\" CENTER ;\nACTION ( oImage1:Save( .T., c_path1 + \"EXPORT\\\" + \"SAVED1.JPG\", 100 ), ;\nMsgInfo( \"saved as saved1.jpg\" ) ) \n\n// TImage\nDEFINE BUTTON OF oDlg:oBar PROMPT \"Save Image\" CENTER ;\nACTION ( oImage2:SaveImage( c_path1 + \"EXPORT\\\" + \"SAVED2.JPG\", 2, 100 ), ;\nMsgInfo( \"saved as saved2.jpg\" ) ) \n\nWith the test it is possible to save with Timage or xImage\nthe EXE and PRG is included\n\nusage :\n1. with mouse-dblclick activate drawing\n2. with mouse-dblclick stop drawing\n3. after finish drawing select < new from clipboard >\nusing this button Your drawing is saved to the clipboard\nand painted inside a new dialog.\n4. next You can save the image with xImage or TImage\n5. View the saved image with < show image-export >.\n\nDownload\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/XIMG2.zip\">http://www.pflegeplus.com/DOWNLOADS/XIMG2.zip</a><!-- m -->\n\n[img:1d5mmkv7]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/xImg12&#46;jpg[/img:1d5mmkv7]\n\ncombination\nYou can switch between free draw and line from x to y\na line startposition is auto-connected to the end-position of free draw.\n\n[img:1d5mmkv7]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/xImg14&#46;jpg[/img:1d5mmkv7]\n\nloaded from clipboard\n\n[img:1d5mmkv7]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/xImg13&#46;jpg[/img:1d5mmkv7]\n\nsave-results\n\n1. save with xImage\n2. show saved file ( white lines )\n\n3. save with TImage\n4. show saved file ( OK )\n\n[img:1d5mmkv7]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/xImg15&#46;jpg[/img:1d5mmkv7]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "20:22", "topic": "A problem saving linecolors ( new image ) with xImage", "username": "ukoenig" } ]
A problem saving linecolors ( new image ) with xImage
[ { "date": "2015-11-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nbecause of many columns, I use [color=#0040FF:3t5u2w2l][b:3t5u2w2l]oBrw:GoRightMost() [/b:3t5u2w2l][/color:3t5u2w2l]on buttonaction to show the end-results.\nThe last column is not shown complete.\nNormal crolling shows the full size of the last column.\n\n[img:3t5u2w2l]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Rightmost&#46;jpg[/img:3t5u2w2l]\n\nany idea, to solve the problem ?\n\nbest regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "13:42", "topic": "A problem to display last column using oBrw:GoRightMost()", "username": "ukoenig" } ]
A problem to display last column using oBrw:GoRightMost()
[ { "date": "2015-11-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr Ukoenig,\n\nPerhaps, a workaround:\n\n[code=fw:il3yisox]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#define</span> GO_RIGHT_MOST <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">GoRightMost</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #0000ff;\">Right</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:il3yisox]\n\nRegards", "time": "13:50", "topic": "A problem to display last column using oBrw:GoRightMost()", "username": "hmpaquito" } ]
A problem to display last column using oBrw:GoRightMost()
[ { "date": "2015-11-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I added :\n\noBrw:GoRight() \n\nNO difference, only a part of the last column is shown.\n\nbest regards\nUwe <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->", "time": "14:00", "topic": "A problem to display last column using oBrw:GoRightMost()", "username": "ukoenig" } ]
A problem to display last column using oBrw:GoRightMost()
[ { "date": "2015-11-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok,\n\nNow try:\n\n[code=fw:3sv8x1ye]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#define</span> GO_RIGHT_MOST <span style=\"color: #000000;\">&#40;</span> oBrw:<span style=\"color: #000000;\">GoRightMost</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">GoLeft</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oBrw:<span style=\"color: #000000;\">GoRight</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:3sv8x1ye]", "time": "14:13", "topic": "A problem to display last column using oBrw:GoRightMost()", "username": "hmpaquito" } ]
A problem to display last column using oBrw:GoRightMost()
[ { "date": "2015-11-26", "forum": "FiveWin for Harbour/xHarbour", "text": "I found a solution :\n\nCOLUMNS { \"NACHNAME\", \"VORNAME\", \"RTYP\", ;\n\"KOST_RZH\", \"KOST_BEI\", \"KOST_PRI\", ;\n\"KRK\", \"KRX\", ;\n\"FK0\", \"PFX0\", \"PFK1\", \"PFX1\", \"PFK2\", \"PFX2\", \"PFK3\", \"PFX3\", ;\n\"B1X\", \"PBK\", \"PBX\", \"B2X\", ;\n\"PRA\", \"VPK\", \"VPX\", \"PRI\", \"BERG\", \"SUMME\", \"PKT_SUMME\", \"RECH_DATUM\", [color=#0000FF:9b7w0fw9]\"RECH_DATUM\"[/color:9b7w0fw9] } ;\n\nIt works with the last column defined twice and column-size 1\n\n[color=#008000:9b7w0fw9]oCol := oBrw1:oCol( \"RECH_DATUM\" )\noCol:bStrData\t\t:= { || (cMUmsName)->RECH_DATUM } \noCol:cHeader\t\t:= \"Erstellt\" \noCol:nWidth\t\t:= 90\noCol:nDataStrAlign := AL_CENTER\noCol:nHeadStrAlign := AL_CENTER[/color:9b7w0fw9]\n\n[color=#0000FF:9b7w0fw9]oCol := oBrw1:oCol( \"RECH_DATUM\" )\noCol:bStrData\t\t:= { || (cMUmsName)->RECH_DATUM } \noCol:cHeader\t\t:= \"\" \noCol:nWidth\t\t:= 1\noCol:nDataStrAlign := AL_CENTER\noCol:nHeadStrAlign := AL_CENTER[/color:9b7w0fw9]\n\n[img:9b7w0fw9]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Rightmost1&#46;jpg[/img:9b7w0fw9]\n\nmaybe any other solution ?\n\nbest regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "14:15", "topic": "A problem to display last column using oBrw:GoRightMost()", "username": "ukoenig" } ]
A problem to display last column using oBrw:GoRightMost()
[ { "date": "2015-11-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank You very much.\nThe solution with the combination works fine.\n\nThe GORIGHT - selection :\n\nREDEFINE BTNBMP oBtn3 OF oFld:aDialogs[ 1 ] ;\nID 302 PIXEL 2007 ;\nBORDER ;\nFILENAME c_Pfad1 + \"Rechts.Bmp\" ;\n[color=#0000FF:1538byon]ACTION ( oBrw1:GoRightMost(), oBrw1:GoLeft(), oBrw1:GoRight(), oBrw1:Refresh() ) ;[/color:1538byon]\nCENTER \n\nbest regards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "14:54", "topic": "A problem to display last column using oBrw:GoRightMost()", "username": "ukoenig" } ]
A problem to display last column using oBrw:GoRightMost()
[ { "date": "2015-11-26", "forum": "FiveWin for Harbour/xHarbour", "text": "you're welcome\n\nbest regards", "time": "15:30", "topic": "A problem to display last column using oBrw:GoRightMost()", "username": "hmpaquito" } ]
A problem to display last column using oBrw:GoRightMost()
[ { "date": "2015-02-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI noticed testing TOUCH.prg from /Samples\n\nDEFINE METROPANEL oMetro OF oWnd TITLE \"Finances\" ;\nCOLOR CLR_WHITE, CLR_BLUE\n\n[color=#FF0000:ddpy01l1][b:ddpy01l1]oMetro:lDesignMode := .T.\noMetro:nMetroTop = 250\noMetro:nMetroMargin = 100\noMetro:nBtnSize = 110\noMetro:nSliderTop = 170[/b:ddpy01l1][/color:ddpy01l1]\n\nDEFINE METROBUTTON oBtn OF oMetro LARGE ;\nGROUP 2 ;\nCOLOR CLR_BLUE, CLR_HGREEN ;\nCAPTION \"sample menu\" ;\nALIGN \"BOTTOMCENTER\" ;\nBODYTEXT \"This is;Multi-line;sample menu\" ;\n[color=#4000FF:ddpy01l1][b:ddpy01l1]MENU Touchmenu1(ometro)[/b:ddpy01l1][/color:ddpy01l1]\n\n----------- [color=#FF0000:ddpy01l1][b:ddpy01l1]all values of oMenu are used on oMetro as well !!! [/b:ddpy01l1][/color:ddpy01l1] -----------\n\nSTATIC function touchmenu1(ometro)\nLOCAL OBTN\nIF oMenu == nil\n\nDEFINE METROPANEL oMenu OF oWnd TITLE \"Menus.....\" COLOR CLR_WHITE, CLR_GREEN\n\n[color=#0000FF:ddpy01l1][b:ddpy01l1]oMenu:lDesignMode := .T.\noMenu:nMetroTop = 250\noMenu:nMetroMargin = 300\noMenu:nBtnSize = 50 \noMenu:nSliderTop = 270[/b:ddpy01l1][/color:ddpy01l1]\n...\n...\n\nis it possible, to define different sizes for oMetro and oMenu ?\n\nbest regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "21:25", "topic": "A problem using METRO Menu ?", "username": "ukoenig" } ]
A problem using METRO Menu ?
[ { "date": "2015-02-27", "forum": "FiveWin for Harbour/xHarbour", "text": "It is not possible because these are CLASSDATA of TMetroPanel class.", "time": "13:17", "topic": "A problem using METRO Menu ?", "username": "nageswaragunupudi" } ]
A problem using METRO Menu ?
[ { "date": "2015-02-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Mr. Rao,\n\nthank You very much for Your help.\n\nThe logic is working fine now and gives me the basics, to add the dialogs\n\nI noticed a problem on EXIT\n[color=#FF0000:mtdpna8j][b:mtdpna8j]ACTION oMetro:End()[/b:mtdpna8j][/color:mtdpna8j]\nThe buttons are not working anymore the second time. \n\nBetter using :\n[color=#0000FF:mtdpna8j][b:mtdpna8j]ACTION WINEXEC( \"RESTART MYEXEFILE.exe \" + Str( oWnd:hWnd ), 0 ) [/b:mtdpna8j][/color:mtdpna8j]\nRELAUNCHING the program with Daniel's C-function !!!\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=20477&p=109206&hilit=restart#p108559\">viewtopic.php?f=3&t=20477&p=109206&hilit=restart#p108559</a><!-- l -->\n\nbest regards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:05", "topic": "A problem using METRO Menu ?", "username": "ukoenig" } ]
A problem using METRO Menu ?
[ { "date": "2019-03-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI noticed a problem using < [color=#0000FF:2jtq88ht]oCtrl:cVarName [/color:2jtq88ht]> \nthat returns the object-name.\n\n[color=#0000FF:2jtq88ht][b:2jtq88ht]The function shows all infos of a object on focus[/b:2jtq88ht][/color:2jtq88ht]\n\n[img:2jtq88ht]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Focus2&#46;jpg[/img:2jtq88ht]\n\nbecause of the error ( NIL ) I replaced the info with ???\n\nOn TRADIO and TDATEPICK [color=#0000FF:2jtq88ht]::cVarName [/color:2jtq88ht]exists but returns NIL\nAll other controls are working.\n\nfrom :\nMETHOD cGenPRG( lDlgUnits ) CLASS [color=#0000FF:2jtq88ht]TDatePick[/color:2jtq88ht]\n...\n...\ncPrg += CRLF + \" @ \" + cTop + \", \" + cLeft + ;\n\" DTPICKER \" + ::cVarName + ' VAR ' + \"d\" + SubStr( [color=#0000FF:2jtq88ht]::cVarName[/color:2jtq88ht], 2 ) + ' ' + ;\n\" ;\" + CRLF + ' SIZE ' + cWidth + \", \" + cHeight + ;\n\" PIXEL OF \" + ::oWnd:cVarName + CRLF\n\nand from :\n\nMETHOD cGenPRG( lDlgUnits ) CLASS [color=#0000FF:2jtq88ht]TRadio[/color:2jtq88ht]\n...\n...\ncPrg += CRLF + \" @ \" + cTop + \", \" + cLeft + ;\n\" RADIOITEM \" + [color=#0000FF:2jtq88ht]::cVarName [/color:2jtq88ht]+ ' PROMPT \"' + ::cCaption + '\"' + ;\n\" ;\" + CRLF + ' SIZE ' + cWidth + \", \" + cHeight + ;\n\" PIXEL OF \" + ::oWnd:cVarName + \" ;\" + CRLF + ;\n' RADIOMENU ' + ::oRadMenu:cVarName + CRLF\n\n[code=fw:2jtq88ht]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />SetKey<span style=\"color: #000000;\">&#40;</span> VK_F2, <span style=\"color: #000000;\">&#123;</span> || OBJ_INFO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//--------- on FOCUS -------------------</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> OBJ_INFO<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oCtrl := oWndFromHwnd<span style=\"color: #000000;\">&#40;</span> GetFocus<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span>, aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span><br /><br />aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := oCtrl:<span style=\"color: #000000;\">cVarName</span><br /><span style=\"color: #00C800;\">IF</span> aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #00C800;\">NIL</span><br />    aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #ff0000;\">\"???\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br />aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>oCtrl:<span style=\"color: #000000;\">nTop</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <br />aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> := ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span> oCtrl:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span>  <br />aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> := ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span> oCtrl:<span style=\"color: #000000;\">nWidth</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br />aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>oCtrl:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">IF</span> oCtrl:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> = <span style=\"color: #ff0000;\">\"TRADIO\"</span> <span style=\"color: #B900B9;\">// to be calculated !</span><br />     <span style=\"color: #B900B9;\">//aCors[1] := oCtrl:oRadMenu:cVarName</span><br />     aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> := ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span> oCtrl:<span style=\"color: #000000;\">nTop</span> - ; <br />                      <span style=\"color: #000000;\">&#40;</span> oCtrl:<span style=\"color: #000000;\">nHeight</span> / <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />     aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> := ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>oCtrl:<span style=\"color: #000000;\">nHeight</span> * ;<br />                      LEN<span style=\"color: #000000;\">&#40;</span> oCtrl:<span style=\"color: #000000;\">oRadMenu</span>:<span style=\"color: #000000;\">aItems</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Dialog title : \"</span> + oCtrl:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + CRLF + ;<br /><span style=\"color: #ff0000;\">\"Dialog obj. : \"</span> + oCtrl:<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">cVarName</span> + CRLF + ;<br /><span style=\"color: #ff0000;\">\"Focused object : \"</span> + oCtrl:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + CRLF + ;<br /><span style=\"color: #ff0000;\">\"Called from: \"</span>+ ProcName<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> + CRLF + ;<br /><span style=\"color: #ff0000;\">\"ProcLine : \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span> ProcLine<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> + CRLF + CRLF + ;<br /><span style=\"color: #ff0000;\">\"Obj. name : \"</span> + aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> + CRLF + ; <br /><span style=\"color: #ff0000;\">\"Top :     \"</span> + aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span> + CRLF + ; <br /><span style=\"color: #ff0000;\">\"Left :     \"</span> + aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> + CRLF + ; <br /><span style=\"color: #ff0000;\">\"Width : \"</span>  + aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span> + CRLF + ;<br /><span style=\"color: #ff0000;\">\"Hight :  \"</span> + aCors<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">5</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span> <br /> </div>[/code:2jtq88ht]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "12:38", "topic": "A problem with < oCtrl:cVarName > from TRadio and TDatepick", "username": "ukoenig" } ]
A problem with < oCtrl:cVarName > from TRadio and TDatepick
[ { "date": "2017-10-23", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nTo define a area, I want to keep the SAY visible on top in DESIGN-mode \nbut < BringWindowToTop > doesn't help.\nMoving the SAY, it is shown behind all other objects.\n\n[img:xlf9rk83]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Cropped8&#46;jpg[/img:xlf9rk83]\n\nI can crop anything from the dialog with resize and image-format-export\n\n[img:xlf9rk83]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Cropped9&#46;jpg[/img:xlf9rk83]\n\na right mouseclick inside the dialog creates a transparent SAY in DESIGN-mode\n\nA short test without image ( NO extras needed )\nRight mouseclick. Next move the say to the browser-area.\n\n[code=fw:xlf9rk83]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> oDlg, nClicked := <span style=\"color: #000000;\">0</span>, oCSay <br /><span style=\"color: #00C800;\">STATIC</span> oFont1, oFont2 <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> oBrw, aArray := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, oGet, cGet := <span style=\"color: #ff0000;\">\"    \"</span>, oSay1<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont1  <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Tahoma\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-16</span> BOLD<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont2  <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Tahoma\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-12</span> BOLD<br /><br /><span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br />    aArray := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span>,<span style=\"color: #ff0000;\">\"four\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />        <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span>,<span style=\"color: #ff0000;\">\"four\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />        <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span>,<span style=\"color: #ff0000;\">\"four\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />        <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span>,<span style=\"color: #ff0000;\">\"four\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Crop-Sample\"</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">700</span>, <span style=\"color: #000000;\">600</span> TRUEPIXEL<br /><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">50</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">320</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />COLUMNS <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#125;</span> ;<br />HEADERS <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Btn Trans - 1\"</span>,<span style=\"color: #ff0000;\">\"Btn Trans - 2\"</span>,<span style=\"color: #ff0000;\">\"Header - 3\"</span>,<span style=\"color: #ff0000;\">\"Header - 4\"</span><span style=\"color: #000000;\">&#125;</span> ;<br />ARRAY aArray LINES CELL  <span style=\"color: #0000ff;\">PIXEL</span> <br />oBrw:<span style=\"color: #000000;\">nRowHeight</span> := <span style=\"color: #000000;\">25</span><br /><br />oBrw:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span>CLR_BLACK, CLR_CYAN <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />oBrw:<span style=\"color: #000000;\">CREATEFROMCODE</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Text..:\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span> <span style=\"color: #0000ff;\">FONT</span> oFont2 <span style=\"color: #0000ff;\">PIXEL</span><br />@ <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">250</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cGET <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"W/G\"</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@K\"</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />oDlg:<span style=\"color: #000000;\">bRClicked</span> := <span style=\"color: #000000;\">&#123;</span>| nRow, nCol | nClicked++, IIF<span style=\"color: #000000;\">&#40;</span> nClicked = <span style=\"color: #000000;\">1</span>, ;<br />                          MAKE_AREA<span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span>, MSG_AREA<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 <br /><br />oFont1:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oFont2:<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> MAKE_AREA<span style=\"color: #000000;\">&#40;</span> nRow, nCol <span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #B900B9;\">//New( nRow, nCol, bText, oWnd, cPicture, oFont,;</span><br /><span style=\"color: #B900B9;\">//               lCentered, lRight, lBorder, lPixels, nClrText, nClrBack,;</span><br /><span style=\"color: #B900B9;\">//               nWidth, nHeight, lDesign, lUpdate, lShaded, lBox, lRaised,;</span><br /><span style=\"color: #B900B9;\">//               lAdjust, cVarName, lUnicode, lVCenter ) CONSTRUCTOR</span><br /><br />oCSay := TSAY<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> nRow, nCol, <span style=\"color: #00C800;\">NIL</span>, oDlg, <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #00C800;\">NIL</span>,;<br />               <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #00C800;\">NIL</span>, .T., .T., <span style=\"color: #00C800;\">NIL</span>, <span style=\"color: #00C800;\">NIL</span>,;<br />               <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">150</span>, .T., .T., .T. <span style=\"color: #000000;\">&#41;</span> <br /><br />oCSay:<span style=\"color: #000000;\">lTransparent</span> := .T.<br />oCSay:<span style=\"color: #000000;\">bGet</span> := <span style=\"color: #00C800;\">nil</span><br />oCSay:<span style=\"color: #000000;\">lWantClick</span> := .T.<br />BringWindowToTop<span style=\"color: #000000;\">&#40;</span> oCSay:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span> <br />oCSay:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//------------------------------ </span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MSG_AREA<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />aRect := GETCLIENTRECT<span style=\"color: #000000;\">&#40;</span> oCSay:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />nTop :=  oCSay:<span style=\"color: #000000;\">nTop</span><br />nLeft := oCSay:<span style=\"color: #000000;\">nLeft</span><br />nBottom := aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span><br />nRight := aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><br /><br />oCSay:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />MsgAlert<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Top : \"</span> + STR<span style=\"color: #000000;\">&#40;</span>nTop<span style=\"color: #000000;\">&#41;</span> + CRLF + <span style=\"color: #ff0000;\">\"Left : \"</span> + STR<span style=\"color: #000000;\">&#40;</span>nLeft<span style=\"color: #000000;\">&#41;</span> + CRLF + <span style=\"color: #ff0000;\">\"Height : \"</span> + ;<br />           STR<span style=\"color: #000000;\">&#40;</span>nBottom<span style=\"color: #000000;\">&#41;</span> + CRLF + <span style=\"color: #ff0000;\">\"Width : \"</span> + STR<span style=\"color: #000000;\">&#40;</span>nRight<span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\"Selected area\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:xlf9rk83]\n\nany idea ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "19:18", "topic": "A problem with < BringWindowToTop >", "username": "ukoenig" } ]
A problem with < BringWindowToTop >
[ { "date": "2017-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nYour code is quite similar to FWH\\samples\\design.prg and design.prg does it right...\n\nI have been testing your example and can't understand why BringWindowToTop() is not working there", "time": "09:05", "topic": "A problem with < BringWindowToTop >", "username": "Antonio Linares" } ]
A problem with < BringWindowToTop >
[ { "date": "2017-10-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\n\nI only added some controls ( browser, say and get )to the original sample [color=#0040FF:2tat17hx]FWH\\samples\\design.prg[/color:2tat17hx]\nThe only control that stays on top in DESIGN-mode is the listbox ( but only getting the focus ).\nLoosing the focus, it is covered as well.\n\n[img:2tat17hx]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Design1&#46;jpg[/img:2tat17hx]\n\n[img:2tat17hx]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Design2&#46;jpg[/img:2tat17hx]\n\n[code=fw:2tat17hx]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// Dialogs designer</span><br /><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xBrowse.ch\"</span><br /><br /><span style=\"color: #00C800;\">static</span> oDlg, lDesign := .T.<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------//</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> oBrw, aArray := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span>, oGet, cGET := <span style=\"color: #ff0000;\">\"Test\"</span><br /><br /><span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br />    aArray := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />        <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />        <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span><span style=\"color: #000000;\">&#125;</span>,;<br />        <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"one\"</span>,<span style=\"color: #ff0000;\">\"two\"</span>,<span style=\"color: #ff0000;\">\"three\"</span><span style=\"color: #000000;\">&#125;</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Dialog designer\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">300</span> ;<br />      <span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">&#40;</span> WS_THICKFRAME, WS_SYSMENU <span style=\"color: #000000;\">&#41;</span><br /><br />   oDlg:<span style=\"color: #000000;\">cVarName</span> = <span style=\"color: #ff0000;\">\"oDlg\"</span><br /><br />@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">180</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"Text..:\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">255</span>  <span style=\"color: #0000ff;\">PIXEL</span><br />@ <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">180</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cGET <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"W/G\"</span> <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"@K\"</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />@ <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">130</span>, <span style=\"color: #000000;\">70</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />COLUMNS <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#125;</span> ;<br />HEADERS <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"Btn Trans - 1\"</span>,<span style=\"color: #ff0000;\">\"Btn Trans - 2\"</span>,<span style=\"color: #ff0000;\">\"Header - 3\"</span><span style=\"color: #000000;\">&#125;</span> ;<br />ARRAY aArray LINES CELL <span style=\"color: #0000ff;\">PIXEL</span>  <br />oBrw:<span style=\"color: #000000;\">nRowHeight</span> := <span style=\"color: #000000;\">25</span><br /><br />oBrw:<span style=\"color: #000000;\">bClrStd</span> := <span style=\"color: #000000;\">&#123;</span>|| <span style=\"color: #000000;\">&#123;</span>CLR_BLACK, CLR_CYAN <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />oBrw:<span style=\"color: #000000;\">CREATEFROMCODE</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span>  <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #B900B9;\">/* oDlg:nOpacity := 150,*/</span>  PlaceControl<span style=\"color: #000000;\">&#40;</span> oDlg <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lDesign, DrawGrid<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hWnd</span>, hDC, cPS, <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">&#41;</span>,<span style=\"color: #000000;\">&#41;</span> ;<br />      <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">RIGHT</span> <span style=\"color: #0000ff;\">CLICK</span> EditDialog<span style=\"color: #000000;\">&#40;</span> nRow, nCol, oDlg <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> </div>[/code:2tat17hx]\n\nregards\nUwe <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "11:21", "topic": "A problem with < BringWindowToTop >", "username": "ukoenig" } ]
A problem with < BringWindowToTop >
[ { "date": "2020-02-28", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear friends, I have a problem with the funcion GDIP_IMAGEFROMFILE(): normally it works fine but in one of my source code it just quit the program without messages or log files. I'm using it in this way:\n\n[code=fw:qcvcw7gp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">hImg = GDIP_IMAGEFROMFILE<span style=\"color: #000000;\">&#40;</span> cFile, .T., .T. <span style=\"color: #000000;\">&#41;</span></div>[/code:qcvcw7gp]\n\nIf I replace it with\n\n[code=fw:qcvcw7gp]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">hImg = PALBMPREAD<span style=\"color: #000000;\">&#40;</span> , cFile <span style=\"color: #000000;\">&#41;</span></div>[/code:qcvcw7gp]\n\nit works fine (only with BMP, of course).\n\nAny ideas?\n\nEMG", "time": "21:38", "topic": "A problem with GDIP_IMAGEFROMFILE() [Solved]", "username": "Enrico Maria Giordano" } ]
A problem with GDIP_IMAGEFROMFILE() [Solved]
[ { "date": "2020-02-29", "forum": "FiveWin for Harbour/xHarbour", "text": "We recommend using FW_ReadImage( nil, cAnyImageSource, [aSize], [lGDIP] ) --> aImage\n\nElements of aImage:\n{ hBitmap, hPalette, nBmpWidth, nBmpHeight, lAlpha, cName, lResource, cType, nZeroClr }\n\nDestroy with\nPalBmpFree( aImage )", "time": "01:02", "topic": "A problem with GDIP_IMAGEFROMFILE() [Solved]", "username": "nageswaragunupudi" } ]
A problem with GDIP_IMAGEFROMFILE() [Solved]
[ { "date": "2020-02-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Solved adding\n\n[code=fw:te2hk686]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">REQUEST GDIBMP</div>[/code:te2hk686]\n\nEMG", "time": "16:50", "topic": "A problem with GDIP_IMAGEFROMFILE() [Solved]", "username": "Enrico Maria Giordano" } ]
A problem with GDIP_IMAGEFROMFILE() [Solved]
[ { "date": "2017-11-09", "forum": "FiveWin for Harbour/xHarbour", "text": "I tested one of my old colorpicker-solutions.\nIt seems with my widescreen-monitor it doesn't work anymore ?\nThe cursor returns a wrong screenarea ( must return the color on mouseposition ).\nI remember with my old monitor 4:3 it was ok.\n\n[img:3jr6g5rx]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Getcurs1&#46;jpg[/img:3jr6g5rx]\n\nDEFINED\n\n[color=#0000FF:3jr6g5rx]local hDeskTop\t:= GETDC(0)\nlocal a\t\t:= GETCURSORPOS()\nlocal nColor\t:= GETPIXEL( hDeskTop, a[2], a[1] ) \n...\n...[/color:3jr6g5rx]\n\nany changes needed because of the monitor-resolution ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "13:04", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Look if this sample can be of any help:\n\n[code=fw:2yv2zo6k]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CLICK</span> DRAGDLG<span style=\"color: #000000;\">&#40;</span> oDlg <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> DRAGDLG<span style=\"color: #000000;\">&#40;</span> oDlg <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> aCoo := GETWNDRECT<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> aOrg := GETCURSORPOS<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> aPos<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">WHILE</span> GETKEYSTATE<span style=\"color: #000000;\">&#40;</span> VK_LBUTTON <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; aPos = GETCURSORPOS<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; MOVEWINDOW<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hWnd</span>, aCoo<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> + aPos<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> - aOrg<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>, aCoo<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> + aPos<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> - aOrg<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, , , .T. <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; SYSREFRESH<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">ENDDO</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2yv2zo6k]\n\nEMG", "time": "15:45", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "Enrico Maria Giordano" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nit is a test with a existing tool that worked before.\nThe problem is not the dialog it is the area of the mousecaption.\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=31155&p=180185&hilit=colorpicker#p180185\">viewtopic.php?f=3&t=31155&p=180185&hilit=colorpicker#p180185</a><!-- l -->\n\nDownload :\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/TestPick2.zip\">http://www.pflegeplus.com/DOWNLOADS/TestPick2.zip</a><!-- m -->\n\nregards\nUwe <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "16:36", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "I tested some samples like zoomer2.prg with the same wrong results\nThe cursor must return the cursor area but returns something else.\nMaybe < [color=#FF0000:1izfwtw3]GetCursorPos() [/color:1izfwtw3]> does not work ?\n\n[img:1izfwtw3]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Zoomer1&#46;jpg[/img:1izfwtw3]\n\n[b:1izfwtw3]From sample < zoomer2.prg >[/b:1izfwtw3]\n\n[color=#0000FF:1izfwtw3]FUNCTION getcolor(ownd,nzoom) \n\n local hDeskTop := GetDC(0) \n local a := GetCursorPos() \n local nColor := GetPixel( hDeskTop, a[2], a[1] ) \n local hDC := oWnd:GetDC() \n local nTop := 0 \n local nLeft := 0 \n local nWidth := 200 \n local nHeight := 200 \n\n StretchBlt( hDC, nLeft, nTop, nWidth, nHeight, hDeskTop, a[2]-(nWidth/(nZoom*2)), a[1]-(nHeight/(2*nZoom)), nWidth/nZoom, nHeight/nZoom, 13369376 ) \n\n oWnd:ReleaseDC() \n ReleaseDC( 0, hDeskTop ) \nRETURN nil [/color:1izfwtw3]\n\n[b:1izfwtw3]result of sample < Zoomer.prg >[/b:1izfwtw3]\nlike You can see, the cursorposition is different\n\n[img:1izfwtw3]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Zoomer2&#46;jpg[/img:1izfwtw3]\n\nany idea ? \n\nregards\nUwe <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "13:12", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Can we see a reduced, yet complete, sample of the problem, please?\n\nEMG", "time": "13:40", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "Enrico Maria Giordano" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nI used the [color=#0000FF:3sn9cdeg][b:3sn9cdeg]original FWH-samples [/b:3sn9cdeg][/color:3sn9cdeg] < zoomer.prg and zoomer2.prg > to show the results.\n\nregards\nUwe <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( -->", "time": "13:45", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "I just tried zoomer.prg and found it perfectly working.\n\nEMG", "time": "14:13", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "Enrico Maria Giordano" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nmaybe the problem is the selected screenresolution ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "14:22", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe\nWhat resolution use?\nWhat monitor ?", "time": "14:24", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nI found the reason :\nwith the monitor it is possible to define a [color=#0000FF:3co3rsue]RESIZE-factor[/color:3co3rsue]. \nNormally 100 % is used ( tested and that works !!! )\nBecause to get a bigger display I used [color=#FF0000:3co3rsue][b:3co3rsue]125 %[/b:3co3rsue][/color:3co3rsue]\nTHAT IS NOT SUPPORTED !\n\n[color=#0000FF:3co3rsue][b:3co3rsue]Monitor settings[/b:3co3rsue][/color:3co3rsue]\n\n[img:3co3rsue]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Screen1&#46;jpg[/img:3co3rsue]\n\nregards\nUwe", "time": "14:39", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, I assumed it was that\nIt happened to me when I developed the menus", "time": "14:45", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":3rrln1om]Cristobal,\n\ndo You think there is any solution\nto respect this setting and adjust the returnvalues of < GetCursorPos() > ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->[/quote:3rrln1om]\n\nIt's possible with DPI SCaling, but developing a function may be complicated to adjust\n\nDPI Scaling Level\nValue data\nSmaller 100% (default)\t96\nMedium 125%\t120\nLarger 150%\t144\nExtra Large 200%\t192\nCustom 250%\t240\nCustom 300%\t288\nCustom 400%\t384\nCustom 500%\t480\n\nThis value think is into register windows", "time": "15:10", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\ndo You think there is any solution\nto respect this setting and adjust the returnvalues of < GetCursorPos() > ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "15:03", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "I found this\n\nHKEY_CURRENT_USER\\Control Panel\\Desktop\\WindowMetrics\n\nBut this is better\n\n[code=fw:orhv3u3e]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#define</span> LOGPIXELSX &nbsp; &nbsp;<span style=\"color: #000000;\">88</span><br /><span style=\"color: #00D7D7;\">#define</span> LOGPIXELSY &nbsp; &nbsp;<span style=\"color: #000000;\">90</span><br /><br /><span style=\"color: #00C800;\">Function</span> GetLogPixels<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hDCM &nbsp; &nbsp; := oMWnd:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;? GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDCM, LOGPIXELSX <span style=\"color: #000000;\">&#41;</span>, GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDCM, LOGPIXELSY <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;oMWnd:<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> <span style=\"color: #00C800;\">nil</span><br /><br /><br />&nbsp;</div>[/code:orhv3u3e]", "time": "15:28", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "And for know zoom active\n\n[code=fw:1p3ivoou]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#define</span> LOGPIXELSX    <span style=\"color: #000000;\">88</span><br /><span style=\"color: #00D7D7;\">#define</span> LOGPIXELSY    <span style=\"color: #000000;\">90</span><br /><span style=\"color: #00D7D7;\">#define</span> ASPECTX                     <span style=\"color: #000000;\">40</span><br /><span style=\"color: #00D7D7;\">#define</span> ASPECTY                     <span style=\"color: #000000;\">42</span><br /><span style=\"color: #00D7D7;\">#define</span> ASPECTXY                    <span style=\"color: #000000;\">44</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> GetLogPixels<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">local</span> hDCM     := oMWnd:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   ? GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDCM, LOGPIXELSX <span style=\"color: #000000;\">&#41;</span>, GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDCM, LOGPIXELSY <span style=\"color: #000000;\">&#41;</span>, ;<br />     GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDCM, ASPECTX <span style=\"color: #000000;\">&#41;</span>, GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDCM, ASPECTY <span style=\"color: #000000;\">&#41;</span><br />   ? GetScaleFactorForDevice<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />   oMWnd:<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> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />DLL32 <span style=\"color: #00C800;\">FUNCTION</span> GetScaleFactorForDevice<span style=\"color: #000000;\">&#40;</span> deviceType AS DWORD <span style=\"color: #000000;\">&#41;</span> AS LONG PASCAL LIB <span style=\"color: #ff0000;\">\"Shcore.dll\"</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:1p3ivoou]\n\nAnd I do not know if this function performs the coordinate conversion correctly\n\n[code=fw:1p3ivoou]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> AdjustPos<span style=\"color: #000000;\">&#40;</span> aPoint <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nZoom &nbsp;:= GetScaleFactorForDevice<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nPorc &nbsp;:= nZoom / <span style=\"color: #000000;\">96</span><br />&nbsp; &nbsp;aPoint<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> &nbsp;:= <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> aPoint<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> / nPorc, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;aPoint<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> &nbsp;:= <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> aPoint<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> / nPorc, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> aPoint<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:1p3ivoou]", "time": "16:02", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-13", "forum": "FiveWin for Harbour/xHarbour", "text": "And generic function for calculate, please test it and tell me\n\n[code=fw:vql5vct1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #B900B9;\">// Calculate nZoom and/or DPIs</span><br /><span style=\"color: #00C800;\">Function</span> CalcZoom<span style=\"color: #000000;\">&#40;</span> oWnd <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #B900B9;\">// { nZoom, DPIs }</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> aZooms := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">096</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">115</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">120</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">140</span>, <span style=\"color: #000000;\">134</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">144</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">154</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">180</span>, <span style=\"color: #000000;\">173</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">192</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">225</span>, <span style=\"color: #000000;\">216</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">240</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">288</span> <span style=\"color: #000000;\">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">384</span> <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">480</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nZoom<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nDPIs &nbsp; &nbsp;:= <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nPos &nbsp; &nbsp; := <span style=\"color: #000000;\">0</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> hDCM &nbsp; &nbsp; := oWnd:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nLogX &nbsp; &nbsp;:= GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDCM, LOGPIXELSX <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> nLogY &nbsp; &nbsp;:= GetDeviceCaps<span style=\"color: #000000;\">&#40;</span> hDCM, LOGPIXELSY <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;nPos &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := AsCan<span style=\"color: #000000;\">&#40;</span> aZooms, <span style=\"color: #000000;\">&#123;</span> | a | a<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> == nLogX <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> nPos <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Not found in array predefined modes</span><br />&nbsp; &nbsp; &nbsp; nDPIs &nbsp; &nbsp; &nbsp; := <span style=\"color: #000000;\">96</span> &nbsp;+ <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> nLogX * <span style=\"color: #000000;\">24</span> / <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; nZoom &nbsp; &nbsp; &nbsp; := <span style=\"color: #0000ff;\">Round</span><span style=\"color: #000000;\">&#40;</span> nDPIs * <span style=\"color: #000000;\">100</span> / <span style=\"color: #000000;\">96</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #B900B9;\">// Found in array predefined modes</span><br />&nbsp; &nbsp; &nbsp; nDPis &nbsp; &nbsp; &nbsp; := nLogX<br />&nbsp; &nbsp; &nbsp; nZoom &nbsp; &nbsp; &nbsp; := aZooms<span style=\"color: #000000;\">&#91;</span> nPos <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #000000;\">&#123;</span> nZoom, nDPIs <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br />&nbsp;</div>[/code:vql5vct1]", "time": "17:06", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nall tests are using\n\n[color=#0000FF:dhorgvil]FUNCTION GETCOLOR()\nlocal hDeskTop\t:= GETDC(0)\nlocal a\t\t:= GETCURSORPOS()\nlocal nColor\t:= GETPIXEL( hDeskTop, a[2], a[1] ) \nlocal hDC\t\t:= oDlg:GETDC()\nlocal hPen\t\t:= CREATEPEN( PS_SOLID, 1.5, CLR_HRED )\nlocal hOldPen\nlocal nTop, nLeft\nlocal nWidth, nHeight[/color:dhorgvil]\n\nIsn't it possible to modify the function [color=#0000FF:dhorgvil]GETCURSORPOS()[/color:dhorgvil]\nto show the correct cursorposition-area ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "18:32", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-14", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, that should be the next step, but I need if you can prove it right\nOk?", "time": "18:33", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal\n\nI adjusted the top / left values of < GETCURSORPOS() > \nwith a factor [color=#FF0000:3excx0mm]1.25[/color:3excx0mm] -> 1920 x 1080 of 125 % zoom\nlinear with a factor [color=#FF0000:3excx0mm]1.5[/color:3excx0mm] -> 1920 x 1080 of 150 % zoom\nI tested all monitor areas with perfect results.\nmaybe we doen't need any complicted calculations and can work with a fixed factor ?\n\nother resolution with a factor [color=#FF0000:3excx0mm]1.25[/color:3excx0mm] -> 1600 x 900 of 125 % zoom works as well.\n\nit means only 2 possible adjustments are needed : factor 1,25 for 125 % zoom and 1.5 if 150 % zoom is used.\n\nI tested :\nnZoom := GetScaleFactorForDevice( 0 )\nMsgAlert( nZoom, \"Zoom-factor\" ) > returns 100 % ( 125 % is needed )\nIs there maybe another function or calculation ?\nYour function -> CalcZoom() also doesn't return 125 %\n\n[img:3excx0mm]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Colorpick14&#46;jpg[/img:3excx0mm]\n\nFUNCTION GETCOLOR()\nlocal hDeskTop\t:= GETDC(0)\nlocal a\t\t:= GETCURSORPOS()\n//\t\t\t\t\t\t\t Left Top\nlocal nColor\t:= GETPIXEL( hDeskTop, a[2] * [color=#FF0000:3excx0mm]1.25[/color:3excx0mm], a[1] * [color=#FF0000:3excx0mm]1.25[/color:3excx0mm] ) \nlocal hDC\t\t:= oDlgChild:GETDC()\nlocal hPen\t\t:= CREATEPEN( PS_SOLID, 1.5, CLR_HRED )\nlocal hOldPen\nlocal nTop, nLeft\nlocal nWidth, nHeight\n\nnTop := 5 \nnLeft := 5 \nnWidth := 90\nnHeight := 90\n\nMOVETO( hDC, nLeft-1, nTop-1)\nLINETO( hDC, nLeft + nWidth+1, nTop-1 )\nLINETO( hDC, nLeft + nWidth+1, nTop+nHeight+1 )\nLINETO( hDC, nLeft -1, nTop+nHeight+1 )\nLINETO( hDC, nLeft-1, nTop-1)\n\nSTRETCHBLT( hDC, nLeft, nTop, nWidth, nHeight, hDeskTop, ;\n a[2] * [color=#FF0000:3excx0mm]1.25 [/color:3excx0mm]-(nWidth/(nZoom*2)), a[1] * [color=#FF0000:3excx0mm]1.25 [/color:3excx0mm]-(nHeight/(2*nZoom)), ;\n\t\t\t nWidth/nZoom, nHeight/nZoom, 13369376 )\n...\n...\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "20:16", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe, run OK with all factor zoom and all resolutions ? ( 125% is 1.25 )", "time": "21:12", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal\n\nother resolution with a factor 1.25 -> 1600 x 900 with 125 % zoom I tested and works as well !!\nI think there is not much to do, we only have to define the selected zoom-factor.\nof the possible selection of [color=#0040FF:6xkf32nf]100, 125, 150 or 175 [/color:6xkf32nf]( zoom )\n\nregards\nUwe", "time": "21:18", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":3hhmlvgy]Cristobal\n\nother resolution with a factor 1.25 -> 1600 x 900 with 125 % zoom I tested and works as well !!\n\nit is only the possible selection of [color=#0040FF:3hhmlvgy]100, 125, 150 or 175 [/color:3hhmlvgy]( zoom )\n\nregards\nUwe[/quote:3hhmlvgy]\n\nAnd with zoom different to 125 run OK also?", "time": "21:20", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Christobal,\n\nwindows offers only these 4 values from a list\nI found only 125 % is making sense to get bigger symbols visible on the desktop\n\n[img:1qk887h1]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Zoom10&#46;jpg[/img:1qk887h1]\n\nregards\nUwe", "time": "21:27", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, I know this, but \n\nYou are used 1.25 number for adjust\nYou are tested with zoom selected 175 ?", "time": "21:29", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "cnavarro" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2017-11-18", "forum": "FiveWin for Harbour/xHarbour", "text": "Christobal,\n\n175 % tested and works as well ( but to big )\n\n[img:32xfivaz]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Zoom11&#46;jpg[/img:32xfivaz]\n\nThere is also a function for monitor\n\n[color=#0000FF:32xfivaz]STDAPI GetScaleFactorForMonitor(\n _In_ HMONITOR hMon,\n _Out_ DEVICE_SCALE_FACTOR *pScale\n);[/color:32xfivaz]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "21:40", "topic": "A problem with GETCURSORPOS() and widescreen-monitor ?", "username": "ukoenig" } ]
A problem with GETCURSORPOS() and widescreen-monitor ?
[ { "date": "2010-01-28", "forum": "FiveWin for Harbour/xHarbour", "text": "In the sample gradbrus.prg, please try to click on \"First\" button, then on \"Another\" button and then close and reopen the second dialog many times. Now move the second dialog over the first. You will see that the first dialog is now painted with robbish.\n\nAny hint on how to fix this behavior?\n\nEMG", "time": "17:37", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "A reduced sample of the problem. Just click on the button and move the second dialog over the first. You will see the problem:\n\n[code=fw:3gxslcoc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> hDC, hBmp, hBmpOld<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hDC = CREATECOMPATIBLEDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hBmp = CREATECOMPATIBLEBITMAP<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hBmpOld = SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; GRADIENTFILL<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; DELETEOBJECT<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> = CREATEPATTERNBRUSH<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; DELETEDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<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;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:3gxslcoc]\n\nEMG", "time": "09:57", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear EMG,\n\nI tested your sample code but I did not experience the problem which you have explained. For me it is working fine.\n\nI am using Vista Business, FWH 9.08.\n\nRegards\nAnser", "time": "10:25", "topic": "A problem with GradientBrush()", "username": "anserkk" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "So the problem is at least under XP.\n\nEMG", "time": "10:27", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:2mw42t9n]So the problem is at least under XP.[/quote:2mw42t9n]\n\nor with the recent versions of FWH ( after 9.08 )\n\nAnser", "time": "10:36", "topic": "A problem with GradientBrush()", "username": "anserkk" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes. I'm using 9.12.\n\nEMG", "time": "10:37", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "This is a workaround:\n\n[code=fw:3fdspgcd]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bLostFocus</span> = <span style=\"color: #000000;\">&#123;</span> || oDlg:<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 />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">&#40;</span> WM_PAINT <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> hDC, hBmp, hBmpOld<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hDC = CREATECOMPATIBLEDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hBmp = CREATECOMPATIBLEBITMAP<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hBmpOld = SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; GRADIENTFILL<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; DELETEOBJECT<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> = CREATEPATTERNBRUSH<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; DELETEDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<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;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:3fdspgcd]\n\nAny better ideas?\n\nEMG", "time": "11:11", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Even worst. In the following sample, try to move the second dialog and you will see that the first dialog is painted:\n\n[code=fw:6er1mxv1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">&#40;</span> WM_PAINT <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> hDC, hBmp, hBmpOld<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hDC = CREATECOMPATIBLEDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hBmp = CREATECOMPATIBLEBITMAP<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hBmpOld = SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; GRADIENTFILL<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; DELETEOBJECT<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> = CREATEPATTERNBRUSH<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; DELETEDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oDlg:<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;\">ENDIF</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:6er1mxv1]\n\nEMG", "time": "11:23", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "It looks like the gradient technique is currently not usable. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG", "time": "11:24", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-29", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nlike Anser, I use Vista as well.\nI call the Gradient-painting ON INIT using Function GRADIENTBRUSH\n\nPushing the < Test-button >, opens Dialog 2\n[img:2yb4cb8f]http&#58;//www&#46;pflegeplus&#46;com/pictures/move5&#46;jpg[/img:2yb4cb8f]\n\nUsing a 2. Dialog, moving over Dialog 1\n[img:2yb4cb8f]http&#58;//www&#46;pflegeplus&#46;com/pictures/move6&#46;jpg[/img:2yb4cb8f]\n\nIt is not a XP-problem. Maybe a change in Function < GRADIENTBRUSH > needed ?\n\n[code=fw:2yb4cb8f]<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> oDlg1<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1<br /><br />@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />           <span style=\"color: #0000ff;\">ACTION</span> TEST<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> oDlg1 <span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> GRADBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg1, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">14198567</span>, <span style=\"color: #000000;\">16117445</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, .T. <span style=\"color: #000000;\">&#41;</span>, ;<br />                 oDlg1:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">110</span>, <span style=\"color: #000000;\">460</span>, <span style=\"color: #000000;\">430</span>, <span style=\"color: #000000;\">215</span>, .f. <span style=\"color: #000000;\">&#41;</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> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlg2<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg2<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg2 <span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">&#40;</span> GRADBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg2, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">16117445</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, .T. <span style=\"color: #000000;\">&#41;</span>, ;<br />                 oDlg2:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">430</span>, <span style=\"color: #000000;\">215</span>, .f. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />*<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg2:<span style=\"color: #000000;\">SendMsg</span><span style=\"color: #000000;\">&#40;</span> WM_PAINT <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> GradBrush<span style=\"color: #000000;\">&#40;</span> oDlg, aColors, lPos <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> hDC, hBmp, hBmpOld, oBrush<br /><br /><span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />      hDC = CreateCompatibleDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />      hBmp = CreateCompatibleBitMap<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />      hBmpOld = SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />      GradientFill<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors, lPos <span style=\"color: #000000;\">&#41;</span><br />      DeleteObject<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />      oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />      oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> = CreatePatternBrush<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span> <br />      SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />      oDlg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">endif</span>   <br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:2yb4cb8f]\n\nA working Solution using [color=#FF0000:2yb4cb8f]ON PAINT [/color:2yb4cb8f]only with [color=#FF0000:2yb4cb8f]GradientFill[/color:2yb4cb8f] :\n( GRADIENTBRUSH was created, to solve the Transparent-Problem )\n[img:2yb4cb8f]http&#58;//www&#46;pflegeplus&#46;com/pictures/move7&#46;jpg[/img:2yb4cb8f]\n\n[code=fw:2yb4cb8f]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00C800;\">Static</span> hDC<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> oDlg1<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg1<br /><br />@ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />           <span style=\"color: #0000ff;\">ACTION</span> TEST<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> oDlg1 ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span>  DLG_GRAD<span style=\"color: #000000;\">&#40;</span> hDC, oDlg1, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">14198567</span>, <span style=\"color: #000000;\">16117445</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, .T. <span style=\"color: #000000;\">&#41;</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg1:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">110</span>, <span style=\"color: #000000;\">460</span>, <span style=\"color: #000000;\">430</span>, <span style=\"color: #000000;\">215</span>, .f. <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> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oDlg2<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg2<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg2 <span style=\"color: #0000ff;\">CENTER</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">PAINT</span> DLG_GRAD<span style=\"color: #000000;\">&#40;</span> hDC, oDlg2, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">16117445</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span>, .T. <span style=\"color: #000000;\">&#41;</span> ;<br /><span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg2:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">430</span>, <span style=\"color: #000000;\">215</span>, .f. <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;\">// --------------  GRADIENT --------------------</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> DLG_GRAD<span style=\"color: #000000;\">&#40;</span> hDC, oDlg, aGrad, lPos <span style=\"color: #000000;\">&#41;</span><br /><br />GradientFill<span style=\"color: #000000;\">&#40;</span> hDC,  <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aGrad, lPos <span style=\"color: #000000;\">&#41;</span><br /><br />RELEASEDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:2yb4cb8f]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "12:58", "topic": "A problem with GradientBrush()", "username": "ukoenig" } ]
A problem with GradientBrush()
[ { "date": "2010-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "This seems to work fine but the checkbox is not transparent. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( --> Why?\n\n[code=fw:2cpm3fg2]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> lVar := .F.<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TRANSPARENT<br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; @ <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">CHECKBOX</span> lVar<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #000000;\">oBrush</span> := GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TRANSPARENT<br /><br />&nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #000000;\">oBrush</span> := GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0000ff;\">CENTER</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">LOCAL</span> hDC, hBmp, hBmpOld, oBrush<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; hDC = CREATECOMPATIBLEDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; hBmp = CREATECOMPATIBLEBITMAP<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; hBmpOld = SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; GRADIENTFILL<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; oBrush = TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span> , , , , hBmp <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <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; oDlg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">RETURN</span> oBrush</div>[/code:2cpm3fg2]\n\nEMG", "time": "18:11", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nthe transparent-painting for the checkbox works,\nbut uses a wrong gradient ( from top )\n\nwith same colors ( no gradient ) :\nGRADIENTBRUSH( oDlg1, { { 1, RGB( 103, 154, 194 ), RGB( 103, 154, 194 ) } } )\n[img:2oe7zcgg]http&#58;//www&#46;pflegeplus&#46;com/pictures/tr1&#46;jpg[/img:2oe7zcgg]\n\nMoving the checkbox to Dialog-Top-position :\nGRADIENTBRUSH( oDlg1, { { 1, RGB( 216, 230, 238 ), RGB( 103, 154, 194 ) } } )\n[img:2oe7zcgg]http&#58;//www&#46;pflegeplus&#46;com/pictures/tr2&#46;jpg[/img:2oe7zcgg]\n\nto solve this problem, I used only the checkbox-square and a extra text.\n[img:2oe7zcgg]http&#58;//www&#46;pflegeplus&#46;com/pictures/tr3&#46;jpg[/img:2oe7zcgg]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "18:59", "topic": "A problem with GradientBrush()", "username": "ukoenig" } ]
A problem with GradientBrush()
[ { "date": "2010-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":2vierfdi]to solve this problem, I used only the checkbox-square and a extra text.[/quote:2vierfdi]\n\nIt doesn't solve the problem because also the radio buttons are not transparent. <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG", "time": "20:06", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-30", "forum": "FiveWin for Harbour/xHarbour", "text": "This is one more sample that unfortunately still shows the first problem I reported:\n\n[code=fw:191t3wxc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />    <span style=\"color: #00C800;\">LOCAL</span> lVar := .F.<br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />           TRANSPARENT<br /><br />    @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />           <span style=\"color: #0000ff;\">ACTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    @ <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">CHECKBOX</span> lVar<br /><br />    oDlg:<span style=\"color: #000000;\">oBrush</span> = TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />             <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />             <span style=\"color: #0000ff;\">CENTER</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />           TRANSPARENT<br /><br />    oDlg:<span style=\"color: #000000;\">oBrush</span> = TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />             <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />             <span style=\"color: #0000ff;\">CENTER</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> hDC, hBmp, hBmpOld<br /><br />    hDC = CREATECOMPATIBLEDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    hBmp = CREATECOMPATIBLEBITMAP<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    hBmpOld = SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br /><br />    GRADIENTFILL<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />    DELETEOBJECT<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />    oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span>  = CREATEPATTERNBRUSH<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span><br /><br />    SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br /><br />    DELETEDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br /><br />    oDlg:<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> <span style=\"color: #00C800;\">NIL</span></div>[/code:191t3wxc]\n\nEMG", "time": "20:09", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-01-31", "forum": "FiveWin for Harbour/xHarbour", "text": "Solution for the first sample posted.\n( I have set another gradient brush to the second dialog also.)\n\n[code=fw:172gzyr1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBrush  <span style=\"color: #B900B9;\">// added oBrush</span><br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush   <span style=\"color: #B900B9;\">// inserted</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br />    @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Test\"</span>;<br />           <span style=\"color: #0000ff;\">ACTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />             <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />             <span style=\"color: #0000ff;\">CENTER</span><br /><br />    <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #B900B9;\">// inserted</span><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TEST<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oDlg, oBrush<br />  <br />    <span style=\"color: #B900B9;\">// gradient brush for this dialog also</span><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush  <br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />             <span style=\"color: #0000ff;\">CENTER</span> ;<br />             <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, CLR_RED, CLR_WHITE <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br /><br /><br />    <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> hDC, hBmp, hBmpOld<br /><br />    <span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> <span style=\"color: #000000;\">&#41;</span><br />        hDC = CREATECOMPATIBLEDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />        hBmp = CREATECOMPATIBLEBITMAP<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br />        hBmpOld = SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br />        GRADIENTFILL<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors <span style=\"color: #000000;\">&#41;</span><br />        DELETEOBJECT<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br />        oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />        oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> = CREATEPATTERNBRUSH<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span><br />        oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">cBmpfile</span> = LTrim<span style=\"color: #000000;\">&#40;</span> Str<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// inserted to trick the aBrushes behavior</span><br />        SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br />        DELETEDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br />        oDlg:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">ENDIF</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:172gzyr1]", "time": "01:58", "topic": "A problem with GradientBrush()", "username": "nageswaragunupudi" } ]
A problem with GradientBrush()
[ { "date": "2010-01-31", "forum": "FiveWin for Harbour/xHarbour", "text": "You da man!!! Many many thanks!\n\nEMG", "time": "10:19", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "It would seem that we now need to move these changes into TDialog so one doesn't have to write code for each dialog using a brush.\n\nRegards,\nJames", "time": "18:23", "topic": "A problem with GradientBrush()", "username": "James Bott" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nMany thanks! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nLets see if we can migrate those changes into FWH classes", "time": "21:55", "topic": "A problem with GradientBrush()", "username": "Antonio Linares" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nYour examples on Windows 7 work fine\n\nGoing to test them on XP...", "time": "22:38", "topic": "A problem with GradientBrush()", "username": "Antonio Linares" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nStatements like these should not be used:\n\n[code=fw:20tyqe6a]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oDlg:<span style=\"color: #000000;\">oBrush</span> = TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span></div>[/code:20tyqe6a]\n\nbecause the above does not respect the FWH brushes reuse implementation. \nInstead, method oWnd:SetBrush( oBrush ) should be used.", "time": "23:06", "topic": "A problem with GradientBrush()", "username": "Antonio Linares" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Can I use\n\n[code=fw:3d1625vv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:3d1625vv]\n\n?\n\nEMG", "time": "23:09", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nI'm still testing as well the Gradients and Brushes.\nI need a working example to adjust a Brush to Dialog-Size ( a Image is used ).\nI don't know what's wrong, but anyway, i don't get it working.\nThe results don't look as aspected.\n\n// a. Now any image file ( jpg, png, etc. ) can be used to create a Brush.\n// b. Brush can also be created from a bitmap handle by \n// specifying the handle as the fifth parameter of TBrush():New() method.\n\nmust be used like :\nTBrush():New( nil, nil, nil, nil, [color=#FF0000:3q0das35]hBmp[/color:3q0das35] )\n\nDo You have a working example for this ?\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "23:45", "topic": "A problem with GradientBrush()", "username": "ukoenig" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes, all my samples now work fine with Rao change.\n\nEMG", "time": "23:51", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "One more problem. How can I get transparent controls (ie. the SAY in the following sample) and [b:3b8eist1]not[/b:3b8eist1] transparent image control at the same time?\n\n[code=fw:3b8eist1]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Fivewin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Image.ch\"</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> MAIN<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> oDlg<br /><br />    <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />           TRANSPARENT<br /><br />    @ <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">SAY</span> <span style=\"color: #ff0000;\">\"This is a test\"</span><br /><br />    @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">IMAGE</span>;<br />           <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">50</span>;<br />           FILE <span style=\"color: #ff0000;\">\"e:<span style=\"color: #000000;\">\\f</span>wharbour<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\s</span>elect.bmp\"</span>;<br />           NOBORDER <span style=\"color: #0000ff;\">ADJUST</span><br /><br />    oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg;<br />             <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">216</span>, <span style=\"color: #000000;\">230</span>, <span style=\"color: #000000;\">238</span> <span style=\"color: #000000;\">&#41;</span>, RGB<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">103</span>, <span style=\"color: #000000;\">154</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#41;</span>;<br />             <span style=\"color: #0000ff;\">CENTER</span><br /><br />    <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GRADIENTBRUSH<span style=\"color: #000000;\">&#40;</span> oDlg, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #00C800;\">LOCAL</span> hDC, hBmp, hBmpOld<br /><br />    hDC = CREATECOMPATIBLEDC<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    hBmp = CREATECOMPATIBLEBITMAP<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">hDC</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, oDlg:<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    hBmpOld = SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br /><br />    GRADIENTFILL<span style=\"color: #000000;\">&#40;</span> hDC, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, oDlg:<span style=\"color: #000000;\">nHeight</span>, oDlg:<span style=\"color: #000000;\">nWidth</span>, aColors <span style=\"color: #000000;\">&#41;</span><br /><br />    DELETEOBJECT<span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">&#41;</span><br /><br />    oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBitmap</span> = hBmp<br />    oDlg:<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span>  = CREATEPATTERNBRUSH<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span><br /><br />    SELECTOBJECT<span style=\"color: #000000;\">&#40;</span> hDC, hBmpOld <span style=\"color: #000000;\">&#41;</span><br /><br />    DELETEDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br /><br />    oDlg:<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> <span style=\"color: #00C800;\">NIL</span></div>[/code:3b8eist1]\n\nEMG", "time": "23:53", "topic": "A problem with GradientBrush()", "username": "Enrico Maria Giordano" } ]
A problem with GradientBrush()
[ { "date": "2010-02-01", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico,\n\nYes, you can use:\n[code=fw:2f746siu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2f746siu]\nbut never use:\n[code=fw:2f746siu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oDlg:<span style=\"color: #000000;\">oBrush</span> = TBrush<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:2f746siu]\nbecause this way the brush \"counter\" does not get incremented.", "time": "23:54", "topic": "A problem with GradientBrush()", "username": "Antonio Linares" } ]
A problem with GradientBrush()