messages
listlengths
1
1
topic
stringlengths
2
60
[ { "date": "2008-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\r\n\r\nIt was just moved to the utilities section of these forums, as it is not specifically related to FiveWin programming.", "time": "11:49", "topic": "A reason, a existing post is -moved- ?", "username": "Antonio Linares" } ]
A reason, a existing post is -moved- ?
[ { "date": "2008-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Antonio,\r\n\r\nthank you very much for the information.\r\nIn the future, i will consider this.\r\n\r\nA question : \r\nIn the moment, i'm busy to create a source-generator.\r\nYou get a complete basic-structure of : \r\nMDI, handling of dialogs and folders, Buttonbars and browsers \r\nwith all color-settings and so on.\r\nAll tools like creating Backgrounds for windows / dialog, xBrowse,\r\nButtonbars, dialog-titles will be included in just 1 Application.\r\nThe settings of the different selections are stored in a database\r\n( each record will be a project like in the xbrowse-tools )\r\nThere will be a part for selecting folder-colors / brushes added as well.\r\n\r\nThis application is a mixture of tool and programming.\r\nWhere must i put it, when it is finished ?\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "11:56", "topic": "A reason, a existing post is -moved- ?", "username": "ukoenig" } ]
A reason, a existing post is -moved- ?
[ { "date": "2008-10-20", "forum": "FiveWin for Harbour/xHarbour", "text": "FiveWin related questions, source code, specific utilities, etc. are fine in this section.\r\n\r\nGeneric utilities are for the utilities section\r\n\r\nOff Topic is for Off Topic issues <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "12:39", "topic": "A reason, a existing post is -moved- ?", "username": "Antonio Linares" } ]
A reason, a existing post is -moved- ?
[ { "date": "2013-08-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI need a REPORT-sample of a Image-list with MEMOS.\nThe images are adjusted to a given width ( keeping ratio ) \nand the row height to a given image-height if the memolines less this value \nor using the maximum height of the memos INFO1 - 3\n[b:lapr3nlc]Any sample exists ?[/b:lapr3nlc]\n\nThe DBF-structure :\nIMAGE C 25\nINFO1 M 10\nINFO2 M 10\nINFO3 M 10\n\n[img:lapr3nlc]http&#58;//www&#46;pflegeplus&#46;com/pictures/imglist&#46;jpg[/img:lapr3nlc]\n\nSTATIC FUNCTION PRINT_ST1()\nLOCAL oReport, aImgList := {}\n \nDBSELECTAREA(\"STYLE1\")\n\nMaxbe printing with a defined Image-array ?\nDBGOTOP()\nI := 1\nDO WHILE !EOF()\n\tAADD( aImgList, STYLE1->IMAGE )\n\tDBSKIP(+1)\nENDDO\n\nDBGOTOP()\n\nREPORT oReport TITLE \"*** IMAGES STYLE 1 ***\",\"\" PREVIEW ;\nFONT oFONT2\n\n[color=#FF0000:lapr3nlc][b:lapr3nlc]????? IMAGES[/b:lapr3nlc][/color:lapr3nlc]\n\nCOLUMN TITLE \"Info 1\"\t\tDATA\tSTYLE1->INFO1\tSIZE 15 MEMO\nCOLUMN TITLE \"Info 2\"\t\tDATA\tSTYLE1->INFO2\tSIZE 15 MEMO\nCOLUMN TITLE \"Info 3\"\t\tDATA\tSTYLE1->INFO3\tSIZE 15 MEMO\n\nEND REPORT\n\nACTIVATE REPORT oReport\n\nRETURN NIL\n\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "08:44", "topic": "A report-sample of a imagelist with memos from DBF ?", "username": "ukoenig" } ]
A report-sample of a imagelist with memos from DBF ?
[ { "date": "2013-08-12", "forum": "FiveWin for Harbour/xHarbour", "text": "[code=fw:151g8774]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">DBGOTOP<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />REPORT oReport <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"*** IMAGES STYLE 1 ***\"</span>,<span style=\"color: #ff0000;\">\"\"</span> PREVIEW ;<br /><span style=\"color: #0000ff;\">FONT</span> oFONT2<br /><br />COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Image\"</span> &nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span> STYLE1->IMAGE &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">IMAGE</span><br />COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Info 1\"</span>&nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span>&nbsp; &nbsp;STYLE1->INFO1&nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">15</span> MEMO<br />COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Info 2\"</span>&nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span>&nbsp; &nbsp;STYLE1->INFO2&nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">15</span> MEMO<br />COLUMN <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Info 3\"</span>&nbsp; &nbsp; <span style=\"color: #00C800;\">DATA</span>&nbsp; &nbsp;STYLE1->INFO3&nbsp; &nbsp;<span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">15</span> MEMO<br /><br />END REPORT<br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> REPORT oReport<br />&nbsp;</div>[/code:151g8774]", "time": "11:30", "topic": "A report-sample of a imagelist with memos from DBF ?", "username": "nageswaragunupudi" } ]
A report-sample of a imagelist with memos from DBF ?
[ { "date": "2013-08-12", "forum": "FiveWin for Harbour/xHarbour", "text": "Rao,\n\nthank You very much for the sample.\n\nI noticed a some things.\n\n1. Image-Quality ?\n2. big images doesn't fill the given size. They are adjusted to the memolines.\nMaybe adding empty lines to fill the defined image-area ?\n3. maybe something wrong with the pagebreak ?\n\n[img:q3wyu5lq]http&#58;//www&#46;pflegeplus&#46;com/pictures/imglist2&#46;jpg[/img:q3wyu5lq]\n\nBest regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "19:03", "topic": "A report-sample of a imagelist with memos from DBF ?", "username": "ukoenig" } ]
A report-sample of a imagelist with memos from DBF ?
[ { "date": "2013-08-13", "forum": "FiveWin for Harbour/xHarbour", "text": "1. Image height:\nIf we do not specify the minimum height for the image column, image size is adjusted to the maximum of other columns' memolines, subject to a minimum of 4.\nWe can also specify minimum height of the image in number of lines or number of pixels\n\nCOLUMN ............... IMAGE HEIGHT n // n data lines\nCOLUMN ............... IMAGE HEIGHT n PIXEL // n pixels height.\n\n2. Image width: You know we can specify the width too.\n\n3. Image is resized, retaining the aspect, to fit within the above width and height and centerd.\n\n4. Quality: I found good quality output while actually printing on a good color printer with good resolution.\n\n5. Last line at page-break:\nI did not notice this before. We need to review.", "time": "03:44", "topic": "A report-sample of a imagelist with memos from DBF ?", "username": "nageswaragunupudi" } ]
A report-sample of a imagelist with memos from DBF ?
[ { "date": "2013-08-13", "forum": "FiveWin for Harbour/xHarbour", "text": "Thank You very much for the infos.\nWith a given HEIGHT, it looks much better.\nWith some more tests, I noticed the problem with the image / memo - combination.\nMaybe some calculations needed to force a pagebreak, \nif the image of the last row > the last row with memo ?\n\nThe 2 screenshots are showing the result :\n\n[img:2otd81m2]http&#58;//www&#46;pflegeplus&#46;com/pictures/imglist3&#46;jpg[/img:2otd81m2]\n\nMemo of image 4 is splitied without showing the image .\n\n[img:2otd81m2]http&#58;//www&#46;pflegeplus&#46;com/pictures/imglist4&#46;jpg[/img:2otd81m2]\n\nI added some lines to the memo of image 4, but no difference ( screenshot 1 ) :\n\n[img:2otd81m2]http&#58;//www&#46;pflegeplus&#46;com/pictures/imglist6&#46;jpg[/img:2otd81m2]\n\nBest Regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "08:24", "topic": "A report-sample of a imagelist with memos from DBF ?", "username": "ukoenig" } ]
A report-sample of a imagelist with memos from DBF ?
[ { "date": "2013-08-14", "forum": "FiveWin for Harbour/xHarbour", "text": "I see that handling of image painting at page-breaks need improvement.\nWe shall attend to this issue in the next release.\nThanks for bringing it up.", "time": "04:59", "topic": "A report-sample of a imagelist with memos from DBF ?", "username": "nageswaragunupudi" } ]
A report-sample of a imagelist with memos from DBF ?
[ { "date": "2012-04-09", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear friends:\nCan somebody post a small sample about how use fields names on variables?\nSomething like this:\n\ncField := \"FIELD1\"\n\noServer:Query(\"INSERT INTO MyTable ( '\"+ cField + \"') VALUES ('\"+ cField + \"' + '100.00') ,\")\n\nI got: Sintaxis error near FIELD1.\n\nThanks in advance.", "time": "22:59", "topic": "A sample FWH-XHARBOUR-MYSQL?", "username": "FranciscoA" } ]
A sample FWH-XHARBOUR-MYSQL?
[ { "date": "2012-04-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Francisco,\n\nI do not understand the use of cField in the final part of your query if you want to insert a row (append). Try:\n[code=fw:3v1a6wpu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Query<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"INSERT INTO MyTable (\"</span> + cField + <span style=\"color: #ff0000;\">\") VALUES ('100.00')\"</span><span style=\"color: #000000;\">&#41;</span></div>[/code:3v1a6wpu]", "time": "01:19", "topic": "A sample FWH-XHARBOUR-MYSQL?", "username": "ADutheil" } ]
A sample FWH-XHARBOUR-MYSQL?
[ { "date": "2012-04-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi, ADutheil . Thanks for your reply.\nYes, your are right.\n[code=fw:luq4wwvn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Query<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"INSERT INTO MyTable (\"</span> + cField + <span style=\"color: #ff0000;\">\") VALUES ('100.00')\"</span><span style=\"color: #000000;\">&#41;</span></div>[/code:luq4wwvn]\nBut the error still showing. MySQL recognizes the value of the variable, but always shows the syntax error.\nFor example, SQLyog gives the same error in this sample;\n[code=fw:luq4wwvn]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">SET @c = <span style=\"color: #ff0000;\">'FIELD1'</span>;<br />INSERT INTO mitable <span style=\"color: #000000;\">&#40;</span>@c<span style=\"color: #000000;\">&#41;</span> VALUES <span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">'100.00'</span><span style=\"color: #000000;\">&#41;</span> ;</div>[/code:luq4wwvn]\nIs there other idea?", "time": "02:55", "topic": "A sample FWH-XHARBOUR-MYSQL?", "username": "FranciscoA" } ]
A sample FWH-XHARBOUR-MYSQL?
[ { "date": "2012-04-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Try\n\n[code=fw:1nt4xzhj]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Query<span style=\"color: #000000;\">&#40;</span><span style=\"color: #ff0000;\">\"INSERT INTO MyTable (\"</span> + cField + <span style=\"color: #ff0000;\">\") VALUES (100.00)\"</span><span style=\"color: #000000;\">&#41;</span></div>[/code:1nt4xzhj]\n\nEMG", "time": "08:10", "topic": "A sample FWH-XHARBOUR-MYSQL?", "username": "Enrico Maria Giordano" } ]
A sample FWH-XHARBOUR-MYSQL?
[ { "date": "2012-04-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Enrico, your are great...!!!\n\nIt's working!\nI had tried a thousand ways and never occurred to me to enter the numeric value without quotes.\nThank you very much.\n\nBest regards", "time": "14:46", "topic": "A sample FWH-XHARBOUR-MYSQL?", "username": "FranciscoA" } ]
A sample FWH-XHARBOUR-MYSQL?
[ { "date": "2008-02-12", "forum": "FiveWin for Harbour/xHarbour", "text": "#include \"FiveWin.ch\"\n\n// Your SOFTWARE.exe\nc_dir\t:= GetModuleFilename(GetInstance(),\"SOFTWARE.EXE\" + ;\nCHR(0), 255)\nc_pfad\t:= left ( c_dir, rat( \"\\\", c_dir) -1 )\n\nREQUEST DBFCDX\nRDDSETDEFAULT( \"DBFCDX\" )\n\nDBFARRAY := {}\n// FIELDS DBCREATE(\"PRODUKT\"\n// --------------------------------------------\nAADD(DBFARRAY, { \"PRODUKT\", \"C\", 60, 0 })\nAADD(DBFARRAY, { \"LEISTART\", \"C\", 1, 0 })\nAADD(DBFARRAY, { \"LEISTNR\", \"N\", 2, 0 })\n\nDBCREATE(\"&c_pfad\\PRODUKT.DBF\", DBFARRAY, \"DBFCDX\", .t. )\nCLOSE DATABASE\n\n// Delete Old Index\n// ----------------------\nDELETE FILE \"&c_pfad\\PRODUKT.CDX\" // Indexname = DBFname, \n // Two Index-Files in One ( Compound ) \n\n// INDEX SAMPLES :\n// ------------------------\n//\tORDCREATE( ,\"PRODUKT\",\"LOWER(produkt)\", ;\n//\t {|| LOWER(produkt) } , .T. ) // UNIQUE ( .T. )\n// \n// Needed together\n// ---------------------\n// ORDCONDSET( , , , , , , , , , , .T. ) // DOWN-index\n// ORDCREATE( ,\"PRODUKT\",\"STR(leistnr)\", ;\n// {|| STR(leistnr) } , .F. )\n// \n// Has to be LOWER !! because of seek => ÄÖÜ\n// Use your Network-Function !!\n// ----------------------------------------\nif NET_USE(c_pfad + \"\\PRODUKT.DBF\",3,5,.f.) \n// Creates a Compound-Index when => ORDCREATE( ,\"........\n\t\t\t\t\t\t\n// The Index will be open together with the DBF\n\t\t\t\t\t\nORDCREATE( ,\"PROD1\",\"LOWER(leistart) + str(leistnr) ;\n + str(produkt_nr)\", ;\n\t {|| LOWER(leistart) + str(leistnr) + ;\n str(produkt_nr) } , .F. )\n \n// Extra CDX-File\n// ORDCREATE( \"PRODUKT1\" ,\"PROD1\",\"LOWER(leistart) + ;\n str(leistnr) + str(produkt_nr)\", ;\n// {|| LOWER(leistart) + str(leistnr) + str(produkt_nr) } , .F. )\n\nORDCREATE( ,\"PROD2\",\"LOWER(produkt)\", ;\n {|| LOWER(produkt) } , .F. )\nendif \n\n// Selects Index-Information\n//----------------------------------\nTERMARRAY := {}\n// Contents of the Compound-Index\n// -------------------------------------------\nAADD(TERMARRAY, ;\n{ LTRIM(STR(ORDNUMBER(\"PROD1\"))), ;\n ORDBAGNAME(1), ORDNAME(1), ORDKEY(1), ;\n IIF(ORDISUNIQUE(1), \"UNIQUE\",\" \"), ORDFOR(1), ;\n IIF( ORDDESCEND(1,ORDBAGNAME(1)), \"DOWN\", \"UP\") } )\n\nAADD(TERMARRAY, ;\n{ LTRIM(STR(ORDNUMBER(\"PROD2\"))), ;\n ORDBAGNAME(2), ORDNAME(2), ORDKEY(2), ;\n IIF(ORDISUNIQUE(2), \"UNIQUE\",\" \"), ORDFOR(2), ;\n IIF( ORDDESCEND(2,ORDBAGNAME(2)), \"DOWN\", \"UP\") } )\n\nSHOW_CDX()\n\nRETURN( NIL )\n\n//------ For Control ==> Is shown only, when the index is OK -----\n\nFUNCTION SHOW_CDX()\nlocal oDlg10, oBrw\n\nDEFINE DIALOG oDlg10 FROM 2, 2 TO 20, 105 TITLE \"Infos about FOXPRO-CDX-Index\"\n\n@ 0.5, 0.5 LISTBOX oBrw ;\nFIELDS \"\", \"\", \"\", \"\", \"\", \"\", \"\" ;\nHEADERS \"Order\", \"Prim.-Index\", \"Sec.-Index\", \"Expression\", \"Equal\", \"Filter\", \"Up / Down\" ;\nFIELDSIZES 40, 70 , 70, 300, 52, 190, 60 ;\nOF oDlg10 SIZE 400, 100 \n\noBrw:nAt = 1\n// use more Array-elements if needed.\n// ----------------------------------------------\noBrw:bLine = { || { TERMARRAY[ oBrw:nAt ][ 1 ], ;\n TERMARRAY[ oBrw:nAt ][ 2 ], ;\n TERMARRAY[ oBrw:nAt ][ 3 ], ;\n TERMARRAY[ oBrw:nAt ][ 4 ], ;\n TERMARRAY[ oBrw:nAt ][ 5 ], ;\n TERMARRAY[ oBrw:nAt ][ 6 ], ;\n TERMARRAY[ oBrw:nAt ][ 7 ] } }\n\noBrw:bGoTop = { || oBrw:nAt := 1 }\noBrw:bGoBottom = { || oBrw:nAt := Eval( oBrw:bLogicLen ) }\noBrw:bSkip = { | nWant, nOld | nOld := oBrw:nAt, ;\n oBrw:nAt += nWant,;\noBrw:nAt := Max( 1, Min( oBrw:nAt, Eval( oBrw:bLogicLen ) ) ),;\noBrw:nAt - nOld }\noBrw:bLogicLen = { || Len( TERMARRAY ) }\noBrw:cAlias = \"Array\" // Just put something\n\n// Vert / Hor\n@ 6.3, 25 BUTTON \"&Exit\" OF oDlg10 SIZE 80, 18 ;\nACTION ( oDlg10:End() )\n\nACTIVATE DIALOG oDlg10 CENTERED \n\nRETURN( NIL )", "time": "19:16", "topic": "A sample for building CDX-Files w. Syntax-Check", "username": "ukoenig" } ]
A sample for building CDX-Files w. Syntax-Check
[ { "date": "2016-07-05", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nDifferent to the button-solutions, another sample shows, how to create a [color=#FF0000:16p1wq8n]IMAGE[/color:16p1wq8n]-ANIMATION \nusing different frames selected from a DLL ( a progressbar is embedded and is running the same time )\nFrames / images are extracted from selected animated gifs and stored inside a DLL.\nThe animation stops on button-action or at the end of the running progressbar.\nThe included DLL includes 3 different animation-styles ( size 128 x 128 )\n\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/Animat1.zip\">http://www.service-fivewin.de/DOWNLOADS/Animat1.zip</a><!-- m -->\n\n[img:16p1wq8n]http&#58;//www&#46;service-fivewin&#46;de/images/Imageani1&#46;jpg[/img:16p1wq8n]\n\n3 different styles are included inside the DLL\n\n[img:16p1wq8n]http&#58;//www&#46;service-fivewin&#46;de/images/Animat3&#46;jpg[/img:16p1wq8n]\n\nbest regards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "18:52", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Many year ago Paco made a animation class", "time": "08:28", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "Silvio.Falconi" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-06", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nI don't want to create something new.\nI have been looking for a solution, to replace the usage of a ANIMATED.gif\nbecause I noticed some problems like transparent-display.\nInstead I'm using a DLL with the included / extracted Gif-frames.\n\nI searched for -> Paco, but couldn't find any post.\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "11:06", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-06", "forum": "FiveWin for Harbour/xHarbour", "text": "simply fantastic <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nthanks \n\nUwe", "time": "11:45", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "MGA" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-06", "forum": "FiveWin for Harbour/xHarbour", "text": "a practical usage creating a indexbuilder :\nshowing a running [color=#0000FF:1fzfbdsm]IMAGE[/color:1fzfbdsm] ( frames are defined inside a DLL )\nand using [color=#0000FF:1fzfbdsm]METEREX[/color:1fzfbdsm]\n\nDOWNLOAD :\n\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/Animat2.zip\">http://www.service-fivewin.de/DOWNLOADS/Animat2.zip</a><!-- m -->\n\nextra START- and END-image\n\n[img:1fzfbdsm]http&#58;//www&#46;service-fivewin&#46;de/images/Animat5&#46;jpg[/img:1fzfbdsm]\n\n[img:1fzfbdsm]http&#58;//www&#46;service-fivewin&#46;de/images/Animat4&#46;jpg[/img:1fzfbdsm]\n\nplease check / add if the index-break is defined\n( needed for button < STOP ani > )\n\nduring building the index, it is possible to change the animation-style\n\nYou can remove the value or adjust the speed :\n[color=#0000FF:1fzfbdsm]Sleep( 300 ), [/color:1fzfbdsm]; // added to slow down !!!\n\nORDCONDSET( ; // <cForCondition>\n; // <bForCondition>\n, .T. ;// <lAll>\n[color=#0000FF:1fzfbdsm][b:1fzfbdsm], { || lRun = .T. } [/b:1fzfbdsm];[/color:1fzfbdsm] // <bWhileCondition> break if lRun = .F. on button-action\n...\n...\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "14:31", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Updated\n\ncheck the relationship ( animation-speed ) with combinations of delay and steps\n\nDOWNLOAD :\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/Animat3.zip\">http://www.service-fivewin.de/DOWNLOADS/Animat3.zip</a><!-- m -->\n\n[img:244fvm1s]http&#58;//www&#46;service-fivewin&#46;de/images/Animat6&#46;jpg[/img:244fvm1s]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "10:58", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "on this forum I found this :\n[url:2tbtr1uz]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=17&t=12423&hilit=animation+bmp#p62341[/url:2tbtr1uz]\n\n[code=fw:2tbtr1uz]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">Function</span> Animate<span style=\"color: #000000;\">&#40;</span>cResource<span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #00C800;\">local</span> oDlg,lOk <br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">20</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">65</span> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Testing Animation\"</span> <br /><br />@ <span style=\"color: #000000;\">3.5</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"&Ok\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">12</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">End</span>, lOk := .t. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #00C800;\">DEFAULT</span> <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> Startup<span style=\"color: #000000;\">&#40;</span>oDlg,cResource<span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> <br /><br /><br /><span style=\"color: #00C800;\">Function</span> Startup<span style=\"color: #000000;\">&#40;</span>oDlg,cResource<span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #00C800;\">local</span> oTmr,oBmp,nFrames,nFrameWidth <br /><br />@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">20</span> BITMAP oBmp <span style=\"color: #0000ff;\">RESOURCE</span> cResource <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg NOBORDER <br /><br />oBmp:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span>GetSysColor<span style=\"color: #000000;\">&#40;</span> COLOR_BTNFACE <span style=\"color: #000000;\">&#41;</span>,GetSysColor<span style=\"color: #000000;\">&#40;</span> COLOR_BTNFACE <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <br /><br />nFrames := val<span style=\"color: #000000;\">&#40;</span><span style=\"color: #0000ff;\">right</span><span style=\"color: #000000;\">&#40;</span>cResource,<span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <br /><br />nFrameWidth := oBmp:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>/nFrames <br /><br />oBmp:<span style=\"color: #000000;\">lTransparent</span> = .t. <br /><br />MoveWindow<span style=\"color: #000000;\">&#40;</span>oBmp:<span style=\"color: #000000;\">hWnd</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">20</span>,nFrameWidth,oBmp:<span style=\"color: #000000;\">nHeight</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;\">DEFINE</span> <span style=\"color: #0000ff;\">TIMER</span> oTmr <span style=\"color: #0000ff;\">OF</span> oDlg ; <br /><br /><span style=\"color: #0000ff;\">INTERVAL</span> <span style=\"color: #000000;\">70</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> oBmp:<span style=\"color: #000000;\">nY</span> < -oBmp:<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + nFrameWidth*<span style=\"color: #000000;\">2</span>,oBmp:<span style=\"color: #000000;\">nY</span> := <span style=\"color: #000000;\">0</span>,; <br /><br />oBmp:<span style=\"color: #000000;\">nY</span> -= nFrameWidth <span style=\"color: #000000;\">&#41;</span>, oBmp:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span> .f. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">TIMER</span> oTmr <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2tbtr1uz]", "time": "12:07", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "Silvio.Falconi" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nwith Paco Banner class I have the same result ....\n\n[img:29q13cb8]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2015/05/mm&#46;bmp[/img:29q13cb8]\n\nI make a test with your 16 bmps\n[b:29q13cb8]the code[/b:29q13cb8]\n[code=fw:29q13cb8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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;\">\"banner.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, oBanner<br /><span style=\"color: #00C800;\">Local</span> aPasos :=  <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>  <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span>,;<br />                   <span style=\"color: #000000;\">&#123;</span> PONER, <span style=\"color: #000000;\">0</span>    <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"DIALOG_1\"</span>  <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_WHITE<br /><br /><br />   <span style=\"color: #0000ff;\">REDEFINE</span> BANNER oBanner <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">101</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />            <span style=\"color: #0000ff;\">BITMAPS</span> <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_1.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_2.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_3.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_4.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_5.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_6.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_7.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_8.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_9.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_10.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_11.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_12.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_13.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_14.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_15.bmp\"</span> ,;<br />                    <span style=\"color: #ff0000;\">\"BMPS<span style=\"color: #000000;\">\\A</span>_16.bmp\"</span>  ;<br />            SPEED <span style=\"color: #000000;\">0.05</span>                       ;<br />            EFECTS aPasos                 ;<br />            FRAMES <span style=\"color: #000000;\">1</span><br /><br /><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:29q13cb8]", "time": "12:24", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "Silvio.Falconi" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Silvio,\n\nmy solution offers more effects.\nDuring indexing, I can change the animation-style / color ( using any frames ).\nSample :\nfrom 0 - 25 % indexing I can use frameset < B >\nfrom 26 - 50 % I can change to frameset < D > and so on ( starting with blue and ending with red )\nThe frames are not fixed defined at startup.\nYou can test it by yourself selecting another style during indexing.\n\nI will show / create a extended sample \n\n[img:20wafohv]http&#58;//www&#46;service-fivewin&#46;de/images/Animat7&#46;jpg[/img:20wafohv]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "22:03", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-08", "forum": "FiveWin for Harbour/xHarbour", "text": "on banner class you have many animations styles\nSPEED\nFRAMES\nEFFECTS ( Miror,Poner, Mengua,Crece,Cortina,Turn) to UP, Down,Left ,Right , top, Vertical, Horizzontal\nACTIONS\n\nPerhaps it is possible add new effects ...\nthe problems of the class is no pubblic and I cannot send you it", "time": "07:51", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "Silvio.Falconi" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Colorchange ( type 2 ) during indexing from red to blue :\n\nbefore creating something new like classes .....\nI try using existing functions / or parts of other solutions / samples to solve a problem\nscooping all possibilities the basic-FWH offers\n\nDOWNLOAD :\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/Animat4.zip\">http://www.service-fivewin.de/DOWNLOADS/Animat4.zip</a><!-- m -->\n\n[img:28re71is]http&#58;//www&#46;service-fivewin&#46;de/images/Animat8&#46;jpg[/img:28re71is]\n\n[img:28re71is]http&#58;//www&#46;service-fivewin&#46;de/images/Animat7&#46;jpg[/img:28re71is]\n\nSilvio,\nfrom Your sample :\nThe images are fixed defined,\nhow do You can change to other images ( split image-group on defined percent )\n\n REDEFINE BANNER oBanner ID 101 OF oDlg ;\n BITMAPS \"BMPS\\A_1.bmp\" ,;\n \"BMPS\\A_2.bmp\" ,;\n \"BMPS\\A_3.bmp\" ,;\n \"BMPS\\A_4.bmp\" ,;\n \"BMPS\\A_5.bmp\" ,;\n \"BMPS\\A_6.bmp\" ,;\n \"BMPS\\A_7.bmp\" ,;\n \"BMPS\\A_8.bmp\" ,;\n \"BMPS\\A_9.bmp\" ,;\n \"BMPS\\A_10.bmp\" ,;\n \"BMPS\\A_11.bmp\" ,;\n \"BMPS\\A_12.bmp\" ,;\n \"BMPS\\A_13.bmp\" ,;\n \"BMPS\\A_14.bmp\" ,;\n \"BMPS\\A_15.bmp\" ,;\n \"BMPS\\A_16.bmp\" ;\n SPEED 0.05 ;\n EFECTS aPasos ;\n FRAMES 1\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "16:30", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Great work Uwe, many compliments.", "time": "17:02", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "Massimo Linossi" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-08", "forum": "FiveWin for Harbour/xHarbour", "text": "It was just to tell you that there were already classes that make animation FWH. \n\nMy advice FWH needs new classes or interesting objects and not always heat the hot water .... \n\nBut if she dear sir fun in this way, you can continue on this path ... I will enjoy it to find new ideas ....for fwh\n\n<!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->", "time": "17:24", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "Silvio.Falconi" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":34x068do]\nbefore creating something new like classes .....\nI try using existing functions / or parts of other solutions / samples to solve a problem\nscooping all possibilities the basic-FWH offers\n[/quote:34x068do]\n\n <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->", "time": "18:02", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "Massimo Linossi" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-09", "forum": "FiveWin for Harbour/xHarbour", "text": "I not talk with cartoons!!!\nI not seen any new classes created by this cartoons!!!\n\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "08:42", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "Silvio.Falconi" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-10", "forum": "FiveWin for Harbour/xHarbour", "text": "Updated\n\nWhat's new :\n\n[color=#0000FF:3a58zwik]1.) 9 DBF's are included with sizes from 50 - 100000 records\n2.) new animation-speed-calculation added\n----the speed is always the same no matter of DBF-size\n----calculated in relation to DELAY and defined STEPS ( no fixed speed-value )\n3.) selections can be saved to a INI \n4.) a record-counter is added to the meter\n5.) added a little help-file[/color:3a58zwik]\n\nOn my computer with DELAY 20 and STEPS 40 I got a nice result\nusing [color=#0000FF:3a58zwik][b:3a58zwik]GetCPUSpeed() [/b:3a58zwik][/color:3a58zwik], You can use a factor to reduce or increase the values\n\nThe test ist included just enable the messages\n\non my computer \n\n[color=#0000FF:3a58zwik]Speed : 2799\nRecords : 100000\nDelay : 20\nSteps : 50 \nStarttime : 22:03:38\nEndtime : 22:03:40\nadjusted to a speed-result of 2 seconds !!![/color:3a58zwik]\n\nto calculate a factor I need some comparisons to get a equal speed on different computers\n\nDOWNLOAD :\n( size 11 MB because of 9 included DBF's )\n\n<!-- m --><a class=\"postlink\" href=\"http://www.service-fivewin.de/DOWNLOADS/Animat5.zip\">http://www.service-fivewin.de/DOWNLOADS/Animat5.zip</a><!-- m -->\n\n[img:3a58zwik]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/Animat9&#46;jpg[/img:3a58zwik]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "18:01", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2016-07-12", "forum": "FiveWin for Harbour/xHarbour", "text": "added a transparent counter shown centered inside of a animation.\ncan be records or percent\n\n[img:2zxp7s4h]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/Animat10&#46;jpg[/img:2zxp7s4h]\n\nadd in function :\n\nFUNCTION SET_ANI( oImage, nRecPos[color=#0000FF:2zxp7s4h], oTextFont2 [/color:2zxp7s4h])\n...\n...\n[color=#0000FF:2zxp7s4h]oImage:bPainted := {|| oImage:Say( oImage:nHeight / 2.0 - oTextFont2:nHeight / 2, ;\n ( oImage:nWidth/2 ) -40, STR( nCounter ), , ,oTextFont2 , .t., .t., 0 ) } [/color:2zxp7s4h]\n\nRETURN NIL\n\nand in function :\n\nFUNCTION MAKE_INDEX( oMeter1, nRecPos, oImage, oTextFont2 )\n...\n...\nSET_ANI( oImage, @nRecPos, [color=#0000FF:2zxp7s4h]oTextFont2[/color:2zxp7s4h] ), ;\t// animation\n...\n...\noMeter1:bPainted := {|| oMeter1:Say( oMeter1:nHeight / 4.0, ;\n( oMeter1:nWidth/2 ) -40, STR( nRecords ), , ,oTextFont2 , .t., .t., 0 ) } \n[color=#0000FF:2zxp7s4h]oImage:bPainted := {|| oImage:Say( oImage:nHeight / 2.0 - oTextFont2:nHeight / 2, ;\n( oImage:nWidth/2 ) -40, STR( nRecords ), , ,oTextFont2 , .t., .t., 0 ) } [/color:2zxp7s4h]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "09:51", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2022-03-07", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->\n\nNew link for download, please.\n\nMany thanks.\n\nRegards, saludos.", "time": "12:53", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "karinha" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2022-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote:tuad7vuq]New link for download, please.[/quote:tuad7vuq]\n\nAll links are updated <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "11:50", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "ukoenig" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2022-03-08", "forum": "FiveWin for Harbour/xHarbour", "text": "Great.\n\nSuper many thanks.\n\nRegards, saludos.", "time": "12:29", "topic": "A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.", "username": "karinha" } ]
A sample how to create a IMAGE-ani. ( indexbuilder ) UPD.
[ { "date": "2010-02-28", "forum": "FiveWin for Harbour/xHarbour", "text": "I have finished a report with FASTREPORT.\nI show charts for every month and within the chart I compare 2 years (black and green). Under every chart I print the single values.\nFirst I show with xBrowse the whole report and the user can select with tabs the exactly report he wants.\nBest regards,\nOtto\n\n[img:3ebpnlwi]http&#58;//atzwanger-software&#46;com/fr/xbrw&#46;jpg[/img:3ebpnlwi]\n\n[img:3ebpnlwi]http&#58;//atzwanger-software&#46;com/fr/fast&#46;jpg[/img:3ebpnlwi]", "time": "16:36", "topic": "A sample report – screenshots", "username": "Otto" } ]
A sample report – screenshots
[ { "date": "2010-03-01", "forum": "FiveWin for Harbour/xHarbour", "text": "In the GroupHeader I insert the Charts 1 – 12 for each month.\nThen on the OnBeforePrint –event of the Groupheader I set the Chart of the corresponding month visible.\nBest regards,\nOtto\n\n[img:2wxlzyoc]http&#58;//www&#46;atzwanger-software&#46;com/fr/chart1&#46;jpg[/img:2wxlzyoc]\n\n[code=fw:2wxlzyoc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />GroupHeader11OnBeforePrint<br /><br />procedure GroupHeader11OnBeforePrint<span style=\"color: #000000;\">&#40;</span>Sender: <span style=\"color: #000000;\">TfrxComponent</span><span style=\"color: #000000;\">&#41;</span>;<br />begin<br /><br />Chart1.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart2.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart3.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart4.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart5.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart6.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart7.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart8.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart9.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart10.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart11.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br />Chart12.Visible := <span style=\"color: #00C800;\">FALSE</span> ;<br /><br />Chart1.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">1</span> ;<br />Chart2.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">2</span> ;<br />Chart3.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">3</span> ;<br />Chart4.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">4</span> ;<br />Chart5.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">5</span> ;<br />Chart6.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">6</span> ;<br />Chart7.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">7</span> ;<br />Chart8.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">8</span> ;<br />Chart9.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">9</span> ;<br />Chart10.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">10</span> ;<br />Chart11.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">11</span> ;<br />Chart12.Visible := <Jahr.<span style=\"color: #ff0000;\">\"MONAT\"</span>> = <span style=\"color: #000000;\">12</span> ;<br />&nbsp; <br />end;</div>[/code:2wxlzyoc]", "time": "08:19", "topic": "A sample report – screenshots", "username": "Otto" } ]
A sample report – screenshots
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nI'm looking for a simple way to print with [color=#0000FF:2x5r3xxk][b:2x5r3xxk]richedi5[/b:2x5r3xxk][/color:2x5r3xxk] a memofield on two pages\nI Added a print-button to the sample-collector for printing samples.\nJust a textsplitting is needed ( max 2 pages nothing special )\nI couln't find any sample.\n\nOne page printing of imported topics\n\n[code=fw:2x5r3xxk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">STATIC</span> <span style=\"color: #00C800;\">FUNCTION</span> PRINTTOPIC<span style=\"color: #000000;\">&#40;</span> lPreview, oTCode, cTopic, cTAuthor, cTLink <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> oPrn<br /><br /><span style=\"color: #00C800;\">LOCAL</span> aRTF := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">100</span> <span style=\"color: #000000;\">&#125;</span>  <span style=\"color: #B900B9;\">// { nFrom, nTop }</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-56</span> BOLD<br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oMono <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Arial\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">-12</span><br /><br /><span style=\"color: #00C800;\">DEFAULT</span> lPreview := .f.<br /><br /><span style=\"color: #00C800;\">IF</span> lPreview<br />    <span style=\"color: #00C800;\">PRINT</span> oPrn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"FWH SAMPLE FILE\"</span> PREVIEW<br /><span style=\"color: #00C800;\">ELSE</span><br />    <span style=\"color: #00C800;\">PRINT</span> oPrn <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"FWH SAMPLE FILE\"</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #00C800;\">IF</span> EMPTY<span style=\"color: #000000;\">&#40;</span> oPrn:<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">&#41;</span><br />         MsgStop<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Printer not ready!\"</span> <span style=\"color: #000000;\">&#41;</span><br />         <span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><br /><span style=\"color: #0000ff;\">PAGE</span><br />         CURSORWAIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />        oPrn:<span style=\"color: #000000;\">InchSay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0.40</span>, <span style=\"color: #000000;\">0.95</span>, cTopic, oBold <span style=\"color: #000000;\">&#41;</span><br />        oPrn:<span style=\"color: #000000;\">InchSay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0.50</span>, <span style=\"color: #000000;\">0.95</span>, cTAuthor, oBold <span style=\"color: #000000;\">&#41;</span><br />        oPrn:<span style=\"color: #000000;\">InchSay</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0.60</span>, <span style=\"color: #000000;\">0.95</span>, cTLink, oBold <span style=\"color: #000000;\">&#41;</span><br /><br />    <span style=\"color: #B900B9;\">//   nFrom := REPrintBox5( ::hWnd, hDC, ::IsSelection(), ;</span><br />    <span style=\"color: #B900B9;\">//                                      nTop, nLeft, nRight, nBottom, nFrom )</span><br />         aRTF := REPrintBox5<span style=\"color: #000000;\">&#40;</span> oTCode:<span style=\"color: #000000;\">hWnd</span>, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">&#40;</span> lPreview, oPrn:<span style=\"color: #000000;\">hDCOut</span>, oPrn:<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">&#41;</span>, ;<br />                oTCode:<span style=\"color: #000000;\">IsSelection</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                        aRTF<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #000000;\">500</span>,  <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">3500</span>, aRTF<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span> + <span style=\"color: #000000;\">5500</span>, aRTF<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />  <br />         CursorArrow<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #0000ff;\">ENDPAGE</span><br /><br /><span style=\"color: #0000ff;\">ENDPRINT</span><br /><br />oBold:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />oMono:<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 /> </div>[/code:2x5r3xxk]\n\n[img:2x5r3xxk]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Forum49&#46;jpg[/img:2x5r3xxk]\n\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "18:42", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe\nI do not know if I have understood your question correctly, but you can insert a page break in your text when you need it\n\n[code=fw:1ghwc9vy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />oRTF: <span style=\"color: #000000;\">PageBreak</span> <span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /> </div>[/code:1ghwc9vy]\n\nAlso you have methods and data for you editor\n[code=fw:1ghwc9vy]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />   <span style=\"color: #00C800;\">DATA</span>   lShowPageBreak<br /><br />   <span style=\"color: #00C800;\">METHOD</span> HidePageBreak<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">METHOD</span> ShowPageBreak<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />  <span style=\"color: #00C800;\">METHOD</span> PageSetup<span style=\"color: #000000;\">&#40;</span> nTop, nLeft, nRight, nBottom <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:1ghwc9vy]", "time": "20:17", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Christobal,\n\nI scanned the complete forum and found 42 topics about richedit\n\nbut NO infos about a textbreak during printing to a new page\nDo You mean to count the lines and include a pagebreak on a defined position [color=#0000FF:20swjej6]BEFORE[/color:20swjej6] printing ?\n\n[img:20swjej6]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Forum50&#46;jpg[/img:20swjej6]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "21:20", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "This is a old method of richedit ( and also for richedit5 )\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=16&t=6594&p=29464&hilit=PageBreak#p29464\">viewtopic.php?f=16&t=6594&p=29464&hilit=PageBreak#p29464</a><!-- l -->\n\nThat's why I have not mentioned it", "time": "21:25", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":26gua4k2]Christobal,\n\nDo You mean to count the lines and include a pagebreak on a defined position [color=#0000FF:26gua4k2]BEFORE[/color:26gua4k2] printing ?\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->[/quote:26gua4k2]\nUwe\nExplain the reason for your question in the firts topic\nI think I have not understood your needs well", "time": "21:30", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nI counted [color=#0000FF:jnd962v7][b:jnd962v7]60 lines [/b:jnd962v7][/color:jnd962v7] of possible code printing the first page.\nThat means for topics > 60 lines in size I need a second page for printing.\nIt is just a textsplitting I need.\nI noticed a maximum of possible 2 pages a topic might need for printing. \nNo problem on other printings I've done before but richedit is different. \n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "21:41", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":63uo1tsv]Cristobal,\n\nI counted [color=#0000FF:63uo1tsv][b:63uo1tsv]60 lines [/b:63uo1tsv][/color:63uo1tsv] of possible code printing the first page.\nThat means for topics > 60 lines in size I need a second page for printing.\nIt is just a textsplitting I need.\nI noticed a maximum of possible 2 pages a topic might need for printing. \nNo problem on other printings I've done before but richedit is different. \n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->[/quote:63uo1tsv]\nNow I think I understand what you mean\nAre you looking for an automatic way to format the printout in the required pages of the RichEdit5 control text?", "time": "21:46", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nYes that is what I mean. 90 % of the topic-code is small in size and only 1 page is needed\nbut I would like to cover bigger text as well.\n\n[quote:238h0n2e]Now I think I understand what you mean\nAre you looking for an automatic way to format the printout in the required pages of the RichEdit5 control text?[/quote:238h0n2e]\n\nregards\nUwe <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? -->", "time": "21:51", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Ok\nYou have\n\n[code=fw:238qhpbk]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />oRTF:<span style=\"color: #000000;\">LastLineVisible</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #B900B9;\">//and</span><br />&nbsp;oRTF:<span style=\"color: #000000;\">GetLineCount</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">//after</span><br />&nbsp;oRTF:<span style=\"color: #000000;\">GotoLine</span><span style=\"color: #000000;\">&#40;</span> nLine <span style=\"color: #000000;\">&#41;</span> &nbsp; <span style=\"color: #B900B9;\">// calculate line from LastLineVisible and GetLineCount and insert PageBreak</span><br /><br />&nbsp;</div>[/code:238qhpbk]\n\nPlease, If I can help you with anything, tell me", "time": "21:57", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nprinting on multiple pages works but I didn't use pagebreak.\n\nNext I want to show colored keywords.\nI think it is not tested showing / refresh a new text on xbrowse row-change.\nAdding [color=#0000FF:wqxnwa3s]HIGHLIGHT[/color:wqxnwa3s] is giving a terrible effect :\nthe complete dialog is < fllckering / refreshed > on row-change and the display slows down.\nI think using it on a standalonetext it doesn't matter but not for a fast text-changing with xBrowse. \n\n@ 40, 625 RICHEDIT5 oTCode VAR cTCode OF oDlg SIZE 600, 410 ; // w h\nFONT oFont PIXEL HSCROLL [color=#0000FF:wqxnwa3s]HIGHLIGHT[/color:wqxnwa3s] <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \n\nwith my next release I can include the normal and a version with activated highlight\n\nmaybe there is another solution possible\n\n[b:wqxnwa3s]NO[/b:wqxnwa3s] bad effects using :\n\n[color=#0000FF:wqxnwa3s][b:wqxnwa3s]Colorize( nStart, nEnd, nColor )[/b:wqxnwa3s][/color:wqxnwa3s]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "18:45", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Did you look at this ? Seems to work for Xbrowse\n\nCompile in samples\n\n[code=fw:1vxs0qld]<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;\">\"RichEdit.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> cTitle:=<span style=\"color: #ff0000;\">\"Test\"</span><br />  <span style=\"color: #00C800;\">local</span> cResult, oMemo<br />  <span style=\"color: #00C800;\">Public</span> cShowstr:=<span style=\"color: #ff0000;\">\"\"</span><br />  <span style=\"color: #00C800;\">Public</span> oDlg<br /><br />  REQUEST DBFCDX<br /><br />   USE clients via <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #00C800;\">NEW</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> BOLD <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">font</span> oFont <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test Color\"</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />      COLUMNS <span style=\"color: #ff0000;\">'Name'</span>, <span style=\"color: #ff0000;\">'Adress'</span>, <span style=\"color: #ff0000;\">'Notes'</span> ;<br />      <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">'CLIENTS'</span> NOBORDER<br /><br />   WITH OBJECT oBrw<br /><br />      :<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />      :<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />      :<span style=\"color: #000000;\">bClrRowFocus</span>     := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">185</span>,<span style=\"color: #000000;\">220</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">nMarqueeStyle</span>    := MARQSTYLE_HIGHLROWMS<br /><br />      :<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span> || oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,showmemo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END<br /><br />   @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">460</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> clients->notes <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>,<span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK <span style=\"color: #0000ff;\">update</span>  <span style=\"color: #B900B9;\">//TRANSPARENT</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span><br /><br />   close all<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> showmemo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">Local</span> cStr:=<span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">local</span> cChange:= <span style=\"color: #ff0000;\">\"FiveWin\"</span>   <span style=\"color: #B900B9;\">//  Word that we will look for</span><br />   <span style=\"color: #00C800;\">local</span> cInto:= <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\c</span>f2 FiveWin <span style=\"color: #000000;\">\\c</span>f1\"</span>  <span style=\"color: #B900B9;\">// Put Word in Color</span><br /><br /><br />   cText = alltrim<span style=\"color: #000000;\">&#40;</span>clients->notes<span style=\"color: #000000;\">&#41;</span><br /><br />   cStr  += <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\r</span>tf1<span style=\"color: #000000;\">\\a</span>nsi<span style=\"color: #000000;\">\\d</span>eff0\"</span><br />   cStr  += <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\c</span>olortbl;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed255<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;}\"</span><br />   cstr  = cStr + cText<br />   cStr  += <span style=\"color: #ff0000;\">\"}\"</span><br /><br />   cShowStr = StrTran<span style=\"color: #000000;\">&#40;</span> cStr, cChange, cInto <span style=\"color: #000000;\">&#41;</span>  <span style=\"color: #B900B9;\">// --> \"Harbour Power\"</span><br /><br />   hDLL = LoadLibrary<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">'riched20.dll'</span> <span style=\"color: #000000;\">&#41;</span><br />   @ <span style=\"color: #000000;\">250</span>,<span style=\"color: #000000;\">900</span> RICHEDIT oMemo <span style=\"color: #0000ff;\">VAR</span> cShowstr <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>,<span style=\"color: #000000;\">400</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:1vxs0qld]", "time": "18:52", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "Marc Venken" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-24", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\nthank You I will ckeck it\nIt is number[color=#0000FF:qx9zpzzc] [b:qx9zpzzc]4[/b:qx9zpzzc][/color:qx9zpzzc] position of the browser.\nAll what we need is coloring the filtertext inside the memo\n\nThe result importing from the FWH-sample direcory\n[color=#0000FF:qx9zpzzc]1085[/color:qx9zpzzc] files and [color=#0000FF:qx9zpzzc]12[/color:qx9zpzzc] files filtering the keyword [color=#0000FF:qx9zpzzc]richedit[/color:qx9zpzzc]\ndone in just 5 minutes time <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nI tested the function but doesn't work\n\n[color=#0000FF:qx9zpzzc]in xbrowse included\n\n:bChange\t:= { || SHOWMEMO(oTCode, ALLTRIM(cTCode), ALLTRIM(cTFilter)), ;\n...\n...\n\n@ 40, 625 RICHEDIT5 oTCode VAR cTCode OF oDlg SIZE 600, 410 ; // w h\nFONT oFont PIXEL HSCROLL // HIGHLIGHT ( bad ) \n\n// -----------------\n\nFUNCTION SHOWMEMO(oTCode, cTCode, cTFilter)\nLOCAL cStr\t:=\"\", cChange := cTFilter\t\t// Word that we will look for\nLOCAL cInto\t:= \"\\cf2 \" + cTFilter + \" \\cf1\"\t// Put Word in Color\n\ncStr += \"{\\rtf1\\ansi\\deff0\"\ncStr += \"{\\colortbl;\\red0\\green0\\blue0;\\red255\\green0\\blue0;}\"\ncstr = cStr + cTCode\ncStr += \"}\"\ncShowStr = StrTran( cStr, cChange, cInto ) \noTCode:SetText( cShowStr )\n\nRETURN NIL[/color:qx9zpzzc]\n\n[img:qx9zpzzc]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Forum55&#46;jpg[/img:qx9zpzzc]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "19:06", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"ukoenig\":1bhydo4d]Cristobal,\n\nprinting on multiple pages works but I didn't use pagebreak.\n\nNext I want to show colored keywords.\nI think it is not tested showing / refresh a new text on xbrowse row-change.\nAdding [color=#0000FF:1bhydo4d]HIGHLIGHT[/color:1bhydo4d] is giving a terrible effect :\nthe complete dialog is < fllckering / refreshed > on row-change and the display slows down.\nI think using it on a standalonetext it doesn't matter but not for a fast text-changing with xBrowse. \n\n@ 40, 625 RICHEDIT5 oTCode VAR cTCode OF oDlg SIZE 600, 410 ; // w h\nFONT oFont PIXEL HSCROLL [color=#0000FF:1bhydo4d]HIGHLIGHT[/color:1bhydo4d] <!-- s:cry: --><img src=\"{SMILIES_PATH}/icon_cry.gif\" alt=\":cry:\" title=\"Crying or Very sad\" /><!-- s:cry: --> \n\nwith my next release I can include the normal and a version with activated highlight\n\nmaybe there is another solution possible\n\n[b:1bhydo4d]NO[/b:1bhydo4d] bad effects using :\n\n[color=#0000FF:1bhydo4d][b:1bhydo4d]Colorize( nStart, nEnd, nColor )[/b:1bhydo4d][/color:1bhydo4d]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->[/quote:1bhydo4d]\n\nPlease try with this code\n\n[code=fw:1bhydo4d]<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;\">\"RichEdi5.ch\"</span><br /><br /><span style=\"color: #00C800;\">Static</span> oDlg<br /><span style=\"color: #00C800;\">Static</span> oBrw<br /><span style=\"color: #00C800;\">Static</span> oMemo<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> cTitle:=<span style=\"color: #ff0000;\">\"Test\"</span><br />  <span style=\"color: #00C800;\">local</span> cResult<br />  <span style=\"color: #00C800;\">local</span> oFont, oBold<br />  <span style=\"color: #00C800;\">local</span> oSay<br /><br />  REQUEST DBFCDX<br /><br />   USE clients via <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #00C800;\">NEW</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> BOLD <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br /><br />   <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">170</span> <span style=\"color: #0000ff;\">font</span> oFont <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test Color\"</span><br /><br />   @ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />      COLUMNS <span style=\"color: #ff0000;\">'Name'</span>, <span style=\"color: #ff0000;\">'Adress'</span>, <span style=\"color: #ff0000;\">'Notes'</span> ;<br />      <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">'CLIENTS'</span> NOBORDER<br /><br />   WITH OBJECT oBrw<br /><br />      :<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />      :<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />      :<span style=\"color: #000000;\">bClrRowFocus</span>     := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">185</span>,<span style=\"color: #000000;\">220</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">nMarqueeStyle</span>    := MARQSTYLE_HIGHLROWMS<br /><br />      :<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span> || oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,showmemo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />   END<br /><br />   @ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">370</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> clients->notes <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK <span style=\"color: #0000ff;\">update</span>  <span style=\"color: #B900B9;\">//TRANSPARENT</span><br /><br />   <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> showmemo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   close all<br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> showmemo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">Local</span> cStr     := <span style=\"color: #ff0000;\">\"\"</span><br />   <span style=\"color: #00C800;\">local</span> cChange  := <span style=\"color: #ff0000;\">\"FiveWin\"</span>   <span style=\"color: #B900B9;\">//  Word that we will look for</span><br />   <span style=\"color: #00C800;\">local</span> cInto    := <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\h</span>ighlight1 FiveWin <span style=\"color: #000000;\">\\h</span>ighlight0\"</span>  <span style=\"color: #B900B9;\">// Put Word in Color</span><br />   <span style=\"color: #00C800;\">local</span> cText<br />   <span style=\"color: #00C800;\">local</span> cVar     := <span style=\"color: #ff0000;\">\"\"</span><br /><br />   cText   := clients->notes<br /><br />   cStr    += <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\r</span>tf1<span style=\"color: #000000;\">\\a</span>nsi<span style=\"color: #000000;\">\\a</span>nsicpg1252<span style=\"color: #000000;\">\\d</span>eff0<span style=\"color: #000000;\">\\n</span>ouicompat<span style=\"color: #000000;\">\\d</span>eflang3082{<span style=\"color: #000000;\">\\f</span>onttbl{<span style=\"color: #000000;\">\\f</span>0<span style=\"color: #000000;\">\\f</span>nil<span style=\"color: #000000;\">\\f</span>charset0 Tahoma;}}\"</span><br />   cStr    += <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\c</span>olortbl ;<span style=\"color: #000000;\">\\r</span>ed255<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed128<span style=\"color: #000000;\">\\g</span>reen64<span style=\"color: #000000;\">\\b</span>lue64;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue128;}\"</span><br />   cStr    += <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\v</span>iewkind4<span style=\"color: #000000;\">\\u</span>c1\"</span><br />   cStr    += <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\p</span>ard<span style=\"color: #000000;\">\\f</span>s20\"</span> + <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> Empty<span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\" \"</span>, cText <span style=\"color: #000000;\">&#41;</span><br />   cStr    += <span style=\"color: #ff0000;\">\"}\"</span><br />   cStr    := StrTran<span style=\"color: #000000;\">&#40;</span> cStr, cChange, cInto <span style=\"color: #000000;\">&#41;</span><br /><br />   <span style=\"color: #00C800;\">if</span> hb_Isnil<span style=\"color: #000000;\">&#40;</span> oMemo <span style=\"color: #000000;\">&#41;</span><br />      @ <span style=\"color: #000000;\">180</span>,<span style=\"color: #000000;\">740</span> RICHEDIT5 oMemo <span style=\"color: #0000ff;\">VAR</span> cVar <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">450</span>, <span style=\"color: #000000;\">400</span> HIGHLIGHT<br />   <span style=\"color: #00C800;\">endif</span><br />   oMemo:<span style=\"color: #000000;\">LoadRTF</span><span style=\"color: #000000;\">&#40;</span> cStr, .F. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br /> <br /> </div>[/code:1bhydo4d]", "time": "05:43", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal ,\n\nthank You very much.\nWith these changes it looks much better now <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \nIt will be next on my todolist.\nI would like to add a button to show the sample from the memofield\nin fullscreen-mode with a editor.\nJust using wordpad or do You have a better idea ?\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "10:39", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nMaybe a launce for a ceartin application like :\n\nc:\\multi\\multiedit sample.prg (from browse) ?\n\nOfcource, a copy paste from a other solution will work also ))\n\nJust a idea.", "time": "11:25", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "Marc Venken" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\nJust a idea.\nUsing the setup-section and define the editor You are working with.\nThat will open the memo with Your favorite editor.\nThe memo will be saved as a textfile before and opend with Your editor\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "11:44", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\n\nThis would totaly fit for my needs <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> (Also others...)\n\nA Second section for the option to start the sample ( for me this is simple the buildh.bat sample.prg would complete the tool !!\n\nEdit : me sample.prg\nRun : buildh sample.prg \n\nas 2 input fields.\n\nI would suggest not to go to far into this, just 1 start option for Edit en Run, because otherwise the sampler will become a other program.\n\n\nMarc", "time": "12:52", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "Marc Venken" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\nI added the editor-solution\nWorks PERFECT <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \nI can open the memo with my program-editor defined in the setup-section.\n\n[img:1yut1jwk]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Forum58&#46;jpg[/img:1yut1jwk]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "12:56", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Yes...\n\nBTW : Wich program do you use to make those jpg's and balloons ?", "time": "13:15", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "Marc Venken" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Marc,\n\nI'm using [color=#0000FF:27xi5wjq]SNAGIT[/color:27xi5wjq] ( commercial )\nbut I remember there is a program ( freeware ) that comes very close to it.\nI have to look for it.\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "13:23", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Try this also\n\n[code=fw:2ugqe0ng]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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;\">\"RichEdi5.ch\"</span><br /><br /><span style=\"color: #00C800;\">Static</span> hDll<br /><span style=\"color: #00C800;\">Static</span> oDlg<br /><span style=\"color: #00C800;\">Static</span> oBrw<br /><span style=\"color: #00C800;\">Static</span> oMemo<br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; <span style=\"color: #00C800;\">local</span> cTitle:=<span style=\"color: #ff0000;\">\"Test\"</span><br />&nbsp; <span style=\"color: #00C800;\">local</span> cResult<br />&nbsp; <span style=\"color: #00C800;\">local</span> oFont, oBold<br />&nbsp; <span style=\"color: #00C800;\">local</span> oSay<br />&nbsp; <span style=\"color: #00C800;\">local</span> oCode<br /><br />&nbsp; REQUEST DBFCDX<br /><br />&nbsp; &nbsp;USE clients via <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #00C800;\">NEW</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> BOLD <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">170</span> <span style=\"color: #0000ff;\">font</span> oFont <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test Color\"</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; COLUMNS <span style=\"color: #ff0000;\">'Name'</span>, <span style=\"color: #ff0000;\">'Adress'</span>, <span style=\"color: #ff0000;\">'Notes'</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">'CLIENTS'</span> NOBORDER<br /><br />&nbsp; &nbsp;WITH OBJECT oBrw<br /><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bClrRowFocus</span> &nbsp; &nbsp; := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">185</span>,<span style=\"color: #000000;\">220</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">nMarqueeStyle</span> &nbsp; &nbsp;:= MARQSTYLE_HIGHLROWMS<br /><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span> || oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>,showmemo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />&nbsp; &nbsp; &nbsp; :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;END<br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">BUTTON</span> <span style=\"color: #ff0000;\">\"Code\"</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> oCode := SourceEdit<span style=\"color: #000000;\">&#40;</span> oMemo:<span style=\"color: #000000;\">GetText</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> , <span style=\"color: #ff0000;\">\"Code\"</span>, , <span style=\"color: #000000;\">100</span>, <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">700</span>, <span style=\"color: #000000;\">1160</span>, , , , , , , &nbsp;<span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">370</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> clients->notes <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK <span style=\"color: #0000ff;\">update</span> &nbsp;<span style=\"color: #B900B9;\">//TRANSPARENT</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> showmemo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;close all<br />&nbsp; &nbsp;FreeLibrary<span style=\"color: #000000;\">&#40;</span> hDll <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> showmemo<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> cStr &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"\"</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cChange &nbsp;:= <span style=\"color: #ff0000;\">\"FiveWin\"</span> &nbsp; <span style=\"color: #B900B9;\">// &nbsp;Word that we will look for</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cInto &nbsp; &nbsp;:= <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\h</span>ighlight1 FiveWin <span style=\"color: #000000;\">\\h</span>ighlight0\"</span> &nbsp;<span style=\"color: #B900B9;\">// Put Word in Color</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cText<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cVar &nbsp; &nbsp; := <span style=\"color: #ff0000;\">\"\"</span><br /><br />&nbsp; &nbsp;cText &nbsp; := clients->notes<br /><br />&nbsp; &nbsp;cStr &nbsp; &nbsp;+= <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\r</span>tf1<span style=\"color: #000000;\">\\a</span>nsi<span style=\"color: #000000;\">\\a</span>nsicpg1252<span style=\"color: #000000;\">\\d</span>eff0<span style=\"color: #000000;\">\\n</span>ouicompat<span style=\"color: #000000;\">\\d</span>eflang3082{<span style=\"color: #000000;\">\\f</span>onttbl{<span style=\"color: #000000;\">\\f</span>0<span style=\"color: #000000;\">\\f</span>nil<span style=\"color: #000000;\">\\f</span>charset0 Tahoma;}}\"</span><br />&nbsp; &nbsp;cStr &nbsp; &nbsp;+= <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\c</span>olortbl ;<span style=\"color: #000000;\">\\r</span>ed255<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed128<span style=\"color: #000000;\">\\g</span>reen64<span style=\"color: #000000;\">\\b</span>lue64;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue128;}\"</span><br />&nbsp; &nbsp;cStr &nbsp; &nbsp;+= <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\v</span>iewkind4<span style=\"color: #000000;\">\\u</span>c1\"</span><br />&nbsp; &nbsp;cStr &nbsp; &nbsp;+= <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\p</span>ard<span style=\"color: #000000;\">\\f</span>s20\"</span> + <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> Empty<span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\" \"</span>, cText <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cStr &nbsp; &nbsp;+= <span style=\"color: #ff0000;\">\"}\"</span><br />&nbsp; &nbsp;cStr &nbsp; &nbsp;:= StrTran<span style=\"color: #000000;\">&#40;</span> cStr, cChange, cInto <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> hb_Isnil<span style=\"color: #000000;\">&#40;</span> oMemo <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; @ <span style=\"color: #000000;\">180</span>,<span style=\"color: #000000;\">740</span> RICHEDIT5 oMemo <span style=\"color: #0000ff;\">VAR</span> cVar <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">450</span>, <span style=\"color: #000000;\">400</span> HIGHLIGHT<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;oMemo:<span style=\"color: #000000;\">LoadRTF</span><span style=\"color: #000000;\">&#40;</span> cStr, .F. <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">NIL</span><br />&nbsp;</div>[/code:2ugqe0ng]", "time": "13:33", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "This is very close to what is wanted.\n\nI get this error however : (when I try to save)\n\nApplication\n===========\n Path and name: C:\\fwharb\\samples\\mycolor2.exe (32 bits)\n Size: 3,895,808 bytes\n Compiler version: Harbour 3.2.0dev (r1506171039)\n FiveWin version: FWH 17.05\n C compiler version: Borland/Embarcadero C++ 7.0 (32-bit)\n Windows version: 6.1, Build 7601 Service Pack 1\n\n Time from start: 0 hours 0 mins 58 secs \n Error occurred at: 02/25/18, 19:37:21\n Error description: Error BASE/1004 Message not found: TBTNBMP:OACTIVO\n Args:\n [ 1] = O TBTNBMP\n\nStack Calls\n===========\n Called from: => __ERRRT_SBASE( 0 )\n Called from: ../../../tobject.prg => TBTNBMP:ERROR( 0 )\n Called from: ../../../tobject.prg => (b)HBOBJECT( 0 )\n Called from: ../../../tobject.prg => TBTNBMP:MSGNOTFOUND( 0 )\n Called from: ../../../tobject.prg => TBTNBMP:OACTIVO( 0 )\n Called from: .\\source\\function\\MEMOEDIT.PRG => (b)SOURCEEDIT( 467 )\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:CLICK( 683 )\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:LBUTTONUP( 919 )\n Called from: .\\source\\classes\\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1721 )\n Called from: .\\source\\classes\\BTNBMP.PRG => TBTNBMP:HANDLEEVENT( 1866 )\n Called from: .\\source\\classes\\WINDOW.PRG => _FWH( 3325 )\n Called from: => DIALOGBOXINDIRECT( 0 )\n Called from: .\\source\\classes\\DIALOG.PRG => TDIALOG:ACTIVATE( 296 )\n Called from: mycolor2.prg => MAIN( 96 )", "time": "19:39", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "Marc Venken" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "You are right, it's my mistake\n\nIn Memoedit.prg\nAt moment, change in button \"Save\" ACTION ::oActivo: with oEditor variable\n\nPlease, change and add this code\n\n[code=fw:3olglqq6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">04</span>,<span style=\"color: #000000;\">82</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"<\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">16</span>,<span style=\"color: #000000;\">16</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg NOBORDER <span style=\"color: #0000ff;\">FONT</span> oFontWD2 ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_WHITE ;<br />&nbsp; &nbsp; &nbsp; TOOLTIP FWString<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Save\"</span> <span style=\"color: #000000;\">&#41;</span> ; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #B900B9;\">//Save As</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #000000;\">&#40;</span> SaveFileSource<span style=\"color: #000000;\">&#40;</span> oEditor, oEditor:<span style=\"color: #000000;\">cFileName</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #B900B9;\">// and at end of memoedit.prg add</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Static</span> <span style=\"color: #00C800;\">Function</span> SaveFileSource<span style=\"color: #000000;\">&#40;</span> oEditor, cFile <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> Empty<span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span> .or. !Empty<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #00C800;\">At</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"noname\"</span>, Lower<span style=\"color: #000000;\">&#40;</span> cFile <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;cFile &nbsp; &nbsp; &nbsp; := cGetFile32<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Program file (*.prg) |*.prg|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Header file (*.ch) |*.ch|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Headers (*.h) |*.h|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Resources (*.rc) |*.rc|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Source Code C (*.c) |*.c|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Source Code C++ (*.cpp) |*.cpp|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"C File (*.cxx) |*.cxx|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Harbour files (*.hrb) |*.hrb|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Templates (*.pvk) |*.pvk|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Text file (*.txt) |*.txt|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Configuration file (*.ini) |*.ini|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"HTML Page file (*.html) |*.html|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"HTM Page file (*.htm) |*.htm|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"TPL Page Template file (*.tpl) |*.tpl|\"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"XML file (*.xml) |*.xml|\"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #ff0000;\">\"Save as\"</span>, <span style=\"color: #000000;\">0</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hb_CurDrive<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\":<span style=\"color: #000000;\">\\\"</span> + CurDir(), .T., .T. )<br />&nbsp; &nbsp;endif<br />&nbsp; &nbsp;oEditor:Save( , , , , , cFile )<br /><br />Return nil<br /><br />//----------------------------------------------------------------------------//<br /><br /></span></div>[/code:3olglqq6]", "time": "19:54", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Thanks.\n\nUwe, I let this for you to do because I never have changed stuff from FW prog's itself. (Maybe i have to link/compile them and that kind of stuff)\n\n@ Cristobal : You may put a link to a Exe for me to test, but I get the idea. Mr. Uwe will implement it at a given moment.", "time": "21:14", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "Marc Venken" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"Marc Venken\":3r9uokiw]Thanks.\n\nUwe, I let this for you to do because I never have changed stuff from FW prog's itself. (Maybe i have to link/compile them and that kind of stuff)\n\n@ Cristobal : You may put a link to a Exe for me to test, but I get the idea. Mr. Uwe will implement it at a given moment.[/quote:3r9uokiw]\n\nMarc, for your test, too easy\nCopy function SourceEdit from MEMOEDIT.PRG and paste it into your sample ( at end of document ) and put your modification\nCompile and build normaly", "time": "21:39", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nI did some changes to the sample\nbecause of a colored dialog You can see that the memo gets repainted again and again\nWith my changes the memo is painted only once and after that a text replacement.\nMaybe You can have a look at it\n\n[code=fw:1kuytuq9]<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;\">\"RichEdi5.ch\"</span><br /><br /><span style=\"color: #00C800;\">Static</span> oDlg, oBrw, oMemo<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> cTitle:=<span style=\"color: #ff0000;\">\"Test\"</span><br /><span style=\"color: #00C800;\">local</span> cResult, cText<br /><span style=\"color: #00C800;\">local</span> oFont, oBold, oBrush<br /><span style=\"color: #00C800;\">local</span> oSay, cFilter := <span style=\"color: #ff0000;\">\"FiveWin\"</span><br /><br />REQUEST DBFCDX<br /><br />USE clients via <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #00C800;\">NEW</span><br />cText   := clients->notes<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> BOLD <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">16763283</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">170</span> <span style=\"color: #0000ff;\">font</span> oFont <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test Color\"</span> <br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />      COLUMNS <span style=\"color: #ff0000;\">'Name'</span>, <span style=\"color: #ff0000;\">'Adress'</span>, <span style=\"color: #ff0000;\">'Notes'</span> ;<br />      <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">'CLIENTS'</span> NOBORDER<br /><br />WITH OBJECT oBrw<br />      :<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />      :<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />      :<span style=\"color: #000000;\">bClrRowFocus</span>     := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">185</span>,<span style=\"color: #000000;\">220</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">nMarqueeStyle</span>    := MARQSTYLE_HIGHLROWMS<br /><br />      :<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span> ||  oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                cText := clients->notes, oMemo:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span>, ;<br />                oMemo:<span style=\"color: #000000;\">LoadRTF</span><span style=\"color: #000000;\">&#40;</span> SHOWMEMO<span style=\"color: #000000;\">&#40;</span>cText, cFilter<span style=\"color: #000000;\">&#41;</span>, .F. <span style=\"color: #000000;\">&#41;</span>, ;<br />                oMemo:<span style=\"color: #000000;\">GoToLine</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />END<br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">370</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> clients->notes <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK <span style=\"color: #0000ff;\">update</span>  <span style=\"color: #B900B9;\">//TRANSPARENT</span><br /><br />@ <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">370</span> RICHEDIT5 oMemo <span style=\"color: #0000ff;\">VAR</span> cText <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">200</span> <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> ;<br /><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> oBrush <span style=\"color: #000000;\">&#41;</span>, ;<br />  oMemo:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span>, ;<br />  oMemo:<span style=\"color: #000000;\">LoadRTF</span><span style=\"color: #000000;\">&#40;</span> SHOWMEMO<span style=\"color: #000000;\">&#40;</span>cText, cFilter<span style=\"color: #000000;\">&#41;</span>, .F. <span style=\"color: #000000;\">&#41;</span>, ;<br />  oMemo:<span style=\"color: #000000;\">GoToLine</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br />CLOSE ALL<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> SHOWMEMO<span style=\"color: #000000;\">&#40;</span>cText, cFilter<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> cStr     := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">local</span> cInto    := <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\h</span>ighlight1\"</span> + cFilter + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\h</span>ighlight0\"</span>  <span style=\"color: #B900B9;\">// Put Word in Color</span><br /><span style=\"color: #00C800;\">local</span> cVar     := <span style=\"color: #ff0000;\">\"\"</span><br /><br />cStr    += <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\r</span>tf1<span style=\"color: #000000;\">\\a</span>nsi<span style=\"color: #000000;\">\\a</span>nsicpg1252<span style=\"color: #000000;\">\\d</span>eff0<span style=\"color: #000000;\">\\n</span>ouicompat<span style=\"color: #000000;\">\\d</span>eflang3082{<span style=\"color: #000000;\">\\f</span>onttbl{<span style=\"color: #000000;\">\\f</span>0<span style=\"color: #000000;\">\\f</span>nil<span style=\"color: #000000;\">\\f</span>charset0 Tahoma;}}\"</span><br />cStr    += <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\c</span>olortbl ;<span style=\"color: #000000;\">\\r</span>ed255<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed128<span style=\"color: #000000;\">\\g</span>reen64<span style=\"color: #000000;\">\\b</span>lue64;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue128;}\"</span><br />cStr    += <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\v</span>iewkind4<span style=\"color: #000000;\">\\u</span>c1\"</span><br />cStr    += <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\p</span>ard<span style=\"color: #000000;\">\\f</span>s20\"</span> + <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> Empty<span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\" \"</span>, cText <span style=\"color: #000000;\">&#41;</span><br />cStr    += <span style=\"color: #ff0000;\">\"}\"</span><br />cStr    := StrTran<span style=\"color: #000000;\">&#40;</span> cStr, cFilter, cInto <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//  Word that we will look for</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> cStr<br /> </div>[/code:1kuytuq9]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "21:44", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nI did some changes to the sample\nbecause of a colored dialog You can see that the memo gets painted again and again\nWith my changes the memo is painted only once and after that a text replacement.\nMaybe You can have a look at it\n\n[code=fw:rckp7ty2]<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;\">\"RichEdi5.ch\"</span><br /><br /><span style=\"color: #00C800;\">Static</span> oDlg, oBrw, oMemo<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> cTitle:=<span style=\"color: #ff0000;\">\"Test\"</span><br /><span style=\"color: #00C800;\">local</span> cResult, cText<br /><span style=\"color: #00C800;\">local</span> oFont, oBold, oBrush<br /><span style=\"color: #00C800;\">local</span> oSay, cFilter := <span style=\"color: #ff0000;\">\"FiveWin\"</span><br /><br />REQUEST DBFCDX<br /><br />USE clients via <span style=\"color: #ff0000;\">\"DBFCDX\"</span> <span style=\"color: #00C800;\">NEW</span><br />cText   := clients->notes<br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oBold <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Courier New\"</span> BOLD <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">8</span>,<span style=\"color: #000000;\">15</span><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #000000;\">16763283</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">170</span> <span style=\"color: #0000ff;\">font</span> oFont <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Test Color\"</span> <br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> <span style=\"color: #0000ff;\">XBROWSE</span> oBrw <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />      <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">350</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br />      COLUMNS <span style=\"color: #ff0000;\">'Name'</span>, <span style=\"color: #ff0000;\">'Adress'</span>, <span style=\"color: #ff0000;\">'Notes'</span> ;<br />      <span style=\"color: #0000ff;\">ALIAS</span> <span style=\"color: #ff0000;\">'CLIENTS'</span> NOBORDER<br /><br />WITH OBJECT oBrw<br />      :<span style=\"color: #000000;\">nColDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />      :<span style=\"color: #000000;\">nRowDividerStyle</span> := LINESTYLE_LIGHTGRAY<br />      :<span style=\"color: #000000;\">bClrRowFocus</span>     := <span style=\"color: #000000;\">&#123;</span> || <span style=\"color: #000000;\">&#123;</span> CLR_BLACK, RGB<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">185</span>,<span style=\"color: #000000;\">220</span>,<span style=\"color: #000000;\">255</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />      :<span style=\"color: #000000;\">nMarqueeStyle</span>    := MARQSTYLE_HIGHLROWMS<br /><br />      :<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span> ||  oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                cText := clients->notes, oMemo:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span>, ;<br />                oMemo:<span style=\"color: #000000;\">LoadRTF</span><span style=\"color: #000000;\">&#40;</span> SHOWMEMO<span style=\"color: #000000;\">&#40;</span>cText, cFilter<span style=\"color: #000000;\">&#41;</span>, .F. <span style=\"color: #000000;\">&#41;</span>, ;<br />                oMemo:<span style=\"color: #000000;\">GoToLine</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />END<br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">370</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> clients->notes <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK <span style=\"color: #0000ff;\">update</span>  <span style=\"color: #B900B9;\">//TRANSPARENT</span><br /><br />@ <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">370</span> RICHEDIT5 oMemo <span style=\"color: #0000ff;\">VAR</span> cText <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">200</span> <br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> ;<br /><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> oBrush <span style=\"color: #000000;\">&#41;</span>, ;<br />  oMemo:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span>, ;<br />  oMemo:<span style=\"color: #000000;\">LoadRTF</span><span style=\"color: #000000;\">&#40;</span> SHOWMEMO<span style=\"color: #000000;\">&#40;</span>cText, cFilter<span style=\"color: #000000;\">&#41;</span>, .F. <span style=\"color: #000000;\">&#41;</span>, ;<br />  oMemo:<span style=\"color: #000000;\">GoToLine</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush<br /><br />CLOSE ALL<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> SHOWMEMO<span style=\"color: #000000;\">&#40;</span>cText, cFilter<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> cStr     := <span style=\"color: #ff0000;\">\"\"</span><br /><span style=\"color: #00C800;\">local</span> cInto    := <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\h</span>ighlight1\"</span> + cFilter + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\h</span>ighlight0\"</span>  <span style=\"color: #B900B9;\">// Put Word in Color</span><br /><span style=\"color: #00C800;\">local</span> cVar     := <span style=\"color: #ff0000;\">\"\"</span><br /><br />cStr    += <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\r</span>tf1<span style=\"color: #000000;\">\\a</span>nsi<span style=\"color: #000000;\">\\a</span>nsicpg1252<span style=\"color: #000000;\">\\d</span>eff0<span style=\"color: #000000;\">\\n</span>ouicompat<span style=\"color: #000000;\">\\d</span>eflang3082{<span style=\"color: #000000;\">\\f</span>onttbl{<span style=\"color: #000000;\">\\f</span>0<span style=\"color: #000000;\">\\f</span>nil<span style=\"color: #000000;\">\\f</span>charset0 Tahoma;}}\"</span><br />cStr    += <span style=\"color: #ff0000;\">\"{<span style=\"color: #000000;\">\\c</span>olortbl ;<span style=\"color: #000000;\">\\r</span>ed255<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue0;<span style=\"color: #000000;\">\\r</span>ed128<span style=\"color: #000000;\">\\g</span>reen64<span style=\"color: #000000;\">\\b</span>lue64;<span style=\"color: #000000;\">\\r</span>ed0<span style=\"color: #000000;\">\\g</span>reen0<span style=\"color: #000000;\">\\b</span>lue128;}\"</span><br />cStr    += <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\v</span>iewkind4<span style=\"color: #000000;\">\\u</span>c1\"</span><br />cStr    += <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\p</span>ard<span style=\"color: #000000;\">\\f</span>s20\"</span> + <span style=\"color: #00C800;\">if</span><span style=\"color: #000000;\">&#40;</span> Empty<span style=\"color: #000000;\">&#40;</span> cText <span style=\"color: #000000;\">&#41;</span>, <span style=\"color: #ff0000;\">\" \"</span>, cText <span style=\"color: #000000;\">&#41;</span><br />cStr    += <span style=\"color: #ff0000;\">\"}\"</span><br />cStr    := StrTran<span style=\"color: #000000;\">&#40;</span> cStr, cFilter, cInto <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//  Word that we will look for</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> cStr<br /> </div>[/code:rckp7ty2]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "21:49", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "ukoenig" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe, your sample run OK for me\nwhat's your problem?\nI do not notice that the control is repainted", "time": "21:55", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2018-02-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Ah!, sorry\n\nRemove calls to the method SetText\n\n[code=fw:19wcet53]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br />      :<span style=\"color: #000000;\">bChange</span> := <span style=\"color: #000000;\">&#123;</span> ||  oSay:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ;<br />                cText := clients->notes, ; <span style=\"color: #B900B9;\">//oMemo:SetText( cText ), ;</span><br />                oMemo:<span style=\"color: #000000;\">LoadRTF</span><span style=\"color: #000000;\">&#40;</span> SHOWMEMO<span style=\"color: #000000;\">&#40;</span>cText, cFilter<span style=\"color: #000000;\">&#41;</span>, .F. <span style=\"color: #000000;\">&#41;</span>, ;<br />                oMemo:<span style=\"color: #000000;\">GoToLine</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br /><br />      :<span style=\"color: #000000;\">CreateFromCode</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />END<br /><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">370</span> <span style=\"color: #0000ff;\">SAY</span> oSay <span style=\"color: #0000ff;\">PROMPT</span> clients->notes <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">200</span>, <span style=\"color: #000000;\">80</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK <span style=\"color: #B900B9;\">//update  //TRANSPARENT</span><br /><br />@ <span style=\"color: #000000;\">120</span>,<span style=\"color: #000000;\">370</span> RICHEDIT5 oMemo <span style=\"color: #0000ff;\">VAR</span> cText <span style=\"color: #0000ff;\">of</span> oDlg <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">250</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #B900B9;\">//HIGHLIGHT</span><br /><br /><span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> ;<br /><span style=\"color: #000000;\">&#40;</span> oDlg:<span style=\"color: #000000;\">SetBrush</span><span style=\"color: #000000;\">&#40;</span> oBrush <span style=\"color: #000000;\">&#41;</span>, ;<span style=\"color: #B900B9;\">//  oMemo:SetText( cText ), ;</span><br />  oMemo:<span style=\"color: #000000;\">LoadRTF</span><span style=\"color: #000000;\">&#40;</span> SHOWMEMO<span style=\"color: #000000;\">&#40;</span>cText, cFilter<span style=\"color: #000000;\">&#41;</span>, .F. <span style=\"color: #000000;\">&#41;</span>, ;<br />  oMemo:<span style=\"color: #000000;\">GoToLine</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br /> </div>[/code:19wcet53]", "time": "22:03", "topic": "A sample to print with REPrintBox5 a memo on two pages ?", "username": "cnavarro" } ]
A sample to print with REPrintBox5 a memo on two pages ?
[ { "date": "2008-03-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nThere are some questions, about array-position in xbrowse\n\nAt first, once again thanks to Mr. Nageswaragunupudi\nfor his help\n\n[img:2qo2kq8g]http&#58;//www&#46;pflegeplus&#46;com/pictures/default&#46;jpg[/img:2qo2kq8g]\n\n// Brush Dialog\n// --------------------------------------\n\noBrw7 := TXBrowse():New( oDlg5 )\noBrw7:nMarqueeStyle := MARQSTYLE_HIGHLROW\noBrw7:nColDividerStyle\t := LINESTYLE_BLACK\noBrw7:nRowDividerStyle := LINESTYLE_BLACK\noBrw7:SetArray( aBRUSH2 )\noBrw7:aCols[ 1 ]:cHeader = Padr(\"No.\", 3)\noBrw7:aCols[ 2 ]:cHeader = Padr(\"Select\", 14)\noBrw7:lHScroll := .F.\noBrw7:lVScroll := .F.\n\n// s_BRUSH2 is the old Position, when the user ended the browser. \n// On a new start the 1. Col of the old position is YELLOW \n// The Bar is on top\n// -------------------------------------------------------------------------------\noBrw7:aCols[ 1 ]:bClrStd := {|| {CLR_BLACK, ;\nIIF( oBrw7:nArrayAt = s_BRUSH2, CLR_YELLOW, CLR_WHITE ) } }\n\n// When the user selects a brush, the var e_BRUSH2 remembers the\n// new Position for the next start.\n// This position will be YELLOW when the dialog is opend again.\n// It is possible, to show a special Row with a defined color\n// or jump directly to this row.\n// -------------------------------------------------------------------------------\noBrw7:bLClicked := { | nRow, nCol | e_BRUSH2 := oBrw7:nRowSel }\n\noBrw7:aCols[ 2 ]:AddResource(\"Horizont\")\noBrw7:aCols[ 2 ]:AddResource(\"Vertikal\")\noBrw7:aCols[ 2 ]:AddResource(\"Fdiag\")\noBrw7:aCols[ 2 ]:AddResource(\"Bdiag\")\noBrw7:aCols[ 2 ]:AddResource(\"Cross\")\noBrw7:aCols[ 2 ]:AddResource(\"Diacross\")\noBrw7:aCols[ 2 ]:AddResource(\"Borland\")\noBrw7:aCols[ 2 ]:AddResource(\"Tiled\")\noBrw7:aCols[ 2 ]:bBmpData := {|| oBrw7:nArrayAt }\noBrw7:aCols[ 2 ]:bStrData := {|| oBrw7:aRow[2] } \n\noBrw7:CreateFromResource( 920 )\n\n// I want to jump to the old ( default position )\n// --------------------------------------------------------\nREDEFINE BUTTONBMP oBtn8 ID 559 OF oDlg5 ;\nACTION ( oBrw7:nArrayAt := s_BRUSH2, oBrw7:nRowSel := s_BRUSH2, oBrw7:refresh() ) ;\nBITMAP \"Test_5\" PROMPT SPACE(5) + \"Set De&fault\" TEXTRIGHT\noBtn8:cToolTip = { \"Set the Row-Position\" + CRLF + \"to the old values\", ;\n \"Set Default Positions\", 1, CLR_BLACK, 14089979 } \n\t\t\t \nRegards \n\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \n[/img]", "time": "20:39", "topic": "A sample, how to use DEFAULT-Positions in xBrowse-Arrays.", "username": "ukoenig" } ]
A sample, how to use DEFAULT-Positions in xBrowse-Arrays.
[ { "date": "2023-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "An initial LLM (\"large language model\") using Harbour hashes:\n\nllm.prg\n[code=fw:p9s5asy6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00C800;\">static</span> hWords := <span style=\"color: #000000;\">&#123;</span>=><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;AddSentence<span style=\"color: #000000;\">&#40;</span> hWords, hb_ATokens<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Hello my friend, Hello how are you ? Hello\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;? hWords<span style=\"color: #000000;\">&#91;</span> <span style=\"color: #ff0000;\">\"Hello\"</span> <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #ff0000;\">\"how\"</span> <span style=\"color: #000000;\">&#93;</span> <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> AddSentence<span style=\"color: #000000;\">&#40;</span> hWords, aWords <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cWord<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> each cWord in aWords<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ! hb_HHasKey<span style=\"color: #000000;\">&#40;</span> hWords, cWord <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWords<span style=\"color: #000000;\">&#91;</span> cWord <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">&#123;</span>=><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWords<span style=\"color: #000000;\">&#91;</span> cWord <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; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; AddSentence<span style=\"color: #000000;\">&#40;</span> hWords<span style=\"color: #000000;\">&#91;</span> cWord <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, SubArray<span style=\"color: #000000;\">&#40;</span> aWords, HB_EnumIndex<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp; <br /><br /><span style=\"color: #00C800;\">function</span> SubArray<span style=\"color: #000000;\">&#40;</span> aArray, nStart <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aSub := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n = nStart <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style=\"color: #000000;\">&#40;</span> aSub, aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> aSub &nbsp;</div>[/code:p9s5asy6]", "time": "07:03", "topic": "A simple LLM using Harbour's hashes", "username": "Antonio Linares" } ]
A simple LLM using Harbour's hashes
[ { "date": "2023-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Antonio,\n[i:6n3h6id6]large language model[/i:6n3h6id6]\n\nCan this model also be used with the copy & paste method to submit larger amounts of text to the ChatGPT prompt?\n\nIs there any way to bypass the token limit of approximately 4000 per request here?\n\nI haven't figured out yet if, when I'm within a chat and I post multiple \"knowledge bases\" there, all of them are considered, and I can input more text than 4000 tokens.\n\nAlso, I'm uncertain if, when I later open a chat, all the information will still be there?\n\nBest regards,\nOtto\n\n[img:6n3h6id6]https&#58;//mybergland&#46;com/fwforum/chatfw1&#46;gif[/img:6n3h6id6]", "time": "07:46", "topic": "A simple LLM using Harbour's hashes", "username": "Otto" } ]
A simple LLM using Harbour's hashes
[ { "date": "2023-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Enhanced example:\n\n[code=fw:11sdc4hr]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#xcommand <span style=\"color: #0000ff;\">TEXT</span> <into:<span style=\"color: #0000ff;\">TO</span>,INTO> <v> => <span style=\"color: #00D7D7;\">#pragma</span> __cstream|<v>:=%s<br /><br /><span style=\"color: #00C800;\">static</span> hWords := <span style=\"color: #000000;\">&#123;</span>=><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cText := GetText<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aSentences := hb_ATokens<span style=\"color: #000000;\">&#40;</span> cText, <span style=\"color: #ff0000;\">\".\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cSentence, cKey<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> each cSentence in aSentences<br />&nbsp; &nbsp; &nbsp; AddSentence<span style=\"color: #000000;\">&#40;</span> hWords, hb_ATokens<span style=\"color: #000000;\">&#40;</span> cSentence <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span> &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> each cKey in hb_HKeys<span style=\"color: #000000;\">&#40;</span> hWords <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; ? cKey<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span> &nbsp; <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> AddSentence<span style=\"color: #000000;\">&#40;</span> hWords, aWords <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cWord<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> each cWord in aWords<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ! hb_HHasKey<span style=\"color: #000000;\">&#40;</span> hWords, cWord <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWords<span style=\"color: #000000;\">&#91;</span> cWord <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">&#123;</span>=><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWords<span style=\"color: #000000;\">&#91;</span> cWord <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; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; AddSentence<span style=\"color: #000000;\">&#40;</span> hWords<span style=\"color: #000000;\">&#91;</span> cWord <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, SubArray<span style=\"color: #000000;\">&#40;</span> aWords, HB_EnumIndex<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> &nbsp; <br /><br /><span style=\"color: #00C800;\">function</span> SubArray<span style=\"color: #000000;\">&#40;</span> aArray, nStart <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aSub := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n = nStart <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aArray <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; AAdd<span style=\"color: #000000;\">&#40;</span> aSub, aArray<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br />&nbsp; &nbsp;<br /><span style=\"color: #00C800;\">return</span> aSub <br /><br /><span style=\"color: #00C800;\">function</span> GetText<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cText<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">TEXT</span> INTO cText<br />Hello my friend, how are you ? Nice <span style=\"color: #0000ff;\">to</span> meet you again. I hope that you are fine.<br />&nbsp; &nbsp;ENDTEXT<br /><br /><span style=\"color: #00C800;\">return</span> cText<br />&nbsp;</div>[/code:11sdc4hr]", "time": "07:52", "topic": "A simple LLM using Harbour's hashes", "username": "Antonio Linares" } ]
A simple LLM using Harbour's hashes
[ { "date": "2023-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Otto,\n\nThis is just a very simple example to understand how to build a very simple LLM", "time": "07:55", "topic": "A simple LLM using Harbour's hashes", "username": "Antonio Linares" } ]
A simple LLM using Harbour's hashes
[ { "date": "2023-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Antonio,\n\nHere, with a passing knowledge base, you see, I ask the same question twice.\nBy sending the knowledge base, I also receive a perfect response.\n\nWhat I would like is to send the entire FIVEWIN documentation, but it is much larger than the 4000 tokens.\n\nBest regards,\nOtto\n\n[img:1qzc7eos]https&#58;//mybergland&#46;com/fwforum/udb&#46;jpg[/img:1qzc7eos]\n\n[img:1qzc7eos]https&#58;//mybergland&#46;com/fwforum/udb1&#46;jpg[/img:1qzc7eos]", "time": "08:38", "topic": "A simple LLM using Harbour's hashes", "username": "Otto" } ]
A simple LLM using Harbour's hashes
[ { "date": "2023-05-16", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Antonio,\nSomewhere I read that it is possible to link a web page as knowledge base. \nMaybe someone knows how to do it. \nThen we could have all the documentation linked in a single page.\n\nBest regards,\nOtto", "time": "08:42", "topic": "A simple LLM using Harbour's hashes", "username": "Otto" } ]
A simple LLM using Harbour's hashes
[ { "date": "2023-05-17", "forum": "FiveWin for Harbour/xHarbour", "text": "Enhanced version thanks to Mr. Rao\n\n[code=fw:j2dsu8oc]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">#xcommand <span style=\"color: #0000ff;\">TEXT</span> <into:<span style=\"color: #0000ff;\">TO</span>,INTO> <v> => <span style=\"color: #00D7D7;\">#pragma</span> __cstream|<v>:=%s<br /><br /><span style=\"color: #00C800;\">static</span> hWords := <span style=\"color: #000000;\">&#123;</span>=><span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cText := GetText<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> aSentences := hb_ATokens<span style=\"color: #000000;\">&#40;</span> cText, <span style=\"color: #ff0000;\">\".\"</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cSentence, cKey<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> each cSentence in aSentences<br />&nbsp; &nbsp; &nbsp; AddSentence<span style=\"color: #000000;\">&#40;</span> hWords, hb_ATokens<span style=\"color: #000000;\">&#40;</span> cSentence <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span> &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp;? hWords<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> AddSentence<span style=\"color: #000000;\">&#40;</span> hWords, aWords, nStart <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cWord, n<br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">if</span> nStart == <span style=\"color: #00C800;\">nil</span><br />&nbsp; &nbsp; &nbsp; nStart = <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">endif</span> &nbsp; <br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">for</span> n := nStart <span style=\"color: #0000ff;\">to</span> Len<span style=\"color: #000000;\">&#40;</span> aWords <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">//each cWord in aWords</span><br />&nbsp; &nbsp; &nbsp; cWord &nbsp; &nbsp;:= aWords<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> ! hb_HHasKey<span style=\"color: #000000;\">&#40;</span> hWords, cWord <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWords<span style=\"color: #000000;\">&#91;</span> cWord <span style=\"color: #000000;\">&#93;</span> = <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">&#123;</span>=><span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hWords<span style=\"color: #000000;\">&#91;</span> cWord <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; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">if</span> n < Len<span style=\"color: #000000;\">&#40;</span> aWords <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AddSentence<span style=\"color: #000000;\">&#40;</span> hWords<span style=\"color: #000000;\">&#91;</span> cWord <span style=\"color: #000000;\">&#93;</span><span style=\"color: #000000;\">&#91;</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">&#93;</span>, aWords, n + <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">endif</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">next</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> GetText<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> cText<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">TEXT</span> INTO cText<br />Hello my friend ? How are you ? Nice <span style=\"color: #0000ff;\">to</span> meet you again.<br />&nbsp; &nbsp;ENDTEXT<br /><br /><span style=\"color: #00C800;\">return</span> cText<br /><br />&nbsp;</div>[/code:j2dsu8oc]", "time": "16:30", "topic": "A simple LLM using Harbour's hashes", "username": "Antonio Linares" } ]
A simple LLM using Harbour's hashes
[ { "date": "2008-07-29", "forum": "FiveLinux / FiveDroid (Android)", "text": "[img:twzt073y]http&#58;//img66&#46;imageshack&#46;us/img66/2473/screenshotcalendar1yf2&#46;png[/img:twzt073y]\r\n\r\nwork in progress but now has slightly neater code and code to increment by any number of months (forward or backwards) and the same for years. That code looks slightly complicated but its to allow for leap years.\r\n\r\nMoveYears( iIncrement), it has just occurred to me, could be implemented as:\r\n\r\n[code:twzt073y]METHOD MoveYears&#40; iIncrement &#41; CLASS CALENDAR\n\n &#58;&#58;MoveNonths&#40; iIncrement * 12 &#41;\n\nRETURN nil [/code:twzt073y]\n\nMoveMonths() could be implemented in a simpler manner if you don't want to allow maintining a highlight on a certain day of the month as a possibility.\n\nHere is the code (dirty) as it stands:\n\n[code:twzt073y]// Calendar&#46;prg\n\n#include \"FiveLinuxDF&#46;ch\"\n#include \"hbclass&#46;ch\"\n\n#define GTK_NORMAL 0\n#define GTK_ACTIVE 1\n#define GTK_PRELIGHT 2\n#define GTK_SELECTED 3\n#define GTK_INSENSITIVE 4\n\nCLASS CALENDAR\n\nDATA aDATEBUTTONS\nDATA aDOW\nDATA dAnchorDate\nDATA iStartOfMonth\nDATA iEndOfMonth\nDATA grp_CALENDAR\n\nMETHOD New&#40;&#41; CONSTRUCTOR\nMETHOD Show&#40;&#41;\nMETHOD SetButtons&#40;&#41;\nMETHOD SetAnchorDate&#40; dDate &#41;\nMETHOD MoveMonths&#40; iIncrement &#41;\nMETHOD MoveYears&#40; iIncrement &#41;\n\nENDCLASS\n\nMETHOD New&#40;&#41; CLASS CALENDAR\n\n&#58;&#58;SetAnchorDate&#40; DATE&#40;&#41; &#41;\n&#58;&#58;aDATEBUTTONS &#58;= ARRAY&#40; 37 &#41;\n&#58;&#58;aDOW &#58;= &#123; \"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\" &#125;\n\nReturn self\n\n\nMETHOD Show&#40;&#41; CLASS CALENDAR\n\nLOCAL dlg_CALENDAR\nLOCAL sTitle\nLOCAL ii\nLOCAL oBtn\n\nsTitle &#58;= \"Calendar\"\nDEFINE DIALOG dlg_CALENDAR TITLE sTitle SIZE 400, 500\n\n@ 90, 10 GROUP &#58;&#58;grp_CALENDAR LABEL \"Calendar\" OF dlg_CALENDAR SIZE 370, 250 PIXEL\niRow &#58;= 120\niCol = 20\nFOR ii = -6 TO 37\n IF ii > 0\n @ iRow, iCol BUTTON &#58;&#58;aDATEBUTTONS&#91;ii&#93; PROMPT \"Test\" OF dlg_CALENDAR PIXEL SIZE 40, 25 NORMAL \"aquamarine\" PRELIGHT \"medium aquamarine\"\n ELSE\n @ iRow, iCol BUTTON oBtn PROMPT &#58;&#58;aDOW&#91;ii + 7&#93; OF dlg_CALENDAR PIXEL SIZE 40, 25 WHEN &#46;F&#46; \n oBtn&#58;SetBackgroundColor&#40; \"yellow\", GTK_INSENSITIVE &#41; \n ENDIF\n iCol += 50\n IF iCol > 330\n iRow += 30\n iCol &#58;= 20\n ENDIF\nNEXT\n\n@360, 10 BUTTON \"Previous Month\" OF dlg_CALENDAR PIXEL SIZE 120, 27 ACTION &#58;&#58;MoveMonths&#40; -1 &#41;\n@360,250 BUTTON \"Following Month\" OF dlg_CALENDAR PIXEL SIZE 120, 27 ACTION &#58;&#58;MoveMonths&#40; 1 &#41;\n@400, 10 BUTTON \"Previous Year\" OF dlg_CALENDAR PIXEL SIZE 120, 27 ACTION &#58;&#58;MoveYears&#40; -1 &#41;\n@400,250 BUTTON \"Following Year\" OF dlg_CALENDAR PIXEL SIZE 120, 27 ACTION &#58;&#58;MoveYears&#40; 1 &#41;\n\nACTIVATE DIALOG dlg_CALENDAR ON INIT &#58;&#58;SetButtons&#40;&#41; \n\nRETURN nil\n\n\nMETHOD SetButtons&#40;&#41; CLASS CALENDAR\n\nFOR ii = 1 TO 37\n DO CASE\n CASE ii < &#58;&#58;iStartOfMonth\n &#58;&#58;aDATEBUTTONS&#91;ii&#93;&#58;Hide&#40;&#41;\n CASE ii > &#58;&#58;iEndOfMonth\n &#58;&#58;aDATEBUTTONS&#91;ii&#93;&#58;Hide&#40;&#41;\n OTHERWISE\n &#58;&#58;aDATEBUTTONS&#91;ii&#93;&#58;SetText&#40; ALLTRIM&#40; STR&#40; ii - &#58;&#58;iStartOfMonth + 1 &#41; &#41; &#41;\n &#58;&#58;aDATEBUTTONS&#91;ii&#93;&#58;Show&#40;&#41;\n ENDCASE\nNEXT\n&#58;&#58;grp_CALENDAR&#58;SetText&#40; CMONTH&#40; &#58;&#58;dAnchorDate &#41; + \" \" + STR&#40; YEAR&#40; &#58;&#58;dAnchorDate &#41; &#41; &#41;\n\nRETURN nil\n\n\nMETHOD SetAnchorDate&#40; dDate &#41; CLASS CALENDAR\n\n&#58;&#58;dAnchorDate &#58;= dDate\n&#58;&#58;iStartOfMonth &#58;= DOW&#40; BOM&#40; dDate &#41; &#41;\n&#58;&#58;iEndOfMonth &#58;= DaysInMonth&#40; MONTH&#40; dDate &#41;, IsLeap&#40; dDate &#41; &#41; + &#58;&#58;iStartOfMonth -1\n\n\nRETURN nil\n\n\nMETHOD MoveMonths&#40; iIncrement &#41; CLASS CALENDAR\n\niTemp &#58;= MONTH&#40; &#58;&#58;dAnchorDate &#41; + iIncrement\niNewMonth &#58;= iTemp % 12\nIF iNewMonth == 0\n iNewMonth &#58;= 12\nENDIF\niNewYear &#58;= YEAR&#40; &#58;&#58;dAnchorDate &#41; + &#40; &#40; iTemp - iNewMonth &#41; / 12 &#41;\ndTestDate &#58;= CTOD&#40; \"01/01/\" + STR&#40; iNewYear, 4, 0 &#41; &#41;\niNewDay &#58;= MIN&#40; DAY&#40; &#58;&#58;dAnchorDate &#41;, DaysInMonth&#40; iNewMonth, IsLeap&#40; dTestDate &#41; &#41; &#41;\n&#58;&#58;SetAnchorDate&#40; CTOD&#40; PADL&#40; ALLTRIM&#40; STR&#40; iNewDay, 2, 0 &#41; &#41;, 2 &#41; + \"/\" + PADL&#40; ALLTRIM&#40; STR&#40; iNewMonth, 2, 0 &#41; &#41;, 2 &#41; + \"/\" + STR&#40; iNewYear, 4, 0 &#41; &#41; &#41;\n&#58;&#58;SetButtons&#40;&#41;\n\nRETURN nil\n\n\nMETHOD MoveYears&#40; iIncrement &#41; CLASS CALENDAR\n\niNewYear &#58;= YEAR&#40; &#58;&#58;dAnchorDate &#41; + iIncrement\ndTestDate &#58;= CTOD&#40; \"01/01/\" + STR&#40; iNewYear, 4, 0 &#41; &#41;\niNewDay &#58;= MIN&#40; DAY&#40; &#58;&#58;dAnchorDate &#41;, DaysInMonth&#40; MONTH&#40; &#58;&#58;dAnchorDate &#41;, IsLeap&#40; dTestDate &#41; &#41; &#41;\n&#58;&#58;SetAnchorDate&#40; CTOD&#40; PADL&#40; ALLTRIM&#40; STR&#40; iNewDay, 2, 0 &#41; &#41;, 2 &#41; + \"/\" + PADL&#40; ALLTRIM&#40; STR&#40; MONTH&#40; &#58;&#58;dAnchorDate &#41;, 2, 0 &#41; &#41;, 2 &#41; + \"/\" + STR&#40; iNewYear, 4, 0 &#41; &#41; &#41;\n&#58;&#58;SetButtons&#40;&#41;\n\nRETURN nil[/code:twzt073y]\r\n\r\nRegards\r\nxProgrammer", "time": "01:56", "topic": "A simple month calendar", "username": "xProgrammer" } ]
A simple month calendar
[ { "date": "2008-07-29", "forum": "FiveLinux / FiveDroid (Android)", "text": "Doug,\r\n\r\nThanks for sharing it! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "08:19", "topic": "A simple month calendar", "username": "Antonio Linares" } ]
A simple month calendar
[ { "date": "2008-07-29", "forum": "FiveLinux / FiveDroid (Android)", "text": "Hi all\r\n\r\nI discovered a small glitch in my code. It occurred when MoveMonths() was used to move backwards enough for iTemp to go negative. This of course only happened when the move was back more than 1 month (which couldn't happen in the version given above).\r\n\r\nThe problem is with the % operator.\r\n\r\n-5 % 12 is giving -5 whereas I would have expected +7.\r\n\r\nSo the code can be corrected as follows. Replace:\r\n\r\n[code:2z5egdyp] iNewMonth &#58;= iTemp % 12[/code:2z5egdyp]\n\nWith:\n\n[code:2z5egdyp]IF iTemp >= 0\n iNewMonth &#58;= iTemp % 12\n ELSE\n iNewMonth &#58;= 12 + &#40;iTemp % 12 &#41;\nENDIF[/code:2z5egdyp]\r\n\r\nRegards\r\nDoug\r\n(xProgrammer)", "time": "23:35", "topic": "A simple month calendar", "username": "xProgrammer" } ]
A simple month calendar
[ { "date": "2021-06-03", "forum": "FiveWin for Harbour/xHarbour", "text": "Is there any easy slider-solution <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n\nI created a function, but a little bit complicated.\nThe rest of the gradientpainter is working\nNow I can select any background\n\nmaybe a calculation of the basic-RGB-value possible ?\n\n[img:39hf5xpy]http&#58;//www&#46;service-fivewin&#46;de/images/Slider1&#46;jg[/img:39hf5xpy]\n\n[img:39hf5xpy]http&#58;//www&#46;service-fivewin&#46;de/images/Slider2&#46;jg[/img:39hf5xpy]\n\nI tested saving and loading the basic-gradientbitmap\nnext using the nrow position from the slider to get the color\n\nFUNCTION GETCOLOR( nRow, nCol, oBmp )\nLOCAL hDC := CreateCompatibleDC( oBmp:GetDC() ) \nLOCAL hBmp := ReadBitmap( 0, \"Picker.bmp\" ) // the basic gradient bmp\nLOCAL hOldBmp := SelectObject( hDC, hBmp )\nLOCAL nRGBColor := GetPixel( hDC, nCol, nRow ) \n\nSelectObject( hDC, hOldBmp )\nDeleteObject( hBmp )\nDeleteDC( hDC )\noBmp:ReleaseDC()\n \nRETURN nRGBColor\n\nbest regards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "20:25", "topic": "A slider solution to adjust the color brightness ?", "username": "ukoenig" } ]
A slider solution to adjust the color brightness ?
[ { "date": "2021-06-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Uwe,\n\nYour function code seems correct, is it working fine ?\n\nGreat work!", "time": "09:18", "topic": "A slider solution to adjust the color brightness ?", "username": "Antonio Linares" } ]
A slider solution to adjust the color brightness ?
[ { "date": "2021-06-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Dear Antonio,\n\nnow I'm using a double-solution for the color-adjustment\n1. on image-click\n2. optional on slider-position\nthe sliderposition is adjusted to the position on imageclick\n\nthe clickposition inside the slider must\nbe the same like inside the image <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \nthe column-position is a given value\n[color=#0000FF:24wg6gwi]Pickvalues := PICK_COLOR( nSlidPos * 22, 8, oBmp ),[/color:24wg6gwi]\n\nbecause the bitmap is painted is that needed <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \n( save and restore )\n\noBmp:SaveToBmp( \"Picker.bmp\" )\nhBmp := ReadBitmap( 0, \"Picker.Bmp\" )\n\n[img:24wg6gwi]http&#58;//www&#46;service-fivewin&#46;de/images/Slider3&#46;jg[/img:24wg6gwi]\n\n[code=fw:24wg6gwi]<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;\">\"Slider.ch\"</span><br /><br /><span style=\"color: #00C800;\">STATIC</span> oDlg<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> oBmp, oSlider, nSlidPos, oCGet1, oCGet2, oCSay, nPickcolor, cPickcolor<br /><span style=\"color: #00C800;\">LOCAL</span> oFont, oPos, Pickvalues, cGrdCol, nPos, nGrdCol := <span style=\"color: #000000;\">255</span> <span style=\"color: #B900B9;\">// RED</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">NAME</span> <span style=\"color: #ff0000;\">\"Tahoma\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-16</span> BOLD<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;\">\"Testing colorchange \"</span> + FWVERSION ;<br /><span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">430</span>, <span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">PIXEL</span><br /><br />nPos := <span style=\"color: #000000;\">0.5</span><br /><br />cGrdCol := <span style=\"color: #ff0000;\">\"nRGB( \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nRGBRed<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\", \"</span> + ;<br />                ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nRGBGreen<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\", \"</span> + ;<br />                ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nRGBBlue<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">255</span> <span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br /><br />@ <span style=\"color: #000000;\">145</span>, <span style=\"color: #000000;\">45</span> <span style=\"color: #0000ff;\">SAY</span> oCSay <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"           \"</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">12</span>  <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont  BORDER <span style=\"color: #0000ff;\">UPDATE</span><br />oCSay:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, nGrdCol <span style=\"color: #000000;\">&#41;</span><br />@ <span style=\"color: #000000;\">160</span>, <span style=\"color: #000000;\">45</span> <span style=\"color: #0000ff;\">GET</span> oCGet1 <span style=\"color: #0000ff;\">VAR</span> nGrdCol  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">10</span>  <span style=\"color: #0000ff;\">PICTURE</span> <span style=\"color: #ff0000;\">\"99999999\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg  <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">UPDATE</span> <br />@ <span style=\"color: #000000;\">173</span>, <span style=\"color: #000000;\">45</span> <span style=\"color: #0000ff;\">GET</span> oCGet2 <span style=\"color: #0000ff;\">VAR</span> cGrdCol  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">85</span>, <span style=\"color: #000000;\">10</span>  <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont  <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">UPDATE</span> <br /><br />@ <span style=\"color: #000000;\">68</span>, <span style=\"color: #000000;\">95</span> <span style=\"color: #0000ff;\">SAY</span> oPos <span style=\"color: #0000ff;\">PROMPT</span> nPos <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">12</span>  <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">FONT</span> oFont  BORDER <span style=\"color: #0000ff;\">UPDATE</span><br /><br />@ <span style=\"color: #000000;\">15</span>, <span style=\"color: #000000;\">45</span> BITMAP oBmp FILENAME <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">115</span> <span style=\"color: #0000ff;\">OF</span> oDlg  ;<br /><span style=\"color: #0000ff;\">PIXEL</span>  <span style=\"color: #0000ff;\">ADJUST</span> BORDER <span style=\"color: #0000ff;\">UPDATE</span><br />oBmp:<span style=\"color: #000000;\">bPainted</span> := <span style=\"color: #000000;\">&#123;</span> |hDC| DRAW_BMP<span style=\"color: #000000;\">&#40;</span> hDC, oBmp, nGrdCol <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#125;</span><br />oBmp:<span style=\"color: #000000;\">bLClicked</span> := <span style=\"color: #000000;\">&#123;</span> | nRow, nCol | nPos := nRow / <span style=\"color: #000000;\">220</span>, oPos:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ; <br />                                                           oBmp:<span style=\"color: #000000;\">SaveToBmp</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Picker.bmp\"</span> <span style=\"color: #000000;\">&#41;</span>, ; <br />                                                           Pickvalues := PICK_COLOR<span style=\"color: #000000;\">&#40;</span> nRow, nCol, oBmp, nPos <span style=\"color: #000000;\">&#41;</span>, ; <br />                               nGrdCol := Pickvalues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, ;  <br />                               cGrdCol := Pickvalues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, ; <br />                                           oCSay:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, nGrdCol <span style=\"color: #000000;\">&#41;</span>, oCSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ; <br />                                           oCGet1:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oCGet2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ; <br />                               oSlider:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">&#40;</span> nRow / <span style=\"color: #000000;\">22</span> <span style=\"color: #000000;\">&#41;</span>, oSlider:<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 /><br /><br />nSlidPos := <span style=\"color: #000000;\">5</span><br /><span style=\"color: #B900B9;\">// MsgAlert( nSlidPos[1], \"Slider-Row\" ) , ; // 110 = 5 x 22</span><br />@ <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">70</span> SLIDER oSlider <span style=\"color: #0000ff;\">VAR</span> nSlidPos <span style=\"color: #0000ff;\">OF</span> oDlg ;<br />            <span style=\"color: #0000ff;\">VERTICAL</span> ;<br />            RANGE <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">10</span> ;<br />            COLORS CLR_RED, <span style=\"color: #000000;\">12632256</span>, CLR_CYAN ;<br />            MARKS <span style=\"color: #000000;\">20</span> ;<br />            <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">18</span>, <span style=\"color: #000000;\">125</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">UPDATE</span> ;<br />            <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">CHANGE</span> <span style=\"color: #000000;\">&#40;</span> nPos := nSlidPos / <span style=\"color: #000000;\">10</span>, oPos:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ; <br />                                   oBmp:<span style=\"color: #000000;\">SaveToBmp</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Picker.bmp\"</span> <span style=\"color: #000000;\">&#41;</span>, ; <br />                                       Pickvalues := PICK_COLOR<span style=\"color: #000000;\">&#40;</span> nSlidPos * <span style=\"color: #000000;\">22</span>, <span style=\"color: #000000;\">8</span>, oBmp, nPos <span style=\"color: #000000;\">&#41;</span>, ; <br />                                       nGrdCol := Pickvalues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>, ;  <br />                                       cGrdCol := Pickvalues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>, ; <br />                       oCSay:<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, nGrdCol <span style=\"color: #000000;\">&#41;</span>, oCSay:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, ; <br />                       oCGet1:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span>, oCGet2:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br /><br />@ <span style=\"color: #000000;\">195</span>, <span style=\"color: #000000;\">90</span> <span style=\"color: #0000ff;\">BTNBMP</span> <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"&EXIT\"</span>  <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">15</span>  <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #000000;\">2007</span>;<br /> TOP <span style=\"color: #0000ff;\">ACTION</span> oDlg:<span style=\"color: #000000;\">End</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 /><br />oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><span style=\"color: #B900B9;\">//------------- BMP-Brush -----------</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> DRAW_BMP<span style=\"color: #000000;\">&#40;</span> hDC, oBitmap, nColor <span style=\"color: #000000;\">&#41;</span> <br /><span style=\"color: #00C800;\">LOCAL</span> oBMPBrush, aGrad <br /><span style=\"color: #00C800;\">LOCAL</span> aRect := GETCLIENTRECT<span style=\"color: #000000;\">&#40;</span> oBitmap:<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">&#41;</span><br /><br />aGrad := <span style=\"color: #000000;\">&#123;</span> <span style=\"color: #000000;\">&#123;</span> .<span style=\"color: #000000;\">5</span>, CLR_WHITE, nColor <span style=\"color: #000000;\">&#125;</span>, <span style=\"color: #000000;\">&#123;</span> .<span style=\"color: #000000;\">5</span>, nColor, CLR_BLACK <span style=\"color: #000000;\">&#125;</span> <span style=\"color: #000000;\">&#125;</span><br /><br /><span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBMPBrush ;<br /><span style=\"color: #0000ff;\">COLOR</span> GradientFill<span style=\"color: #000000;\">&#40;</span> hDC,  <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span>, aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span>, aRect<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>, aGrad,  .T. <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// .T: = Vertical</span><br />oBMPBrush:<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: #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> PICK_COLOR<span style=\"color: #000000;\">&#40;</span> nRow, nCol, oBmp, nPos <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> hDC := CreateCompatibleDC<span style=\"color: #000000;\">&#40;</span> oBmp:<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 /><span style=\"color: #00C800;\">LOCAL</span> hBmp, nColor, hOldBmp, aValues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span><br /><br />hBmp        := ReadBitmap<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #ff0000;\">\"Picker.Bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />hOldBmp     := SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hBmp <span style=\"color: #000000;\">&#41;</span><br /><br />aValues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span>  := GetPixel<span style=\"color: #000000;\">&#40;</span> hDC, nCol, nRow <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">IF</span> nPos = <span style=\"color: #000000;\">0</span><br />    aValues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">16777215</span> <span style=\"color: #B900B9;\">// white</span><br /><span style=\"color: #00C800;\">ENDIF</span><br /><span style=\"color: #00C800;\">IF</span> nPos = <span style=\"color: #000000;\">1</span> <br />    aValues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// black</span><br /><span style=\"color: #00C800;\">ENDIF</span><br />SelectObject<span style=\"color: #000000;\">&#40;</span> hDC, hOldBmp <span style=\"color: #000000;\">&#41;</span><br />DeleteObject<span style=\"color: #000000;\">&#40;</span> hBmp <span style=\"color: #000000;\">&#41;</span><br />DeleteDC<span style=\"color: #000000;\">&#40;</span> hDC <span style=\"color: #000000;\">&#41;</span><br />oBmp:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />nRed    := nRGBRed<span style=\"color: #000000;\">&#40;</span> aValues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />nGreen  := nRGBGreen<span style=\"color: #000000;\">&#40;</span>aValues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br />nBlue   := nRGBBlue<span style=\"color: #000000;\">&#40;</span> aValues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span><br /> <br />aValues<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">&#93;</span>   := <span style=\"color: #ff0000;\">\"nRGB( \"</span> + ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nRed<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\", \"</span> + ;<br />                ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nGreen<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\", \"</span> + ;<br />                ALLTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>nBlue<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\" )\"</span><br /><br /><span style=\"color: #B900B9;\">//MsgAlert( nRow, \"Img-Row\" ) // 110 = 0.5</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> aValues<br /> </div>[/code:24wg6gwi]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "10:08", "topic": "A slider solution to adjust the color brightness ?", "username": "ukoenig" } ]
A slider solution to adjust the color brightness ?
[ { "date": "2008-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\ni noticed, that after adding a new Cell-bmp \r\nbigger than the old row-height,\r\nthe row-height is not adjusted to the new bmp-size.\r\n\r\nIs there a method to call, after adding the bmp ?\r\nI tested some like adjust and oBrw:nRowheight\r\nbut no change. \r\nI think there should be a new row-height-calculation \r\ninside the xbrowse-class.\r\n\r\n[img:25s8ht8a]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrw13&#46;jpg[/img:25s8ht8a]\r\n\r\nregards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "20:02", "topic": "A solution <Row-adjust> after adding a new Cell-BMP.", "username": "ukoenig" } ]
A solution <Row-adjust> after adding a new Cell-BMP.
[ { "date": "2008-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\nI added a few lines in my source to solve the problem\r\nof different BMP-Hight and row-adjust.\r\nI works fine now.\r\nIs it possible to do the adjust-calculation in the xBrowse class ?\r\n\r\n[img:bxnx8gm0]http&#58;//www&#46;pflegeplus&#46;com/pictures/xbrw14&#46;jpg[/img:bxnx8gm0]\r\n\r\n[code:bxnx8gm0]\n\n//------------------- PAINT CELL-BITMAP -----------//\n\nFUNCTION xBNEWF5&#40;oLbx0&#41;\nLOCAL oBmp1\n\noCol &#58;= oLbx0&#58;aCols&#91; 1 &#93;&#58;AddBmpFile&#40;LOGO2&#41;\noLbx0&#58;aCols&#91; 1 &#93;&#58;bBmpData &#58;= &#123;|| oLbx0&#58;nArrayAt &#125;\n\nDEFINE BITMAP oBmp1 FILENAME LOGO2\nnBMPHight &#58;= oBmp1&#58;nHeight&#40;&#41;\noBmp1&#58;End&#40;&#41;\nIF oLbx0&#58;nRowHeight < nBMPHight\n oLbx0&#58;nRowHeight &#58;= nBMPHight + 4\nENDIF\n\noLbx0&#58;Refresh&#40;&#41;\n\nRETURN&#40; NIL &#41;\n\n[/code:bxnx8gm0]\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "22:06", "topic": "A solution <Row-adjust> after adding a new Cell-BMP.", "username": "ukoenig" } ]
A solution <Row-adjust> after adding a new Cell-BMP.
[ { "date": "2008-09-19", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe,\r\n\r\nWe are reviewing the xbrowse version that was going to be published for 8.09.\r\n\r\nWe are going to review the way to implement your request too, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->", "time": "22:28", "topic": "A solution <Row-adjust> after adding a new Cell-BMP.", "username": "Antonio Linares" } ]
A solution <Row-adjust> after adding a new Cell-BMP.
[ { "date": "2016-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\n\nis it possible to display a animated GIF inside BTNBMP ?\n\nI can use a TRANSPARENT button and split the animated GIF to it single images\nNext using oBtn:SetFile(Frame&No.gif ) inside a loop on buttonclick\nbut I need up to 20 single images.\nNext to perform the ACTION during the GIF is running.\nMaybe possible ?\n\nIt would be a nice extension of BTNBMP.\nFor the moment only the 1. image is displayed.\n\n[img:2egfj8rs]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Animat1&#46;jpg[/img:2egfj8rs]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "11:25", "topic": "A solution for BTNBMP using animated GIF's", "username": "ukoenig" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "I do not understand your needs\nBut this works for me\n\n[code=fw:jsxgpe2g]<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;\">\"gif.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oDlg, oBtn<br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Attention\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">400</span>, <span style=\"color: #000000;\">600</span><br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">11</span> BUTTONBMP oBtn <span style=\"color: #0000ff;\">PROMPT</span> <span style=\"color: #ff0000;\">\"Waiting to use the calculator\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">200</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"Hello\"</span> <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> PlaceGif<span style=\"color: #000000;\">&#40;</span> oBtn <span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #00C800;\">function</span> PlaceGif<span style=\"color: #000000;\">&#40;</span> oDlg <span style=\"color: #000000;\">&#41;</span><br /><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">local</span> oGif<br /><br />&nbsp; &nbsp;@ <span style=\"color: #000000;\">19</span>, <span style=\"color: #000000;\">10</span> GIF oGif FILENAME <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\g</span>ifs<span style=\"color: #000000;\">\\g</span>if05.gif\"</span> <span style=\"color: #0000ff;\">OF</span> oDlg<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br />&nbsp;</div>[/code:jsxgpe2g]", "time": "15:04", "topic": "A solution for BTNBMP using animated GIF's", "username": "cnavarro" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nthat is NOT the result, I'm looking for\nthe problem : the animated GIF is NOT shown transparent and the button-action is disabled \nas well NO tooltip and NO prompt is visible !!!\n\nYou can download my complete sample, to see what I mean :\n( as well You can enable Your solution < PLACEGIF > for a test )\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Anigif2.zip\">http://www.pflegeplus.com/DOWNLOADS/Anigif2.zip</a><!-- m -->\n\n[b:2unagpui]the RESULT using function < PLACEGIF >[/b:2unagpui]\n\n[img:2unagpui]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Animat2&#46;jpg[/img:2unagpui]\n\nmy solution :\nreplacing the button-image calling a gif-paint-function\n\n@ 30, 85 BTNBMP oBtn[7] SIZE 90, 90 OF oDlg 2007 ;\nFILENAME c_path1 + \"Animat_1.gif\" ; // the 1. image of a set. Using a animated gif, only the 1. image is visible\nCENTER ROUND ;\nPROMPT \"&Run ..\" ;\nFONT oTextFont ;\n[color=#0000FF:2unagpui][b:2unagpui]ACTION ( RUN_ACTION(oBtn), lRun := .T., GIF_RUN(oBtn) )[/b:2unagpui][/color:2unagpui] \n// calling the single images of a defined set. The animated GIF is splitted to the single-images\noBtn[7]:lTransparent := .T.\noBtn[7]:SetColor( 128 )\noBtn[7]:cTooltip := { \"RUN\" + CRLF + ;\n\"animated GIF\",\"RUN\", 1, CLR_BLACK, 14089979 }\n\nregards\nUwe <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->", "time": "15:24", "topic": "A solution for BTNBMP using animated GIF's", "username": "ukoenig" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe, your sample run OK, for me\n\n[img:2pwq4y42]https&#58;//s32&#46;postimg&#46;org/b5wlk3vph/0061&#46;png[/img:2pwq4y42]", "time": "19:57", "topic": "A solution for BTNBMP using animated GIF's", "username": "cnavarro" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Uwe, sorry,\nNow I understand your problem\nI'll investigate", "time": "20:28", "topic": "A solution for BTNBMP using animated GIF's", "username": "cnavarro" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nI added another set in blue using bmp-format NO alpha < 1.bmp - 18.bmp >\n( works as well and can be created as resource )\nadded a different start and endimage\n\nThe solution could be used like in windows shutdown or start ( with button-style NOBORDER )\n\n<!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/DOWNLOADS/Anigif2.zip\">http://www.pflegeplus.com/DOWNLOADS/Anigif2.zip</a><!-- m -->\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "20:59", "topic": "A solution for BTNBMP using animated GIF's", "username": "ukoenig" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal . Si interesa tengo algo con gdiplus que funciona con un código muy similar pero sin crear los frames externos ... \nel código seria similar a esto . ( faltaría liberar hbitmaps ) \nel exe funcionando <!-- m --><a class=\"postlink\" href=\"https://www.dropbox.com/s/srnfuaa84h9rnui/anibtn.exe?dl=0\">https://www.dropbox.com/s/srnfuaa84h9rn ... n.exe?dl=0</a><!-- m -->\n[code=fw:2isul5pg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GIF_RUN<span style=\"color: #000000;\">&#40;</span>oBtn<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">local</span> hbitmap<br /><span style=\"color: #00C800;\">local</span> hbmpFrame<br /><span style=\"color: #00C800;\">local</span> hbmp<br /><span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">1</span> <br /><span style=\"color: #00C800;\">local</span> nLen <br /><br />hbmp:= GDIPLUSIMAGEFFILE<span style=\"color: #000000;\">&#40;</span> c_path1 + <span style=\"color: #ff0000;\">\"animat\"</span> + <span style=\"color: #ff0000;\">\".gif\"</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">if</span> &nbsp;GDIPLUSISANIMATEDGIF<span style=\"color: #000000;\">&#40;</span> hbmp <span style=\"color: #000000;\">&#41;</span> <br />&nbsp; &nbsp; nLen:= GDIPLUSIMGGETFRAMECOUNT<span style=\"color: #000000;\">&#40;</span>hbmp<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> lRun = .T.<br />&nbsp; &nbsp; <span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> nLen<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">IF</span> lRun = .F.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; EXIT<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #00C800;\">ENDIF</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hbmpFrame := GDIPLUSIMGGETFRAME<span style=\"color: #000000;\">&#40;</span>hbmp, i<span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;hBitmap:= GdiPlusCreateHBitmapImage<span style=\"color: #000000;\">&#40;</span> hbmpFrame <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">LoadBitmaps</span><span style=\"color: #000000;\">&#40;</span> &nbsp;bitmap <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; SYSWAIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0.1</span><span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; <span style=\"color: #00C800;\">NEXT</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">ENDDO</span><br /><span style=\"color: #00C800;\">endif</span><br />oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">7</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br />&nbsp;</div>[/code:2isul5pg]", "time": "23:09", "topic": "A solution for BTNBMP using animated GIF's", "username": "mastintin" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-20", "forum": "FiveWin for Harbour/xHarbour", "text": "Manuel, si, eso ya lo había visto, muchas gracias\nEl problema es que cuando se muestra un GIF ( no las imágenes sucesivamente como ahora ), el GIF no se muestra transparente\n\nSaludos\n\nManuel, yes, that I had already seen, thank you very much\nThe problem is that when shown a GIF (not images successively as now), the GIF is not displayed transparent\n\nRegards", "time": "23:20", "topic": "A solution for BTNBMP using animated GIF's", "username": "cnavarro" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-21", "forum": "FiveWin for Harbour/xHarbour", "text": "[quote=\"cnavarro\":1n7jlzdz]Manuel, si, eso ya lo había visto, muchas gracias\nEl problema es que cuando se muestra un GIF ( no las imágenes sucesivamente como ahora ), el GIF no se muestra transparente\n\nSaludos\n\nManuel, yes, that I had already seen, thank you very much\nThe problem is that when shown a GIF (not images successively as now), the GIF is not displayed transparent\n\nRegards[/quote:1n7jlzdz]\n\nCristobal en mis pruebas aqui ....\n\nsi uso como imagen \n\n@ 30, 85 BTNBMP oBtn[7] SIZE 90, 90 OF oDlg 2007 ; \nFILENAME c_path1 + \"Animat_1\" + \".gif\" ;\n\nla imagen me sale con fondo negro \n\n\n@ 30, 85 BTNBMP oBtn[7] SIZE 90, 90 OF oDlg 2007 ; \nFILENAME c_path1 + \"Animat\" + \".gif\" ;\n\nla imagen sale trasparente .\n\nSi miras la diferencia entre ellas es que ésta ultima su tipo es RGB 8 bits mientras la otra es indexado 8 bits. \nParece que gdiplus no detecta correctamente como trasparente las imagenes indexadas .", "time": "09:52", "topic": "A solution for BTNBMP using animated GIF's", "username": "mastintin" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-22", "forum": "FiveWin for Harbour/xHarbour", "text": "Cristobal,\n\nI added some more tests and all animations are working fine\nSome new sets are added and working with resources.\n\n[img:2e6tf490]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Anigif3&#46;jpg[/img:2e6tf490]\n\n[img:2e6tf490]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Anigif4&#46;jpg[/img:2e6tf490]\n\n1 small problem with sample 2 :\nA button-animation is running as long < lRun = .T. >\nIs there a way as soon closing MS-calc.exe, to set < lRun = .F.> to stop the animation ?\n\nI tested inside the loop with\nMsgAlert( [color=#0000FF:2e6tf490][b:2e6tf490]IsExeRunning( \"calc.exe\" )[/b:2e6tf490][/color:2e6tf490] )\n1. lRun starts with .F.\n2. after open calc.exe lRun shows .T.\n3. closing calc.exe < IsExeRunning( \"calc.exe\" ) > still shows .T.\n\n[code=fw:2e6tf490]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> GIF_RUN2<span style=\"color: #000000;\">&#40;</span>oBtn<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">1</span> <br /><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> lRun = .T.<br />   MsgAlert<span style=\"color: #000000;\">&#40;</span> IsExeRunning<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"calc.exe\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">IF</span> !IsExeRunning<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #ff0000;\">\"calc.exe\"</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// .F. for animation break</span><br />      lRun := .F.<br />   <span style=\"color: #00C800;\">ENDIF</span><br />   <span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">18</span><br />      <span style=\"color: #00C800;\">IF</span> lRun = .F.<br />         EXIT<br />      <span style=\"color: #00C800;\">ENDIF</span><br />      oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFile</span><span style=\"color: #000000;\">&#40;</span> c_path1 + <span style=\"color: #ff0000;\">\"A_\"</span> + LTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>I<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> + <span style=\"color: #ff0000;\">\".gif\"</span> <span style=\"color: #000000;\">&#41;</span><br />      oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />      SYSWAIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0.1</span><span style=\"color: #000000;\">&#41;</span><br />   <span style=\"color: #00C800;\">NEXT</span><br /><span style=\"color: #00C800;\">ENDDO</span><br />oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFile</span><span style=\"color: #000000;\">&#40;</span> c_path1 + <span style=\"color: #ff0000;\">\"Calc.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />oBtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">8</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:2e6tf490]\n\nregards\nUwe <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: -->", "time": "12:01", "topic": "A solution for BTNBMP using animated GIF's", "username": "ukoenig" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2016-06-29", "forum": "FiveWin for Harbour/xHarbour", "text": "I added some more tests\nNew : sample using a DLL and a sample running a external EXE-file\n\n1. I splitted the anigif to single frames\n2. converted the frames to BMP\n3. created a DLL\n4. added the frames using numeric resource-names\n5. calling the resources from inside a FOR / NEXT for the button\n\n[img:33wfq2h5]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Dll2&#46;jpg[/img:33wfq2h5]\n\n[code=fw:33wfq2h5]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #B900B9;\">// the DLL includes the frames from < C_1.bmp to C_12.bmp ></span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> GIF_RUN4<span style=\"color: #000000;\">&#40;</span>cStyle, oBtn<span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">LOCAL</span> I := <span style=\"color: #000000;\">1</span> <br /><br /><span style=\"color: #00C800;\">DO</span> <span style=\"color: #00C800;\">WHILE</span> lRun = .T.<br />    <span style=\"color: #00C800;\">FOR</span> I := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">12</span><br />        <span style=\"color: #00C800;\">IF</span> lRun = .F.<br />            EXIT<br />        <span style=\"color: #00C800;\">ENDIF</span><br />        oABtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFile</span><span style=\"color: #000000;\">&#40;</span> cStyle + LTRIM<span style=\"color: #000000;\">&#40;</span>STR<span style=\"color: #000000;\">&#40;</span>I<span style=\"color: #000000;\">&#41;</span><span style=\"color: #000000;\">&#41;</span> <span style=\"color: #000000;\">&#41;</span> <span style=\"color: #B900B9;\">// resource from DLL</span><br />        oABtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br />        SYSWAIT<span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">0.1</span><span style=\"color: #000000;\">&#41;</span><br />    <span style=\"color: #00C800;\">NEXT</span><br /><span style=\"color: #00C800;\">ENDDO</span><br />oABtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">SetFile</span><span style=\"color: #000000;\">&#40;</span> c_path1 + <span style=\"color: #ff0000;\">\"Dll.bmp\"</span> <span style=\"color: #000000;\">&#41;</span><br />oABtn<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">&#40;</span><span style=\"color: #000000;\">&#41;</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:33wfq2h5]\n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->", "time": "19:52", "topic": "A solution for BTNBMP using animated GIF's", "username": "ukoenig" } ]
A solution for BTNBMP using animated GIF's
[ { "date": "2008-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello,\r\n\r\ni'm busy, to create a new easy to use 3 step - MAKE-utility.\r\n\r\n1. define a project-name.\r\n2. select HARBOUR or xHARBOUR.\r\n3. select your project path.\r\n\r\nthats all\r\n\r\nI want a automatic find of the \r\ninstalled FWH, xHARBOUR, HARBOUR, BORLAND-files.\r\n\r\n------ Start of the MAKE-script\r\n\r\n#Borland make sample, (c) FiveTech Software 2005\r\n\r\nHBDIR=d:\\xharbour\r\nBCDIR=d:\\bcc55\r\nFWDIR=d:\\fwh\r\n\r\n-----------------------------\r\n\r\nAt first i have to scan for drives : \r\n\r\naDrives( [<nType>] ) --> aDrives \r\n\r\n\r\nthan in a loop of the aDrives-array for the files : \r\n\r\naFindFile( <cFileName>, <cPath>, <aResult> ) --> aResult \r\n\r\nI tested aFindfile() as stand-alone prog., but don't get it working\r\nbound-error and so on.\r\n\r\naResult1 := {} // Borland\r\naResult2 := {} // Harbour\r\naResult3 := {} // FWH\r\n\r\n// <cFileName> File to search. \r\n// <cPath> Path of beginning of the search. \r\n// <aResult> Array where the result of the search will be stored. \r\n\r\naFindFile( \"BCC32.exe\", \"c:\", aResult1 ) // starting from c:\r\n\t msgalert( aResult1[1][1] ) ?????\r\naFindFile( \"HARBOUR.exe\", \"c:\", aResult2 )\r\n\t msgalert( aResult2[1][1] ) ?????\r\naFindFile( \"FIVEH.lib\", \"c:\", aResult3 )\r\n msgalert( aResult3[1][1] ) ?????\r\n\r\nsomebody knows, how the structure of the return-array looks ?\r\ni couldn't find a sample.\r\n\r\nis there another way ( maybe a API-function ) \r\nto scan for the directory infos ?\r\n\r\nBest Regards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->", "time": "09:43", "topic": "A straight FILE-FIND - function ?", "username": "ukoenig" } ]
A straight FILE-FIND - function ?
[ { "date": "2008-07-25", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello Uwe,\r\nI sent you my snipkeeper. Please have a look into it.\r\nRegards,\r\nOtto", "time": "10:05", "topic": "A straight FILE-FIND - function ?", "username": "Otto" } ]
A straight FILE-FIND - function ?
[ { "date": "2008-07-26", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Otto.\r\n\r\nCould you send me a copy as well?", "time": "23:32", "topic": "A straight FILE-FIND - function ?", "username": "Jeff Barnes" } ]
A straight FILE-FIND - function ?
[ { "date": "2008-07-27", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi all\r\n\r\nI'm working on a FiveLinux make utility. To this end I have written a FILES class and worked on some shell scripts including providing the date and time of compilation as a define for the xHarbour compiler so you can know exactly when any executable file was compiled. I have shown that I can happily compile and link FiveLinux applications from my FiveLinux utility.\r\n\r\nDOS/Windows batch files aren't as capable as shell scripts (I think) so a FiveWin version might need the utility to a bit more work in terms of generating a batch file to run or run each step.\r\n\r\nMy current shell script is as follows:\r\n\r\n[code:1kclito3]#!/bin/bash\n# m&#46;sh\n\nbuilddate=$&#40;date +\"%d/%m/%Y@%T\"&#41;\nstrBD=\"\"\nstrBD+='-dkBDATE=\"'\nstrBD+=$&#123;builddate&#125;\nstrBD+='\"'\necho date string is $&#123;strBD&#125;\n\nif &#91; $# = 0 &#93;; then\n echo syntax&#58; &#46;/m&#46;sh project\n echo where project is the name of the Five Linux project &#91;&#46;flp&#93; file\n exit\nfi\n\ncheck_errs&#40;&#41;\n&#123;\n # Parameter 1 is the return code\n # Parameter 2 is text to display on failure&#46;\n if &#91; \"$&#123;1&#125;\" -ne \"0\" &#93;; then\n echo \"ERROR # $&#123;1&#125; &#58; $&#123;2&#125;\"\n exit $&#123;1&#125;\n fi\n&#125;\n\ncompile_prg&#40;&#41;\n&#123;\n # Parameter 1 is the module name \n echo compiling $1&#46;prg xHarbour code to C code\n &#46;/&#46;&#46;/&#46;&#46;/xharbour/bin/harbour $1&#46;prg -n -I&#46;/&#46;&#46;/include -I&#46;/&#46;&#46;/&#46;&#46;/xharbour/include -q0 $&#123;strBD&#125;\n check_errs $? \"compiling $&#123;1&#125;&#46;prg\"\n echo compiling $1&#46;c to object code\n gcc $1&#46;c -c -I&#46;/&#46;&#46;/include -I&#46;/&#46;&#46;/&#46;&#46;/xharbour/include `pkg-config --cflags gtk+-2&#46;0`\n check_errs $? \"compiling $&#123;1&#125;&#46;c\"\n rm $1&#46;c\n&#125;\n\n&#46; $&#123;1&#125;&#46;flp\necho\necho Building $&#123;appname&#125;\necho\n\n\nobjects=\"\"\nfor m in $&#123;sources&#125;\ndo\n compile_prg $&#123;m&#125;\n objects+=\" $&#123;m&#125;&#46;o\"\ndone\nlibs=\"-lfivex -lfivec -lcommon -lvm -lrtl -lrdd -lmacro -llang -lcodepage -lpp -ldbfntx -ldbfcdx -ldbffpt -lhbsix -lhsx -lpcrepos -lusrrdd -ltip -lct -lcgi -lgtnul -lgtstd -lgtcgi -lgtcrs -lhbodbc -ldebug -lm -lgpm -lncurses\"\nldirs=\"-L&#46;/&#46;&#46;/lib -L&#46;/&#46;&#46;/&#46;&#46;/xharbour/lib\"\ncfigs=\"`pkg-config --libs gtk+-2&#46;0` `pkg-config --libs libglade-2&#46;0` `pkg-config --libs libgnomeprintui-2&#46;2`\"\n\necho linking to create $&#123;output&#125;\ngcc $&#123;objects&#125; -o$&#123;output&#125; $&#123;ldirs&#125; $&#123;cfigs&#125; -Wl,--start-group $&#123;libs&#125; -Wl,--end-group\n\necho removing object files\nfor m in $&#123;sources&#125;\ndo\n rm $&#123;m&#125;&#46;o\ndone\n\necho done![/code:1kclito3]\n\nThe project (.flp) file is what varies. It is included by the line\n\n[code:1kclito3]&#46; $&#123;1&#125;&#46;flp[/code:1kclito3]\n\nit's name having been passed in as the parameter to the shell script. This file looks like this:\n\n[code:1kclito3]#!/bin/bash\n\nappname=\"mSYS Medical Software\"\noutput=\"mSYS\"\nsources=\"mSYS \nmTEMLIST \nxOBJECTS \nPATIENT_Class \nPATFILE_Class \nEXTEND5 \nDOCTOR_Classes \nOSTEO_Class \nSINGLE_Class\nxPATIENT_Class \nPRINTERS\nRECORD_Class\"[/code:1kclito3]\n\nwhich can be generated easily by the utility. Please note that the utility isn't finished yet. But the main thing is to perfect the FILES class (I have some issues with UPDATE option on BROWSEs under FiveLinux).\n\nA utility that could also handle both FiveLinux and FiveWin would be nice (ie same source code)\n\nMy FILES class as it stands is as follows:\n\n[code:1kclito3]CLASS FILES\n\nDATA sDir /** string&#58; absolute directory name of directory to list */\nDATA aDirs /** array&#58; of directory names of above directory */\nDATA aFDirInfo /** array&#58; of contents of above directory */\nDATA lEntries /** logical&#58; aFDirInfo has real entries rather than just a dummy entry so browse doesn't crash */\nDATA brw_FILE_LIST /** object&#58; file list browse object */\nDATA bInclude /** code block&#58; evaluated to determine if a file entry should be included */\nDATA sSelectedFile /** string&#58; the name of the selected file */\nDATA lSelectionMade /** logical&#58; a file has been selected */\n\n\nMETHOD New&#40;&#41; CONSTRUCTOR\nMETHOD GetList&#40; plUpdateDirs &#41;\nMETHOD Select&#40; psWhat, psFullName &#41;\nMETHOD ChooseDir&#40; piLevel &#41;\nMETHOD Select_Clicked&#40;&#41;\n\nENDCLASS\n\nMETHOD New&#40;&#41; CLASS FILES\n\n&#58;&#58;aFDirInfo &#58;= ARRAY&#40; 0 &#41;\n\nRETURN self\n\n\nMETHOD GetList&#40; plUpdateDirs &#41; CLASS FILES\n\nLOCAL sTokenEnv /** string&#58; work variable for tokeniser */\nLOCAL iDirDepth /** integer&#58; depth of directory */\nLOCAL aDirInfo /** array&#58; of directory contents unsorted and unfiltered */\nLOCAL aEntry /** array&#58; used for building &#58;&#58;aFDirInfo entries*/\nLOCAL lInclude /** logical&#58; should this entry be included in the filtered list */\n\nIF plUpdateDirs\n &#58;&#58;aDirs &#58;= ARRAY&#40; 0 &#41;\n AAdd&#40; &#58;&#58;aDirs, \"/\" &#41;\n &#58;&#58;sDir &#58;= CurDirX&#40;&#41;\n TokenInit&#40; @&#58;&#58;sDir, \"/\", 0, @sTokenEnv &#41;\n DO WHILE &#46;NOT&#46; TokenEnd&#40; @sTokenEnv &#41;\n sToken &#58;= TokenNext&#40; @&#58;&#58;sDir, , @sTokenEnv &#41;\n AAdd&#40; &#58;&#58;aDirs, sToken &#41;\n ENDDO\nENDIF\n// ? \"Length of aDirs\", LEN&#40; &#58;&#58;aDirs &#41;\n// ? \"aDirs&#91;1&#93;\", &#58;&#58;aDirs&#91;1&#93;\n// ? \"aDirs&#91;2&#93;\", &#58;&#58;aDirs&#91;2&#93;\n\naDirInfo &#58;= Directory&#40; &#58;&#58;sDir + \"*\", \"d\" &#41;\n// MsgInfo&#40; \"raw entries = \" + STR&#40; LEN&#40; aDirInfo &#41; &#41; &#41;\n// &#58;&#58;aFDirInfo &#58;= ARRAY&#40; 0 &#41;\nASize&#40; &#58;&#58;aFDirInfo, 0 &#41;\nFOR ii = 1 TO LEN&#40; aDirInfo &#41;\n // ? aDirInfo&#91;ii&#93;&#91;1&#93;, aDirInfo&#91;ii&#93;&#91;5&#93;\n IF aDirInfo&#91;ii&#93;&#91;5&#93; = \"D\"\n aENTRY &#58;= ARRAY&#40; 0 &#41;\n AADD&#40; aEntry, aDirInfo&#91;ii&#93;&#91;1&#93; &#41;\n AADD&#40; aEntry, \"&#40;dir&#41;\" &#41;\n AADD&#40; &#58;&#58;aFDirInfo, aEntry &#41;\n ELSE\n // IF RIGHT&#40; aDirInfo&#91;ii&#93;&#91;1&#93;, 4 &#41; = \"&#46;flp\"\n lInclude &#58;= Eval&#40; &#58;&#58;bInclude, aDirInfo&#91;ii&#93;&#91;1&#93; &#41;\n IF lInclude\n aENTRY &#58;= ARRAY&#40; 0 &#41;\n AADD&#40; aEntry, aDirInfo&#91;ii&#93;&#91;1&#93; &#41;\n AADD&#40; aEntry, \"&#40;file&#41;\" &#41;\n AADD&#40; &#58;&#58;aFDirInfo, aEntry &#41;\n ENDIF\n ENDIF\nNEXT\n\nASORT&#40; &#58;&#58;aFDirInfo, , , &#123; |x, y| &#40; x&#91;2&#93; < y&#91;2&#93; &#41; &#46;OR&#46; &#40; &#40;x&#91;2&#93; = y&#91;2&#93; &#41; &#46;AND&#46; &#40; UPPER&#40; x&#91;1&#93; &#41; < UPPER&#40; y&#91;1&#93; &#41; &#41; &#41; &#125; &#41;\nIF LEN&#40; &#58;&#58;aFDirInfo &#41; < 1\n aENTRY &#58;= ARRAY&#40; 0 &#41;\n AAdd&#40; aENTRY, \"\" &#41;\n AAdd&#40; aENTRY, \"\" &#41;\n AAdd&#40; &#58;&#58;aFDirInfo, aENTRY &#41;\n &#58;&#58;lEntries &#58;= &#46;F&#46;\n ELSE\n &#58;&#58;lEntries &#58;= &#46;T&#46;\nENDIF\nRETURN nil\n\nMETHOD Select&#40; psWhat, psFullName &#41; CLASS FILES\n\nLOCAL dlg_SELECT_FILE /** string&#58; file selection dialog */\nLOCAL btn_SELECT /** object &#40;button&#41;&#58; select button on dlg_SELECT_FILE */\nLOCAL sTitle /** string&#58; dialog title */\nLOCAL iNextCol /** integer&#58; horizontal position of next directory button */\nLOCAL iDirDepth /** integer&#58; number of directory levels */\nLOCAL ii /** integer&#58; loop counter */\nLOCAL oThisButton /** object &#40;button&#41;&#58; store buttons so their properties can be manipulated */\nLOCAL sThisLabel /** string&#58; directory name = label for this button */\nLOCAL iThisWidth /** integer&#58; calculated required button width */\nLOCAL lLoop /** logical&#58; loop controller */\n\nsTitle &#58;= \"Open \" + psWhat\nlLoop &#58;= &#46;T&#46;\nDO WHILE lLoop\n DEFINE DIALOG dlg_SELECT_FILE TITLE sTitle SIZE 600, 800\n iNextCol &#58;= 4\n iDirDepth &#58;= LEN&#40; &#58;&#58;aDirs &#41;\n FOR ii = 1 TO iDirDepth\n sThisLabel &#58;= &#58;&#58;aDirs&#91;ii&#93;\n iThisWidth &#58;= &#40; &#40; LEN&#40; sThisLabel &#41; + 2 &#41; * 8 &#41;\n @ 60, iNextCol BUTTON oThisButton PROMPT sThisLabel SIZE iThisWidth, 27 ;\n ACTION &#40; &#58;&#58;ChooseDir&#40; o&#58;cargo &#41;, &#58;&#58;brw_FILE_LIST&#58;SetArray&#40; &#58;&#58;aFDirInfo &#41;, dlg_SELECT_FILE&#58;Refresh&#40;&#41; &#41; OF dlg_SELECT_FILE PIXEL\n iNextCol += &#40;iThisWidth + 6 &#41;\n oThisButton&#58;cargo &#58;= ii\n NEXT\n @ 9, 0&#46;4 BROWSE &#58;&#58;brw_FILE_LIST ;\n FIELDS &#58;&#58;aFDirInfo&#91;&#58;&#58;brw_FILE_LIST&#58;nAt&#93;&#91;2&#93;, &#58;&#58;aFDirInfo&#91;&#58;&#58;brw_FILE_LIST&#58;nAt&#93;&#91;1&#93; ;\n HEADERS \"Type\", \"File Name\" SIZE 460, 510 OF dlg_SELECT_FILE\n BrwSetColWidths&#40; &#58;&#58;brw_FILE_LIST , &#123; 60, 380 &#125; &#41;\n &#58;&#58;brw_FILE_LIST&#58;iLength &#58;= LEN&#40; &#58;&#58;aFDirInfo &#41;\n &#58;&#58;brw_FILE_LIST&#58;SetArray&#40; &#58;&#58;aFDirInfo &#41;\n &#58;&#58;brw_FILE_LIST&#58;bLDblClick &#58;= &#123; | nRow, nCol | btn_SELECT&#58;Click&#40;&#41; &#125;\n @ 700, 10 BUTTON btn_SELECT PROMPT \"Select\" ;\n ACTION &#40; lLoop &#58;= &#58;&#58;Select_Clicked&#40; &#58;&#58;sDir + &#58;&#58;aFDirInfo&#91;&#58;&#58;brw_FILE_LIST&#58;nAt&#93;&#91;1&#93; &#41;, ;\n IF&#40; !lLoop, dlg_SELECT_FILE&#58;End&#40;&#41;, dlg_SELECT_FILE&#58;End&#40;&#41; &#41; &#41; ;\n WHEN &#58;&#58;lEntries OF dlg_SELECT_FILE PIXEL UPDATE\n// ACTION &#40; lLoop &#58;= &#58;&#58;Select_Clicked&#40; &#58;&#58;sDir + &#58;&#58;aFDirInfo&#91;&#58;&#58;brw_FILE_LIST&#58;nAt&#93;&#91;1&#93; &#41;, IF&#40; lLoop, dlg_SELECT_FILE&#58;Refresh&#40;&#41;, dlg_SELECT_FILE&#58;End&#40;&#41; &#41; &#41; ;\n// ACTION &#40; &#58;&#58;Select_Clicked&#40; &#58;&#58;sDir + &#58;&#58;aFDirInfo&#91;&#58;&#58;brw_FILE_LIST&#58;nAt&#93;&#91;1&#93; &#41;, dlg_SELECT_FILE&#58;End&#40;&#41; &#41; ;\n @ 700, 110 BUTTON \"Cancel\" ;\n ACTION &#40; lLoop &#58;= &#46;F&#46;, dlg_SELECT_FILE&#58;End&#40;&#41; &#41; ;\n OF dlg_SELECT_FILE PIXEL\n ACTIVATE DIALOG dlg_SELECT_FILE CENTERED\nENDDO\nRETURN nil\n\nMETHOD ChooseDir&#40; piLevel &#41; CLASS FILES\n\nLOCAL sDirName\n\nsDirName &#58;= \"/\"\nIF piLevel > 1\n FOR ii = 2 TO piLevel\n sDirName += &#58;&#58;aDirs&#91;ii&#93; + \"/\"\n NEXT\nENDIF\n// MsgInfo&#40; sDirName &#41;\n&#58;&#58;sDir &#58;= sDirName\nDirChange&#40; &#58;&#58;sDir &#41;\n&#58;&#58;GetList&#40; &#46;F&#46; &#41;\n&#58;&#58;brw_FILE_LIST&#58;iLength &#58;= LEN&#40; &#58;&#58;aFDirInfo &#41;\n&#58;&#58;brw_FILE_LIST&#58;SetArray&#40; &#58;&#58;aFDirInfo &#41;\nRETURN nil\n\nMETHOD Select_Clicked&#40; xProjectFile &#41; CLASS FILES\n\nIF &#58;&#58;aFDirInfo&#91;&#58;&#58;brw_FILE_LIST&#58;nAt&#93;&#91;2&#93; = \"&#40;dir&#41;\"\n &#58;&#58;sDir += &#58;&#58;aFDirInfo&#91;&#58;&#58;brw_FILE_LIST&#58;nAt&#93;&#91;1&#93; + \"/\"\n DirChange&#40; &#58;&#58;sDir &#41;\n &#58;&#58;GetList&#40; &#46;T&#46; &#41;\n &#58;&#58;brw_FILE_LIST&#58;iLength &#58;= LEN&#40; &#58;&#58;aFDirInfo &#41;\n &#58;&#58;brw_FILE_LIST&#58;SetArray&#40; &#58;&#58;aFDirInfo &#41;\n &#58;&#58;lSelectionMade &#58;= &#46;F&#46;\n RETURN &#46;T&#46;\n ELSE\n &#58;&#58;sSelectedFile &#58;= xProjectFile\n &#58;&#58;lSelectionMade &#58;= &#46;T&#46;\n RETURN &#46;F&#46;\nENDIF [/code:1kclito3]\n\nIt wouldn't take much I believe to get it working with FiveWin. I have been playing around with TWBrowse and have added a DATA iLength. You can probably just delete those lines for FiveWin. Plaese note that whilst this code runs it isn't finished or properly documented yet.\n\nWith this class opening an (existing) project file is as simple as:\n\n[code:1kclito3]FUNCTION ProjectOpen&#40;&#41;\n\nLOCAL oFindProject\n\noFindProject &#58;= FILES&#40;&#41;&#58;New&#40;&#41;\noFindProject&#58;bInclude &#58;= &#123; | x | RIGHT&#40; UPPER&#40; x &#41;, 4 &#41; = \"&#46;FLP\" &#125;\noFindProject&#58;GetList&#40; &#46;T&#46; &#41;\noFindProject&#58;Select&#40; \"Project File\" &#41;\n\nRETURN nil[/code:1kclito3]\n\nand compiling it can be done as follows:\n\n[code:1kclito3]FUNCTION Compile&#40; xProject &#41;\n\nLOCAL sOsCommand\n\nsOsCommand &#58;= \"&#46;/m&#46;sh \" + xProject + \" > \" + xProject + \"&#46;flb\" \nRUN &#40; sOsCommand &#41;\nMsgInfo&#40; MemoRead&#40; xProject + \"&#46;flb\" &#41; &#41;\n\nRETURN nil[/code:1kclito3]\r\n\r\nNote that I use the -q0 option so that extra compiler messages (such as line number progress) are suppressed.\r\n\r\nMaybe some of this is of help? I am happy to contribute if I can help.\r\n\r\nRegards\r\nDouf\r\n(xProgrammer)", "time": "04:27", "topic": "A straight FILE-FIND - function ?", "username": "xProgrammer" } ]
A straight FILE-FIND - function ?
[ { "date": "2011-02-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hi Guys,\n\nI can't use inside FOR/NEXT \"REDEFINE GET ....\"\n\nIt´s a sample of error: \n\n[code=fw:33y16qwf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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> oDlg<br /><span style=\"color: #00C800;\">Local</span> aVar := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1\"</span>,<span style=\"color: #ff0000;\">\"2\"</span>,<span style=\"color: #ff0000;\">\"3\"</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">Local</span> aGet := Array<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> nNum<br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg<br /><span style=\"color: #00C800;\">For</span>  nNum := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">3</span><br /> nID := <span style=\"color: #000000;\">4000</span> + nNum <span style=\"color: #B900B9;\">// I´ve IDs(4001,4002,4003) in resource from pelles ( all Gets ).</span><br /> <span style=\"color: #0000ff;\">Redefine</span> <span style=\"color: #0000ff;\">Get</span> aGet<span style=\"color: #000000;\">&#91;</span>nNum<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">Var</span> aVar<span style=\"color: #000000;\">&#91;</span>nNum<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> nID <span style=\"color: #0000ff;\">Of</span> oDlg<br /><span style=\"color: #00C800;\">Next</span> nNum<br /><span style=\"color: #0000ff;\">Activate</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span></div>[/code:33y16qwf]\n\nIt´s compile, more Var was lost. no display correcty values.\n\n[code=fw:33y16qwf]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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> oDlg<br /><span style=\"color: #00C800;\">Local</span> aVar := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1\"</span>,<span style=\"color: #ff0000;\">\"2\"</span>,<span style=\"color: #ff0000;\">\"3\"</span><span style=\"color: #000000;\">&#125;</span><br /><span style=\"color: #00C800;\">Local</span> aGet := Array<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">Local</span> nNum<br /><span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg<br /><span style=\"color: #00C800;\">For</span>  nNum := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">2</span><br /> nID := <span style=\"color: #000000;\">4000</span> + nNum <span style=\"color: #B900B9;\">// I´ve IDs(4001,4002,4003) in resource from pelles ( all Gets ).</span><br /> <span style=\"color: #0000ff;\">Redefine</span> <span style=\"color: #0000ff;\">Get</span> aGet<span style=\"color: #000000;\">&#91;</span>nNum<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">Var</span> aVar<span style=\"color: #000000;\">&#91;</span>nNum<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> nID <span style=\"color: #0000ff;\">Of</span> oDlg <span style=\"color: #B900B9;\">// it´s wrong vars vaues is incorrect.</span><br /><span style=\"color: #00C800;\">Next</span> nNum<br /><span style=\"color: #0000ff;\">Redefine</span> <span style=\"color: #0000ff;\">Get</span> aGet<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">Var</span> aVar<span style=\"color: #000000;\">&#91;</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">4003</span> <span style=\"color: #0000ff;\">Of</span> oDlg <span style=\"color: #B900B9;\">// it´s ok</span><br /><span style=\"color: #0000ff;\">Activate</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span></div>[/code:33y16qwf]\n\nMy Solucion was do without use For/Next.\n\n<!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> ( confuse,,, logic is correct,,, I´cant understand why... )", "time": "03:31", "topic": "A strange Error", "username": "lailton.webmaster" } ]
A strange Error
[ { "date": "2011-02-04", "forum": "FiveWin for Harbour/xHarbour", "text": "Hello\n\nTry\n\n[code=fw:1kiwfuz5]<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 />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> aVar := <span style=\"color: #000000;\">&#123;</span><span style=\"color: #ff0000;\">\"1\"</span>,<span style=\"color: #ff0000;\">\"2\"</span>,<span style=\"color: #ff0000;\">\"3\"</span><span style=\"color: #000000;\">&#125;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> aGet := Array<span style=\"color: #000000;\">&#40;</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Local</span> nNum, uVar := <span style=\"color: #000000;\">1</span><br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">Define</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg<br />&nbsp; &nbsp;<span style=\"color: #00C800;\">For</span> &nbsp;nNum := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">3</span><br />&nbsp; &nbsp; @ nNum * <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">10</span> &nbsp;<span style=\"color: #0000ff;\">Get</span> aGet<span style=\"color: #000000;\">&#91;</span>nNum<span style=\"color: #000000;\">&#93;</span> <span style=\"color: #0000ff;\">Var</span> uVar <span style=\"color: #0000ff;\">Of</span> oDlg <span style=\"color: #0000ff;\">pixel</span> <span style=\"color: #0000ff;\">size</span> <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">10</span><br />&nbsp; &nbsp; aGet<span style=\"color: #000000;\">&#91;</span>nNum<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">bSetGet</span> = BuildSetGet<span style=\"color: #000000;\">&#40;</span> aVar, nNum <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp; aGet<span style=\"color: #000000;\">&#91;</span>nNum<span style=\"color: #000000;\">&#93;</span>:<span style=\"color: #000000;\">oGet</span>:<span style=\"color: #000000;\">Block</span> = BuildSetGet<span style=\"color: #000000;\">&#40;</span> aVar, nNum <span style=\"color: #000000;\">&#41;</span><br />&nbsp; &nbsp;<span style=\"color: #00C800;\">Next</span> nNum<br />&nbsp; &nbsp;<span style=\"color: #0000ff;\">Activate</span> <span style=\"color: #0000ff;\">Dialog</span> oDlg<br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><span style=\"color: #00C800;\">function</span> BuildSetGet<span style=\"color: #000000;\">&#40;</span> aVar, n <span style=\"color: #000000;\">&#41;</span><br /><span style=\"color: #00C800;\">return</span> bSETGET<span style=\"color: #000000;\">&#40;</span> aVar<span style=\"color: #000000;\">&#91;</span> n <span style=\"color: #000000;\">&#93;</span> <span style=\"color: #000000;\">&#41;</span></div>[/code:1kiwfuz5]", "time": "04:04", "topic": "A strange Error", "username": "Daniel Garcia-Gil" } ]
A strange Error