messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2014-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "My sincere condolences to his family and friends.",
"time": "08:18",
"topic": "A friend has gone but he remains in our hearts",
"username": "driessen"
}
] |
A friend has gone but he remains in our hearts
|
[
{
"date": "2014-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I lose a Big friend...( I made with stephan some classes together ) i talked with stephan on last 11 gen 2014",
"time": "11:00",
"topic": "A friend has gone but he remains in our hearts",
"username": "Silvio.Falconi"
}
] |
A friend has gone but he remains in our hearts
|
[
{
"date": "2014-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm very sorry to hear the news. He will be missed.\n\nJames",
"time": "16:58",
"topic": "A friend has gone but he remains in our hearts",
"username": "James Bott"
}
] |
A friend has gone but he remains in our hearts
|
[
{
"date": "2014-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Born in 1961? Too much young... <!-- s:-( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":-(\" title=\"Sad\" /><!-- s:-( -->\n\nEMG",
"time": "20:34",
"topic": "A friend has gone but he remains in our hearts",
"username": "Enrico Maria Giordano"
}
] |
A friend has gone but he remains in our hearts
|
[
{
"date": "2014-06-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "....",
"time": "22:41",
"topic": "A friend has gone but he remains in our hearts",
"username": "Marco Turco"
}
] |
A friend has gone but he remains in our hearts
|
[
{
"date": "2008-09-12",
"forum": "FiveWin for Pocket PC",
"text": "<!-- m --><a class=\"postlink\" href=\"http://www.bookfire.net/wince/wince-programming-ms-press2/source/prowice/ch08f.htm\">http://www.bookfire.net/wince/wince-pro ... /ch08f.htm</a><!-- m -->",
"time": "18:20",
"topic": "A good book about Windows CE",
"username": "Antonio Linares"
}
] |
A good book about Windows CE
|
[
{
"date": "2008-09-13",
"forum": "FiveWin for Pocket PC",
"text": "And more:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://www.bookfire.net/wince/prentice-hall-wince-3-0-application-programming/index.html\">http://www.bookfire.net/wince/prentice- ... index.html</a><!-- m -->\r\n\r\nHow could we check if it is an authorized website ? We don't want to promote any illegal site here.",
"time": "14:59",
"topic": "A good book about Windows CE",
"username": "Antonio Linares"
}
] |
A good book about Windows CE
|
[
{
"date": "2008-09-13",
"forum": "FiveWin for Pocket PC",
"text": "There are many interesting chapters. This one is about ADOCE:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://www.bookfire.net/wince/prentice-hall-wince-3-0-application-programming/source/wince_30/165.htm\">http://www.bookfire.net/wince/prentice- ... 30/165.htm</a><!-- m -->\r\n\r\nWe have been looking for information about ADOCE for a long time.",
"time": "15:01",
"topic": "A good book about Windows CE",
"username": "Antonio Linares"
}
] |
A good book about Windows CE
|
[
{
"date": "2008-09-14",
"forum": "FiveWin for Pocket PC",
"text": "good It is a good manual!",
"time": "12:11",
"topic": "A good book about Windows CE",
"username": "Silvio"
}
] |
A good book about Windows CE
|
[
{
"date": "2020-05-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nUntil know I have always been using Resource Workshop from Borland. It has always done its job perfectly.\nBut since I need to transfer my last Windows 32-bit PC to Windows 10 64-bit, I can't use Resource Workshop anymore.\n\nWhich is a good alternative resource builder which is compatible with Resource Workshop? I have several hundreds of resources so I don't want to change them all.\n\nThank you very much for any help.",
"time": "16:59",
"topic": "A good resource builder",
"username": "driessen"
}
] |
A good resource builder
|
[
{
"date": "2020-05-29",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hola,\n\ntry resedit for me the best free resource editor, I don't sure about compatibility\n\n[url]http://www.resedit.net//[url]\n\nsaludos\n\nMarcelo Via",
"time": "17:56",
"topic": "A good resource builder",
"username": "Marcelo Via Giglio"
}
] |
A good resource builder
|
[
{
"date": "2020-05-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nThere is a WS for 32 bits:\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=38437&hilit=WORKSHOP\">viewtopic.php?f=6&t=38437&hilit=WORKSHOP</a><!-- l -->\n\nAlso, I heard Fivetech was developing one.",
"time": "10:16",
"topic": "A good resource builder",
"username": "MOISES"
}
] |
A good resource builder
|
[
{
"date": "2020-05-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr. Moises,\n\nThanks a lot for your answer.\nUnfortunately the link mentioned is not working anymore.\nSince I don't know any Spanish, would you be so nice to ask them to make the Borland Resource Editor 32 bits available again?\nThank you so much for your help.",
"time": "16:52",
"topic": "A good resource builder",
"username": "driessen"
}
] |
A good resource builder
|
[
{
"date": "2020-05-30",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"driessen\":j013xga9]Hello,\n\nUntil know I have always been using Resource Workshop from Borland. It has always done its job perfectly.\nBut since I need to transfer my last Windows 32-bit PC to Windows 10 64-bit, I can't use Resource Workshop anymore.\n\nWhich is a good alternative resource builder which is compatible with Resource Workshop? I have several hundreds of resources so I don't want to change them all.\n\nThank you very much for any help.[/quote:j013xga9]\n\nTry Pelles C",
"time": "21:34",
"topic": "A good resource builder",
"username": "wartiaga"
}
] |
A good resource builder
|
[
{
"date": "2020-05-31",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sure, here is the link:\n\n<!-- m --><a class=\"postlink\" href=\"https://vetusware.com/download/Borland%20Resource%20Workshop%205.02/?id=13304\">https://vetusware.com/download/Borland% ... /?id=13304</a><!-- m -->\n\nVery important: You have to run the exe in Windows 95 compatibility mode.",
"time": "10:35",
"topic": "A good resource builder",
"username": "MOISES"
}
] |
A good resource builder
|
[
{
"date": "2020-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you very much.",
"time": "13:04",
"topic": "A good resource builder",
"username": "driessen"
}
] |
A good resource builder
|
[
{
"date": "2014-10-08",
"forum": "Utilities / Utilidades",
"text": "Hi/Hola,\n\na great Harbour's manual from Facebook's group/ un gran manual de Harbour obtenido del grupo Harbour en Facebook.\n\n[url:3ebye2rx]http://www.harbourdoc.com.br/[/url:3ebye2rx]\n\nRegards/Saludos,",
"time": "21:12",
"topic": "A great Harbour's manual/Un gran manual de Harbour",
"username": "Baxajaun"
}
] |
A great Harbour's manual/Un gran manual de Harbour
|
[
{
"date": "2014-10-09",
"forum": "Utilities / Utilidades",
"text": "Gracias Felix!\n\nAunque parece que el árbol de la izquierda no funciona muy bien...",
"time": "07:50",
"topic": "A great Harbour's manual/Un gran manual de Harbour",
"username": "Antonio Linares"
}
] |
A great Harbour's manual/Un gran manual de Harbour
|
[
{
"date": "2014-10-09",
"forum": "Utilities / Utilidades",
"text": "Buenos días Antonio,\n\nayer a mí en casa me funcionaba perfectamente.\n\nSaludos",
"time": "07:58",
"topic": "A great Harbour's manual/Un gran manual de Harbour",
"username": "Baxajaun"
}
] |
A great Harbour's manual/Un gran manual de Harbour
|
[
{
"date": "2014-10-09",
"forum": "Utilities / Utilidades",
"text": "Era Windows 8 que llevaba mucho tiempo sin reiniciarlo jeje <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\ngracias",
"time": "08:06",
"topic": "A great Harbour's manual/Un gran manual de Harbour",
"username": "Antonio Linares"
}
] |
A great Harbour's manual/Un gran manual de Harbour
|
[
{
"date": "2019-09-01",
"forum": "mod_harbour",
"text": "Hi to all.\nTake a look at this library [url:3go3tji4]https://openlayers.org/en/latest/examples/overlay.html[/url:3go3tji4]",
"time": "16:12",
"topic": "A great utility for reading map location",
"username": "Massimo Linossi"
}
] |
A great utility for reading map location
|
[
{
"date": "2014-05-09",
"forum": "Utilities / Utilidades",
"text": "[url:oi7muk2m]http://domainsigma.com/whois/fivetechsoft.com[/url:oi7muk2m]",
"time": "09:39",
"topic": "A great whois service",
"username": "Antonio Linares"
}
] |
A great whois service
|
[
{
"date": "2009-11-03",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "I came across this GTK trick whilst writing xHarbour code to compile and link am xHarbour application. I was (trying to) update a status bar as each module was compiled and linked, but all I ever saw was the final message. GTK event processing can get queued up behind other processes which consume lots of processor time and may have higher assigned priorites (or something like that). The trick is to execute the following after updating the status bar:\n\nHB_FUNC( PROCESS_PENDING_GTKH_EVENTS )\n{\n while( gtk_events_pending() )\n gtk_main_iteration();\n}\n\nIf you ever run into this type of problem the above just might be the answer.\n\nRegards\nDoug",
"time": "13:22",
"topic": "A little GTK trick that may help",
"username": "xProgrammer"
}
] |
A little GTK trick that may help
|
[
{
"date": "2009-11-03",
"forum": "FiveLinux / FiveDroid (Android)",
"text": "Doug,\n\nYou can use FiveLinux function SysRefresh(), as it does the same <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nWe use the same name SysRefresh() as in FiveWin, to keep coherence between different versions <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nAnyhow, many thanks for your kind and interesting sharings as usual",
"time": "19:40",
"topic": "A little GTK trick that may help",
"username": "Antonio Linares"
}
] |
A little GTK trick that may help
|
[
{
"date": "2021-04-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI noticed a problem using SAY without a size-define like\n\n@ 60, 30 SAY \"Textheight -> g j y q\" PIXEL FONT oFont OF oDlg\nthe problem belongs to [size=150:mlo3wrpo]g j y q[/size:mlo3wrpo] because of the defined heightvalue\n\nthe bottom-space is to small <!-- s:!: --><img src=\"{SMILIES_PATH}/icon_exclaim.gif\" alt=\":!:\" title=\"Exclamation\" /><!-- s:!: --> \n\n[img:mlo3wrpo]http://www.service-fivewin.de/IMAGES/Sayheight1.jpg[/img:mlo3wrpo]\n\nI adjusted in method NEW\n\n [color=#FF0000:mlo3wrpo]//::nBottom = ::nTop + nHeight - 1[/color:mlo3wrpo]\n ::nBottom = ::nTop + nHeight + nHeight * 0.2 \n\nregards\nUwe <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "10:30",
"topic": "A little adjustment in class tSay",
"username": "ukoenig"
}
] |
A little adjustment in class tSay
|
[
{
"date": "2007-07-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "HARBOUR 7.01 2007 build.\nI have a problem with command SORT on DBT files.\nAfter execution of command SORT, the file DBT loose data.\nIs it my fault or is this a real BUG ?\n\nCiao and thanks\nMassimo\n\n\n[code:2rxwybk1]\n#include \"Fivewin.ch\"\n\nFUNCTION MAIN()\n LOCAL cNameD := \"BEGSORT.DBF\"\n LOCAL cNameM := \"BEGSORT.DBT\"\n LOCAL cNameDS := \"ENDSORT.DBF\"\n LOCAL cNameMS := \"ENDSORT.DBT\"\n LOCAL aStr := { { \"FLDDESCR\", \"C\", 40, 0 }, ;\n { \"FLDMEMO\", \"M\", 10, 0 } }\n\n IF FILE( cNameD )\n FERASE( cNameD )\n ENDIF\n IF FILE( cNameM )\n FERASE( cNameM )\n ENDIF\n\n IF FILE( cNameDS )\n FERASE( cNameDS )\n ENDIF\n IF FILE( cNameMS )\n FERASE( cNameMS )\n ENDIF\n\n\n DBCREATE( cNameD, aStr )\n\n USE &cNameD\n\n APPEND BLANK\n REPLACE FLDDESCR WITH \"First record\"\n REPLACE FLDMEMO WITH \"First memo record\"\n\n APPEND BLANK\n REPLACE FLDDESCR WITH \"Second record\"\n REPLACE FLDMEMO WITH \"Second memo record\"\n\n SORT ON FLDDESCR TO &cNameDS\n\n USE\n \n MessErr( \"After sort the file memo ENDSORT is empty ?????\" )\n \n USE ENDSORT\n MessErr( ALLTRIM( FIELD->FLDDESCR ) + \" <\" + FIELD->FLDMEMO + \">\" )\n SKIP\n MessErr( ALLTRIM( FIELD->FLDDESCR ) + \" <\" + FIELD->FLDMEMO + \">\" )\n USE\nRETURN NIL\n\nFUNCTION MessErr( Mess )\n MsgBeep()\n MsgAlert( Mess, \"ATTENZIONE\" )\nRETURN NIL\n[/code:2rxwybk1][/code]",
"time": "16:41",
"topic": "A little big problem with command SORT on DBT files",
"username": "MaxP"
}
] |
A little big problem with command SORT on DBT files
|
[
{
"date": "2007-07-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I confirm the bug and I'm going to report it to the Harbour and xHarbour developers list.\n\nThank you!\n\nEMG",
"time": "16:59",
"topic": "A little big problem with command SORT on DBT files",
"username": "Enrico Maria Giordano"
}
] |
A little big problem with command SORT on DBT files
|
[
{
"date": "2010-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear All,\n\nAnyone using Get with Action and Bitmap Clause..\n\nBefore:\n[img:2z5exg35]http://i208.photobucket.com/albums/bb82/fraxzi/FWxHarbour/getaction1.png[/img:2z5exg35]\n\n\nminor coding:\n[code=fw:2z5exg35]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">AEval<span style=\"color: #000000;\">(</span> aGetObjs, <span style=\"color: #000000;\">{</span>|a| <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span>Upper<span style=\"color: #000000;\">(</span>a:<span style=\"color: #000000;\">Classname</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> == <span style=\"color: #ff0000;\">'TGET'</span>,;<br /> <span style=\"color: #00C800;\">IF</span><span style=\"color: #000000;\">(</span> a:<span style=\"color: #000000;\">oBtn</span> <> <span style=\"color: #00C800;\">Nil</span>, <span style=\"color: #000000;\">(</span> a:<span style=\"color: #000000;\">oBtn</span>:<span style=\"color: #000000;\">nWidth</span> -= <span style=\"color: #000000;\">1</span>, a:<span style=\"color: #000000;\">oBtn</span>:<span style=\"color: #000000;\">nHeight</span> -= <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span>,<span style=\"color: #00C800;\">Nil</span><span style=\"color: #000000;\">)</span> ,<span style=\"color: #00C800;\">Nil</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span></div>[/code:2z5exg35]\n\nResults:\n[img:2z5exg35]http://i208.photobucket.com/albums/bb82/fraxzi/FWxHarbour/getaction2.png[/img:2z5exg35]\n\nThe action bitmap is now visually better.\n\n\nI hope this will be fix in v10.6\n\n\nRegards,\nFrances",
"time": "08:43",
"topic": "A little correction on Get Action Bitmap",
"username": "fraxzi"
}
] |
A little correction on Get Action Bitmap
|
[
{
"date": "2010-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frances,\n\nPlease test samples\\GetBtn.prg and post here a screenshot of it, thanks",
"time": "09:30",
"topic": "A little correction on Get Action Bitmap",
"username": "Antonio Linares"
}
] |
A little correction on Get Action Bitmap
|
[
{
"date": "2010-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Mr. Antonio,\n\nI tried/read \"getbtn.prg\" but declaration is diff not redefined.\n\n[code=fw:2crgo2ym]<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;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oWnd, cTest := <span style=\"color: #ff0000;\">\"Hello world!\"</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">COLOR</span> <span style=\"color: #ff0000;\">\"N/W*\"</span><br /><br /> @ <span style=\"color: #000000;\">2</span>, <span style=\"color: #000000;\">2</span> <span style=\"color: #0000ff;\">GET</span> cTest <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">110</span>, <span style=\"color: #000000;\">22</span> ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"click\"</span> <span style=\"color: #000000;\">)</span> BITMAP <span style=\"color: #ff0000;\">\"..<span style=\"color: #000000;\">\\b</span>itmaps<span style=\"color: #000000;\">\\1</span>6x16<span style=\"color: #000000;\">\\f</span>ind.bmp\"</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:2crgo2ym]\n\nScreenshot:\n[img:2crgo2ym]http://i208.photobucket.com/albums/bb82/fraxzi/FWxHarbour/getbtn.png[/img:2crgo2ym]\n\n\nmy redefined action Get:\n[code=fw:2crgo2ym]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #0000ff;\">REDEFINE</span> <span style=\"color: #0000ff;\">GET</span> oGet <span style=\"color: #0000ff;\">VAR</span> cVar;<br /> <span style=\"color: #0000ff;\">ID</span> <span style=\"color: #000000;\">1015</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">UPDATE</span>;<br /> BITMAP <span style=\"color: #ff0000;\">'client16'</span>;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">msginfo</span><span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">'here'</span><span style=\"color: #000000;\">)</span></div>[/code:2crgo2ym]\n\nRC:\n[code=fw:2crgo2ym]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">...<br /> CONTROL <span style=\"color: #ff0000;\">\"\"</span>,<span style=\"color: #000000;\">1015</span>,<span style=\"color: #ff0000;\">\"Edit\"</span>,WS_CHILDWINDOW|WS_VISIBLE|WS_TABSTOP,<span style=\"color: #000000;\">78</span>,<span style=\"color: #000000;\">75</span>,<span style=\"color: #000000;\">124</span>,<span style=\"color: #000000;\">12</span>,WS_EX_CLIENTEDGE<br />...</div>[/code:2crgo2ym]\n\n\nMaybe there's a difference between redefine and command @..\n\n\nRegards,\nFrances",
"time": "10:46",
"topic": "A little correction on Get Action Bitmap",
"username": "fraxzi"
}
] |
A little correction on Get Action Bitmap
|
[
{
"date": "2010-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frances,\n\nIn source\\classes\\TGet.prg please modify these lines:\n[code=fw:1kled7gs]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><br /> ::<span style=\"color: #000000;\">oBtn</span> := TButtonBmp<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nWidth</span> - nBmpWidth - <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lSpinner</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>,, <span style=\"color: #00C800;\">Self</span>, <span style=\"color: #000000;\">{</span>|| Eval<span style=\"color: #000000;\">(</span> oThis:<span style=\"color: #000000;\">bAction</span>, oThis <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span>, ;<br /> nBmpWidth, ::<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #000000;\">4</span>,,,,.t.,,,,,,,::<span style=\"color: #000000;\">cBmpName</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:1kled7gs]\nUse - 5 instead of - 4 and please check the results, thanks",
"time": "12:42",
"topic": "A little correction on Get Action Bitmap",
"username": "Antonio Linares"
}
] |
A little correction on Get Action Bitmap
|
[
{
"date": "2010-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "This may be a better implementation:\n[code=fw:hpbga3wm]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br />::<span style=\"color: #000000;\">oBtn</span> := TButtonBmp<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">nWidth</span> - nBmpWidth - <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">lSpinner</span>, <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>,, <span style=\"color: #00C800;\">Self</span>, <span style=\"color: #000000;\">{</span>|| Eval<span style=\"color: #000000;\">(</span> oThis:<span style=\"color: #000000;\">bAction</span>, oThis <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span>, ;<br /> nBmpWidth, ::<span style=\"color: #000000;\">nHeight</span> - <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">IsKindOf</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"TDIALOG\"</span> <span style=\"color: #000000;\">)</span> .and. ! Empty<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oWnd</span>:<span style=\"color: #000000;\">cResName</span> <span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">)</span>,,,,.t.,,,,,,,::<span style=\"color: #000000;\">cBmpName</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:hpbga3wm]",
"time": "12:55",
"topic": "A little correction on Get Action Bitmap",
"username": "Antonio Linares"
}
] |
A little correction on Get Action Bitmap
|
[
{
"date": "2017-08-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Winflector......\n\nHi Friends, a log time ago someone had mentioned a software to share apliccations over the internet. I only now that the Price in $75 each PC, and was a 2 user free to try.\nThe software has a server edition an a client edition. But now I can't remember the name. \n\nThank you very much.\nBest regards\nRuben Dario Fernández.",
"time": "18:34",
"topic": "A long time ago....SOLUCIONADO",
"username": "D.Fernandez"
}
] |
A long time ago....SOLUCIONADO
|
[
{
"date": "2017-08-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[url:16kvj70l]http://www.winflector.com/[/url:16kvj70l]",
"time": "20:06",
"topic": "A long time ago....SOLUCIONADO",
"username": "Marcelo Via Giglio"
}
] |
A long time ago....SOLUCIONADO
|
[
{
"date": "2008-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello from Germany,\n\nI used < bKeydown > and < bKeychar > in xBrowse \nto get a keycode for the keys : LEFT, RIGHT, UP, DOWN\nbut it only works with < normal > keys like\n13 = RETURN and so on.\nIs it possible somehow, to get a information, when \ni press one of these keys in xBrowse ?\n\nI want to start a special action. \nsample : cursor-pos = end of array (eof() ).\n I press the key < DOWN > and append a new\n array-element.\nFor that i must know, that < DOWN > was pressed.\n\nThank you <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \nU. König",
"time": "13:20",
"topic": "A message in xBrowse => keys : left, right,up and down ??",
"username": "ukoenig"
}
] |
A message in xBrowse => keys : left, right,up and down ??
|
[
{
"date": "2008-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please use the codeblock oBrw:bPastEof for this purpse. Example:\n[code:2tjc3wu0]\n\n oBrw:bPastEof := {||if( MsgNoYes( 'Add Row?' ), ;\n ( AAdd( oBrw:aArrayData, ATail( oBrw:aArrayData ) ), oBrw:GoBottom()), nil )}\n[/code:2tjc3wu0]",
"time": "15:48",
"topic": "A message in xBrowse => keys : left, right,up and down ??",
"username": "nageswaragunupudi"
}
] |
A message in xBrowse => keys : left, right,up and down ??
|
[
{
"date": "2008-01-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Uwe,\nmaybe you have the same problem I had:\n\n<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=8705&highlight=vkey\">http://fivetechsoft.com/forums/viewtopi ... light=vkey</a><!-- m -->\nRegards,\nOtto",
"time": "20:15",
"topic": "A message in xBrowse => keys : left, right,up and down ??",
"username": "Otto"
}
] |
A message in xBrowse => keys : left, right,up and down ??
|
[
{
"date": "2019-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Yes, it is comming !!! <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) -->\n\n[url:2zl1f4h4]https://groups.google.com/forum/#!topic/harbour-users/lZGlFSZ23No[/url:2zl1f4h4]",
"time": "16:26",
"topic": "A mod_harbour for Apache !!!",
"username": "Antonio Linares"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2019-05-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nCongratulations. Today is a special day I'm sure\n\nRemember... 15/05/2019\n\nWow !!!",
"time": "20:48",
"topic": "A mod_harbour for Apache !!!",
"username": "Carles"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2019-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Antonio,\n\nAnd what could we achieve by having a mod_harbour ? Is it possible, in future, run GUI exes in internet navigator ?\n\nI think I remember that someone had developed something about it. I could give more information.\n\nRegards",
"time": "08:17",
"topic": "A mod_harbour for Apache !!!",
"username": "hmpaquito"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2019-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[img:2jhpaoka]https://scontent-mad1-1.xx.fbcdn.net/v/t1.0-9/60334807_2467533419931706_3397338552978112512_n.jpg?_nc_cat=103&_nc_ht=scontent-mad1-1.xx&oh=85982542e53c5ca625813aeee47e1103&oe=5D9CC05E[/img:2jhpaoka]",
"time": "11:47",
"topic": "A mod_harbour for Apache !!!",
"username": "Antonio Linares"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2019-05-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Wow! Congratulations Antonio.",
"time": "13:15",
"topic": "A mod_harbour for Apache !!!",
"username": "toninhofwi"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2019-05-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "It is really amazing Maestro!\n\nThank you for your good job!\n\nIt is working on MacOSx <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \nIt open the door for a new vision how Harbour can work for WEB!",
"time": "19:51",
"topic": "A mod_harbour for Apache !!!",
"username": "Lailton"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2019-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please run Harbour on Apache Linux from Windows 10 !!!\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37190\">viewtopic.php?f=3&t=37190</a><!-- l -->\n\nThis is a dream made true <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) --> Really fast !!!\n\nPor favor ejecutad Harbour en Apache Linux desde Windows 10 !!!\n\n<!-- l --><a class=\"postlink-local\" href=\"http://forums.fivetechsupport.com/viewtopic.php?f=6&t=37191\">viewtopic.php?f=6&t=37191</a><!-- l -->\n\nEsto es un sueño hecho realidad <!-- s;-) --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\";-)\" title=\"Wink\" /><!-- s;-) --> Realmente rápido\n\n[img:uoh3k9wd]https://github.com/FiveTechSoft/screenshots/blob/master/mod_harbour_1.jpg?raw=true[/img:uoh3k9wd]",
"time": "09:13",
"topic": "A mod_harbour for Apache !!!",
"username": "Antonio Linares"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2019-05-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Felicitaciones Antonio por esta movida, ya pude probar los dos ejemplos.\nSeguiré haciendo pequeñas pruebas\nGracias y Saludos desde Argentina",
"time": "02:20",
"topic": "A mod_harbour for Apache !!!",
"username": "Marcelo Roggeri"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2020-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Official date when mod_harbour was born\n\n15/05/2019\n\nmod_harbour birthday !!! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\n[url:3mdks1us]https://api.github.com/repos/fivetechsoft/mod_harbour[/url:3mdks1us]",
"time": "17:02",
"topic": "A mod_harbour for Apache !!!",
"username": "Antonio Linares"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2020-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Happy birthday Mod",
"time": "17:11",
"topic": "A mod_harbour for Apache !!!",
"username": "Silvio.Falconi"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2020-04-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Next 15/05/2019 <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "07:10",
"topic": "A mod_harbour for Apache !!!",
"username": "Antonio Linares"
}
] |
A mod_harbour for Apache !!!
|
[
{
"date": "2008-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Jose Luis Capel from Aicom company has greatly enhanced FiveWin Class TDataBase making it around [b:3laqt92o]three[/b:3laqt92o] times faster!!!\r\n\r\nAs a special gift from Santa (thanks Jose Luis!) here you have it to start using it. It has been tested with Harbour in PC and Pocket PC. Your feedback is welcome <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n[code:3laqt92o]\n#include \"fivewin.ch\"\n#include \"dbinfo.ch\"\n\n\nfunction main()\n\nlocal o, x, nSec, n := 0, a[100], b\n\nREQUEST HB_LANG_ES // Para establecer español para Mensajes, fechas, etc..\nREQUEST HB_CODEPAGE_ESMWIN // Para establecer código de página a Español\n(Ordenación, etc..)\nREQUEST DBFCDX //&&,DBFCDX\nREQUEST DBFFPT\nRDDSETDEFAULT(\"DBFCDX\")\nSET AUTOPEN OFF\nSET DELETED ON\nSET CENTURY ON\nSET EPOCH TO( Year(Date())-50 )\nSET DATE BRITISH // Formato dd-mm-aaaa\nSET EXCLUSIVE OFF\nSET SOFTSEEK OFF\n\nHB_LangSelect('ES')\nHB_SetCodePage(\"ESMWIN\") // Para ordenación (arrays, cadenas, etc..)\n\nmsginfo(\"Iniciamos\")\no := xDatabase() // Nueva clase derivada de tDatabase de fivewin\no:New( \"CLI01.dbf\")\no:lShared := .F.\no:Open()\no:lBuffer := .f.\nnSec := Seconds()\n// Test de velocidad en lectura de datos. Ahorro aproximado del 50%\n\nnSec := Seconds()\nfor x=1 to 1000000\n uFunc( o:Codpro )\nnext\nMsginfo(Seconds()-nSec, \"Test de lectura de datos\")\n\n// Test de velocidad en lectura con movimientos\nnSec := Seconds()\n\nfor x=1 to 10000\n o:Gotop()\n Do while !o:Eof()\n uFunc( o:Codpro )\n o:Skip()\n Enddo\nnext\nMsginfo(Seconds()-nSec, \"Test de lectura\")\n\n\n// Test de velocidad en Escritura\nnSec := Seconds()\nfor x=1 to 10000\n o:Gotop()\n Do while !o:Eof()\n o:Codpro := \"Proba\" + Alltrim(Str(x))\n o:Skip()\n Enddo\nnext\nMsginfo(Seconds()-nSec, \"Test de escritura\")\nreturn NIL\n\nFUNCTION uFunc(u);Return NIL\n\n////////////////////////////////////////////////////////////////////////////\n/\nCLASS xDatabase FROM tDatabase\n METHOD SetArea()\n METHOD Load()\n METHOD CancelUpdate() INLINE ::lBuffer := .F.\n\n MESSAGE FieldGet METHOD _FieldGet( nField )\n MESSAGE FieldPut METHOD _FieldPut( nField, uVal )\n\n METHOD Blank()\n METHOD Modified()\n METHOD SaveBuff()\n\n MESSAGE OemToAnsi METHOD _OemToAnsi()\n\n METHOD HashAddMember()\n ERROR HANDLER ONERROR( uParam1 )\n\nENDCLASS\n\nMETHOD SetArea( nWorkArea ) CLASS xDatabase\n\n local n, oClass, aDatas := {}, aMethods := {}\n\n\n ::nArea = nWorkArea\n ::cAlias = Alias( nWorkArea )\n ::cFile = Alias( nWorkArea )\n\n if ::Used()\n ::cFile = ( nWorkArea )->( DbInfo( DBI_FULLPATH ) )\n ::cDriver = ( nWorkArea )->( RddName() )\n ::lShared = ( nWorkArea )->( DbInfo( DBI_SHARED ) )\n\n #ifdef __HARBOUR__\n ::lReadOnly = ( nWorkArea )->( DbInfo( DBI_ISREADONLY ) )\n #else\n DEFAULT ::lReadOnly := .f.\n #endif\n\n DEFAULT ::lBuffer := .t.\n DEFAULT ::lOemAnsi := .f.\n\n DEFAULT ::bNetError := { || MsgStop( \"Record in use\", \"Please, retry\"\n) }\n\n ::aStruct = ( ::cAlias )->( DbStruct() )\n ::aFldNames = {}\n ::aBuffer := hb_HSetCaseMatch( hb_Hash(), .F. )\n\n for n = 1 to ( ::cAlias )->( FCount() )\n AAdd( ::aFldNames, ( ::cAlias )->( FieldName( n ) ) )\n ::HashAddMember( {( ::cAlias )->( FieldName( n ) )},;\n ( ::cAlias )->( FieldType( n ) ),;\n ( ::cAlias )->( FieldGet( n ) ),;\n ::aBuffer )\n next\n hb_HSetAutoAdd( ::aBuffer, .f. )\n if ::lOemAnsi\n ::OemToAnsi()\n endif\n #ifdef __XPP__\n if ClassObject( Alias() ) == nil\n ClassCreate( Alias(), { TDataBase() }, aDatas, aMethods )\n // else\n // ::this = Self\n endif\n #endif\n endif\n\nreturn Self\n\nMETHOD _FieldGet( nPos ) CLASS xDataBase\n\n if ::lBuffer\n //return ::aBuffer[ nPos ]\n Return HB_HVALUEAT( ::aBuffer, nPos )\n else\n return ( ::nArea )->( FieldGet( nPos ) )\n endif\n\nreturn nil\n//--------------------------------------------------------------------------\n-//\n\nMETHOD _FieldPut( nPos, uValue ) CLASS xDataBase\n\n local lLocked := .f.\n\n if ::lBuffer\n //::aBuffer[ nPos ] := uValue\n HB_HVALUEAT( ::aBuffer, nPos, uValue )\n else\n if ::lShared\n if ! ::lReadOnly\n if ::IsRecLocked( ::RecNo() ) .or. ( lLocked := ::RecLock(\n::RecNo() ) )\n ( ::nArea )->( FieldPut( nPos, uValue ) )\n if lLocked\n ::Commit()\n ::RecUnLock( ::RecNo() )\n endif\n else\n if ! Empty( ::bNetError )\n return Eval( ::bNetError, Self )\n endif\n endif\n endif\n else\n ( ::nArea )->( FieldPut( nPos, uValue ) )\n endif\n endif\n\nreturn nil\n\nMETHOD Load() CLASS xDataBase\n\n local n\n\n if ::lBuffer\n for n = 1 to ( ::cAlias )->( FCount() )\n ::aBuffer[ ::aFldNames[n] ] := ( ::cAlias )->( FieldGet( n ) )\n next\n\n if ::lOemAnsi\n ::OemToAnsi()\n endif\n endif\n\nreturn nil\n\n//--------------------------------------------------------------------------\n--//\n\nMETHOD Modified() CLASS XDataBase\n\n local n\n\n if ::lBuffer\n for n := 1 to Len( ::aFldNames )\n\n if ! ( ::cAlias )->( FieldGet( n ) ) == ::aBuffer[ ::aFldNames[n] ]\n return .t.\n endif\n next\n endif\n\nreturn .f.\n\nMETHOD Blank() CLASS XDataBase\n\n LOCAL a := HB_HKEYS( ::aBuffer )\n if ::lBuffer\n AEval( a, { |u,i| HB_HVALUEAT( ::aBuffer, i, uValBlank( u )) } )\n endif\n\nreturn .f.\n\nMETHOD _OemToAnsi() CLASS XDataBase\n\n local n\n\n for n = 1 to Len( ::aFldNames )\n if ValType( ::aBuffer[ ::aFldNames[n] ] ) == \"C\"\n ::aBuffer[ ::aFldNames[n] ] := OemToAnsi( ::aBuffer[ ::aFldNames[n]\n] )\n endif\n next\n\nreturn nil\n\nMETHOD SaveBuff() CLASS XDataBase\n\n local n\n\n if ::lBuffer\n for n := 1 to Len( ::aFldNames )\n if ::lOemAnsi .and. ValType( ::aBuffer[ ::aFldNames[n] ] ) == \"C\"\n ( ::nArea )->( FieldPut( n, AnsiToOem( ::aBuffer[ ::aFldNames[n]\n] ) ) )\n else\n ( ::nArea )->( FieldPut( n, ::aBuffer[ ::aFldNames[n] ] ) )\n endif\n next\n endif\n\nreturn nil\n\n\n****************************************************************************\n************************************\n* Descripción :\n* Parámetros : Ninguno\n* Fecha : 06/21/06\n* Autor : Equipo de desarrollo de Aicom\n****************************************************************************\n************************************\n METHOD HashAddMember( aName, cType, uInit, oObj ) CLASS xDataBase\n//--------------------------------------------------------------------------\n------------------------------------\n local cName\n\n if !( cType == nil )\n\n switch Upper( Left( cType, 1 ) )\n\n case \"S\" // STRING\n\n if uInit == nil\n uInit := \"\"\n endif\n\n exit\n\n case \"N\" // NUMERIC\n\n if uInit == nil\n uInit := 0\n endif\n\n exit\n\n case \"L\" // LOGICAL\n\n if uInit == nil\n uInit := .f.\n endif\n\n exit\n\n case \"D\" // DATE\n\n if uInit == nil\n uInit := CtoD( \"\" )\n endif\n\n exit\n\n case \"C\" // CODEBLOCK\n\n if uInit == nil\n uInit := { || nil }\n endif\n\n exit\n\n case \"A\" // ARRAY\n\n if uInit == nil\n uInit := {}\n endif\n\n exit\n\n end switch\n\n endif\n\nreturn NIL\n\n\n#pragma BEGINDUMP\n\n#include \"windows.h\"\n#include \"hbapi.h\"\n#include \"hbapierr.h\"\n#include \"hbapiitm.h\"\n#include \"hbapicls.h\"\n#include \"hbvm.h\"\n#include \"hbdate.h\"\n#include \"hboo.ch\"\n#include \"hbapirdd.h\"\n#include \"hbstack.h\"\n#include \"hbapilng.h\"\n\nchar * AicomGetmessage();\n\nHB_FUNC_STATIC( XDATABASE_ONERROR )\n{\n\n\n char * cMessage = AicomGetmessage() ;\n PHB_ITEM pSelf = hb_stackSelfItem();\n BOOL bBuffer = hb_itemGetL( hb_objSendMsg(pSelf, \"LBUFFER\",\n0) );\n PHB_ITEM pValue = hb_param(1,HB_IT_ANY);\n const char *cKey = ( *cMessage == '_' ? (cMessage+1) :\ncMessage ) ;\n\n\n if( bBuffer)\n {\n PHB_ITEM pHash = hb_objSendMsg(pSelf,\"ABUFFER\",0);\n PHB_ITEM pKey = hb_itemPutC( hb_itemNew(NULL), cKey );\n\n if( *cMessage == '_' )\n {\n // Con esto asignamos un valor al buffer\n if( pHash && pKey && pValue )\n {\n hb_hashAdd( pHash, pKey, pValue );\n hb_itemRelease( pKey );\n }\n else\n hb_errRT_BASE( EG_ARG, 1123, NULL,\nHB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );\n } else\n {\n // Esto devuelve el valor del buffer\n PHB_ITEM pDest = hb_hashGetItemPtr( pHash, pKey,\nHB_HASH_AUTOADD_ACCESS );\n hb_itemRelease( pKey );\n if(pDest)\n hb_itemReturn(pDest);\n else\n hb_errRT_BASE( EG_BOUND, 1132, NULL,\nhb_langDGetErrorDesc( EG_ARRACCESS ), 2, pHash, pValue );\n }\n }\n else\n {\n int iAreaAnt = hb_rddGetCurrentWorkAreaNumber();\n// Area anterior\n int iAreaAct = hb_itemGetNI( hb_objSendMsg(pSelf,\n\"NAREA\", 0 ) ); // Buscamos actual\n AREAP pArea = ( AREAP )\nhb_rddGetCurrentWorkAreaPointer(); // Necesitamos pArea\n USHORT uiField = hb_rddFieldIndex( pArea, cKey );\n// FieldPos ( cFieldName )\n hb_rddSelectWorkAreaNumber( iAreaAct ) ;\n// Seleccionamos area actual\n\n if(uiField)\n {\n if( *cMessage == '_' )\n {\n // Asignamos el valor\n if( pValue && !HB_IS_NIL( pValue ) )\n {\n if( SELF_PUTVALUE( pArea, uiField,\npValue ) == SUCCESS )\n {\n hb_itemReturn( pValue );\n }\n }\n } else\n {\n // Devolvemos el valor del campo\n PHB_ITEM pItem = hb_itemNew( NULL );\n if( pArea ) // && uiField )\n {\n SELF_GETVALUE( pArea, uiField, pItem\n);\n }\n hb_itemReturnRelease( pItem );\n }\n hb_rddSelectWorkAreaNumber( iAreaAnt ) ;\n// Seleccionamos area anterior\n } else\n {\n hb_errRT_DBCMD(( *cMessage == '_' ? 1005 : 1004 ),\n0, \"Field not found\", cKey );\n }\n\n }\n}\n\nchar * AicomGetmessage()\n{\n // Thanks to Przemek\n long lOffset = hb_stackBaseProcOffset( 0 ); \n char * cMessage = (char *)hb_itemGetSymbol( hb_stackItem( lOffset ) )->szName; \nreturn cMessage ; \n}\n[/code:3laqt92o]",
"time": "13:59",
"topic": "A much faster Class TDataBase !!!",
"username": "Antonio Linares"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\r\n\r\nI am getting the errors below when I try to compile the test program. I am using FWH 8.08/xHarbour (the xHarbour that came with FWH).\r\n\r\nI don't seem to have the file hbapicls.h on my computer (I did a search to make sure it wasn't a path issue).\r\n\r\nRegards,\r\nJames\r\n \r\n\r\n\r\nBorland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland\r\nXDbase.c:\r\nError E2209 XDbase.prg 353: Unable to open include file 'hbapicls.h'\r\nWarning W8065 XDbase.prg 367: Call to function 'AicomGetmessage' with no prototype in function HB_FUN_XDATABASE_ONERROR\r\nWarning W8065 XDbase.prg 386: Call to function 'hb_hashAdd' with no prototype in function HB_FUN_XDATABASE_ONERROR\r\nError E2451 XDbase.prg 390: Undefined symbol 'HB_ERR_FUNCNAME' in function HB_FUN_XDATABASE_ONERROR\r\nError E2451 XDbase.prg 394: Undefined symbol 'HB_HASH_AUTOADD_ACCESS' in function HB_FUN_XDATABASE_ONERROR\r\nWarning W8065 XDbase.prg 394: Call to function 'hb_hashGetItemPtr' with no prototype in function HB_FUN_XDATABASE_ONERROR\r\nWarning W8069 XDbase.prg 394: Nonportable pointer conversion in function HB_FUN_XDATABASE_ONERROR\r\nWarning W8065 XDbase.prg 446: Call to function 'hb_stackBaseProcOffset' with no prototype in function AicomGetmessage\r\n*** 3 errors in Compile ***\r\nTurbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland\r\nFatal: Unable to open file 'XDBASE.OBJ'",
"time": "21:35",
"topic": "A much faster Class TDataBase !!!",
"username": "James Bott"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\r\n\r\nIt seems there were lots of wordwraps put into the code when it was posted in the message. I can fix most of them, but I am not sure about the C syntax. Can you email me a zipped copy of the original PRG?\r\n\r\nRegards,\r\nJames",
"time": "21:44",
"topic": "A much faster Class TDataBase !!!",
"username": "James Bott"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Mr. Antonio,\r\n\r\nI suggest that this class be included/updated with FHW8.11 so I (we) can start downloading the 8.11....\r\n\r\n\r\n2Cents!\r\n\r\n\r\n\r\nP.S.\r\n - ....before my 2 months update expires <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: --> \r\n\r\n\r\nHappy Holidays!\r\n\r\n\r\nRegards,",
"time": "02:30",
"topic": "A much faster Class TDataBase !!!",
"username": "fraxzi"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have this error during compilation using xMate:\r\n\r\n[img:2ce9l79j]http://i208.photobucket.com/albums/bb82/fraxzi/FWxHarbour/xDataBase.jpg[/img:2ce9l79j]\r\n\r\n\r\nAlso, I can't find some files like \"hbapicls.h\" on my development directory...\r\n\r\n\r\nRegards,",
"time": "02:53",
"topic": "A much faster Class TDataBase !!!",
"username": "fraxzi"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\r\n\r\nthis file You can find in => HARBOUR/include ( not xHARBOUR )\r\n\r\n\r\n/*\r\n * $Id: hbapicls.h 8359 2008-04-22 02:51:18Z druzus $\r\n */\r\n\r\n/*\r\n * Harbour Project source code:\r\n * Harbour class API\r\n *\r\n * Copyright 2006 Przemyslaw Czerpak <druzus / at / priv.onet.pl>\r\n * www - <!-- m --><a class=\"postlink\" href=\"http://www.harbour-project.org\">http://www.harbour-project.org</a><!-- m -->\r\n *\r\n * This program is free software; you can redistribute it and/or modify\r\n * it under the terms of the GNU General Public License as published by\r\n * the Free Software Foundation; either version 2, or (at your option)\r\n * any later version.\r\n *\r\n * This program is distributed in the hope that it will be useful,\r\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n * GNU General Public License for more details.\r\n *\r\n * You should have received a copy of the GNU General Public License\r\n * along with this software; see the file COPYING. If not, write to\r\n * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,\r\n * Boston, MA 02111-1307 USA (or visit the web site <!-- m --><a class=\"postlink\" href=\"http://www.gnu.org/\">http://www.gnu.org/</a><!-- m -->).\r\n *\r\n * As a special exception, the Harbour Project gives permission for\r\n * additional uses of the text contained in its release of Harbour.\r\n *\r\n * The exception is that, if you link the Harbour libraries with other\r\n * files to produce an executable, this does not by itself cause the\r\n * resulting executable to be covered by the GNU General Public License.\r\n * Your use of that executable is in no way restricted on account of\r\n * linking the Harbour library code into it.\r\n *\r\n * This exception does not however invalidate any other reasons why\r\n * the executable file might be covered by the GNU General Public License.\r\n *\r\n * This exception applies only to the code released by the Harbour\r\n * Project under the name Harbour. If you copy code from other\r\n * Harbour Project or Free Software Foundation releases into a copy of\r\n * Harbour, as the General Public License permits, the exception does\r\n * not apply to the code that you add in this way. To avoid misleading\r\n * anyone as to the status of such modified files, you must delete\r\n * this exception notice from them.\r\n *\r\n * If you write modifications of your own for Harbour, it is your choice\r\n * whether to permit this exception to apply to your modifications.\r\n * If you do not wish that, delete this exception notice.\r\n *\r\n */\r\n\r\n....\r\n....\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "03:03",
"topic": "A much faster Class TDataBase !!!",
"username": "ukoenig"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Uwe,\r\n\r\n\r\nSorry for that. I'm using xHarbour only. <!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) --> \r\n\r\n\r\nIs there a way to compile this class using xHarbour (build.6195 from Fivetech) <!-- s:?: --><img src=\"{SMILIES_PATH}/icon_question.gif\" alt=\":?:\" title=\"Question\" /><!-- s:?: --> \r\n\r\n\r\nRegards,",
"time": "03:13",
"topic": "A much faster Class TDataBase !!!",
"username": "fraxzi"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello < fraxzi >\r\nIt seems, that it is not working with XHARBOUR.\r\n\r\nAntonio's description :\r\nAs a special gift from Santa (thanks Jose Luis!) here you have it to start using it. It has been tested with \r\n\r\nHarbour in PC and Pocket PC.\r\n----------------------------------\r\n \r\nYour feedback is welcome.\r\n\r\nRegards\r\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "13:20",
"topic": "A much faster Class TDataBase !!!",
"username": "ukoenig"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James, Uwe, Frances,\r\n\r\nI have not tested this code myself yet. But reviewing it, I see that it uses hashes to avoid the AScan that we do from the method OnError().\r\n\r\nFor xHarbour users, we could test these improvements:\r\n\r\nTo avoid the AScan(), we can do instead of:\r\n[code:13favvg3]\n if ( nField := AScan( ::aFldNames,;\n { | cField | SubStr( cMsg, 2 ) == ;\n RTrim( SubStr( cField, 1, 9 ) ) } ) ) != 0\n ::FieldPut( nField, uParam1 )\n[/code:13favvg3]\nthis code:\n[code:13favvg3]\n if ( nField := ::FieldPos( SubStr( cMsg, 2 ) ) ) != 0\n ::FieldPut( nField, uParam1 )\n[/code:13favvg3]",
"time": "15:47",
"topic": "A much faster Class TDataBase !!!",
"username": "Antonio Linares"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Also, I wonder if hashes are faster than calling FieldPos().\r\n\r\nI guess that FieldPos() may be quite similar in speed as hashes.\r\n\r\nOf course we could also get speed improvement porting OnError() to C code as Jose Luis does.",
"time": "15:50",
"topic": "A much faster Class TDataBase !!!",
"username": "Antonio Linares"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi to all,\r\n\r\nWell... this class was only created and tested in Harbour for PPC.\r\n\r\nLet me explain a little what this class do.\r\n\r\nWe have done two type of enhancements. First we have changed arrays from abuffer to hashes. This change allow eliminate all ascans (which normally slow down performance). The second change is about error handler. Error handler is now in low level, that is, in C. \r\n\r\nIn our tests we have noticed that in assigning and setting values to/from now are about 4 or 5 times faster than with original tDatabase.\r\n\r\nFor example, this test:\r\n\r\nFOR x := 1 TO 50000\r\n oDb:MyField := \"somevalue\"\r\nNEXT\r\n\r\nin original tdatabase needs 35 seconds to complete whilst with new class it only needs 9 seconds (tests done on PPC emulator)\r\n\r\nThe rest of the class remains unchanged. As you can see, this class inherits from tDatabase. This is because for testing purposes it is easier to change from xDatabase to tDatabase instead of changing .mak files. \r\n\r\nAnd about xHarbour... well I shall take a look next week (if I have time enought). \r\n\r\nI hope you'll enjoy it.\r\n\r\nRegards,\r\nJosé Luis Capel",
"time": "20:14",
"topic": "A much faster Class TDataBase !!!",
"username": "jlcapel"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi \r\n\r\nWork directly on the DBF is 4/5 time faster that work with TDATABSE .\r\nI use this function ( with xHarbour ) for load and save the date in a hash .\r\n\r\nRegards Maurizio \r\n[code:3xs58r92]//--------------------------------------------------------------------------\n\nFunction MAin()\nLocal aVArs \nUSE \"CLI01.dbf\"\naVars := LoadDbf() \n\naVars:CODPRO := \"ABCD\" \n\nSaveDbf(aVars)\nuse \nReturn nil \n\n Function LoadDbf() // Scatter()\n Local aVars := {=>}\n LOcal nField := FCount()\n LOcal nX := 1\n FOR nX := 1 TO nField\n aVars[FIELDNAME(nX)] := FieldGet(nX)\n NEXT\n \n Return aVars\n \n//--------------------------------------------------------------------------\nFunction SaveDbf(aVArs) //Gather(aVars)\n lOCAL Nx := 1\n FOR Nx := 1 TO LEN(aVars)\n FieldPut(nX,aVArs[FIELDNAME(nX)] )\n NEXT\nReturn TRUE\n \n//--------------------------------------------------------------------------\n Function Blank(aVars) \n local i,nX\n i := len(aVars)\n for nX :=1 to i\n do case\n case valtype(aVars[FIELDNAME(nX)]) == \"C\" ; aVars[FIELDNAME(nX)] := space(len(aVars[FIELDNAME(nX)]))\n case valtype(aVars[FIELDNAME(nX)]) == \"N\" ; aVars[FIELDNAME(nX)] := 0\n case valtype(aVars[FIELDNAME(nX)]) == \"D\" ; aVars[FIELDNAME(nX)] := CTOD(\"00-00-00\")\n case valtype(aVars[FIELDNAME(nX)]) == \"M\" ; aVars[FIELDNAME(nX)] := space(200)\n case valtype(aVars[FIELDNAME(nX)]) == \"L\" ; aVars[FIELDNAME(nX)] := .F.\n endcase\n next\n Return aVars\n\n\n\n\n\n\n[/code:3xs58r92]",
"time": "09:40",
"topic": "A much faster Class TDataBase !!!",
"username": "Maurizio"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maurizio,\r\n\r\nVery good example, thanks <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "11:23",
"topic": "A much faster Class TDataBase !!!",
"username": "Antonio Linares"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Maurizio\":2a1j3lve]Hi \n\nWork directly on the DBF is 4/5 time faster that work with TDATABSE .\nI use this function ( with xHarbour ) for load and save the date in a hash .\n\nRegards Maurizio \n[code:2a1j3lve]//--------------------------------------------------------------------------\n\nFunction MAin()\nLocal aVArs \nUSE \"CLI01.dbf\"\naVars := LoadDbf() \n\naVars:CODPRO := \"ABCD\" \n\nSaveDbf(aVars)\nuse \nReturn nil \n\n Function LoadDbf() // Scatter()\n Local aVars := {=>}\n LOcal nField := FCount()\n LOcal nX := 1\n FOR nX := 1 TO nField\n aVars[FIELDNAME(nX)] := FieldGet(nX)\n NEXT\n \n Return aVars\n \n//--------------------------------------------------------------------------\nFunction SaveDbf(aVArs) //Gather(aVars)\n lOCAL Nx := 1\n FOR Nx := 1 TO LEN(aVars)\n FieldPut(nX,aVArs[FIELDNAME(nX)] )\n NEXT\nReturn TRUE\n \n//--------------------------------------------------------------------------\n Function Blank(aVars) \n local i,nX\n i := len(aVars)\n for nX :=1 to i\n do case\n case valtype(aVars[FIELDNAME(nX)]) == \"C\" ; aVars[FIELDNAME(nX)] := space(len(aVars[FIELDNAME(nX)]))\n case valtype(aVars[FIELDNAME(nX)]) == \"N\" ; aVars[FIELDNAME(nX)] := 0\n case valtype(aVars[FIELDNAME(nX)]) == \"D\" ; aVars[FIELDNAME(nX)] := CTOD(\"00-00-00\")\n case valtype(aVars[FIELDNAME(nX)]) == \"M\" ; aVars[FIELDNAME(nX)] := space(200)\n case valtype(aVars[FIELDNAME(nX)]) == \"L\" ; aVars[FIELDNAME(nX)] := .F.\n endcase\n next\n Return aVars\n[/code:2a1j3lve][/quote:2a1j3lve]\r\n\r\nMaybe \r\n Local aVars := {=>}\r\n\r\nBetter is \r\n LOCAL aVars := TAssociativeArray()\r\n\r\nThen we can use fieldname OR fieldnumber\r\n\r\naVars:CODPRO := \"ABCD\" \r\n\r\nCan also written as \r\n\r\naVars[\"CODPRO\"] := \"ABCD\" \r\n// didn't know your syntax\r\n\r\nOR\r\n\r\naVars[1] := \"ABCD\" supposing it is the first field\r\n \r\n\r\nFrank",
"time": "13:33",
"topic": "A much faster Class TDataBase !!!",
"username": "demont frank"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\r\n\r\nI´m using a similar method for reading dbf´s, but I additionally check the type of each field to get a default values and to resize teh len of of the arrayelement to the size of the field. For every array element there is a define\r\n\r\nMaybe it´s usefull for somebody\r\n\r\n[code:26f0ucsr]\n#define C_STATUS 1\n....\n::aStruct := (::cAlias)->(dbStruct())\n\n\nMETHOD ReadData (lNew) CLASS TComputer\n\nLOCAL aData := Array(Len(::aStruct))\nLOCAL i := 1\n\nDEFAULT lNew := .F.\n\nIF lNew\n\n FOR i := 1 TO LEN (::aStruct)\n DO CASE\n CASE ::aStruct[i,DBS_TYPE]==\"N\"\n aData[i] := 0\n CASE ::aStruct[i,DBS_TYPE]==\"C\"\n aData[i] := SPACE (::aStruct[i,DBS_LEN])\n CASE ::aStruct[i,DBS_TYPE]==\"L\"\n aData[i] := .F.\n CASE ::aStruct[i,DBS_TYPE]==\"D\"\n aData[i] := CTOD (\" . . \")\n CASE ::aStruct[i,DBS_TYPE]==\"M\"\n aData[i] := SPACE (1024)\n OTHERWISE\n aData[i] := SPACE (10)\n ENDCASE\n NEXT\n aData[C_STATUS] := 1 // bei Neueinträgen immer active\nELSE\n\n FOR i := 1 TO LEN (::aStruct)\n IF ::aStruct[i,DBS_TYPE]==\"M\"\n aData[i] := PADR ( (::cAlias)->(FIELDGET(i)),1024)\n ELSE\n aData[i] := IIF (::aStruct[i,DBS_TYPE]==\"C\",;\n PADR ( (::cAlias)->(FIELDGET(i)),::aStruct[i,DBS_LEN]),;\n (::cAlias)->(FIELDGET(i)) )\n ENDIF\n NEXT\n\n aData[C_TYP]+=1\n\nENDIF\n\n\nRETURN (aData)\n[/code:26f0ucsr]",
"time": "17:09",
"topic": "A much faster Class TDataBase !!!",
"username": "StefanHaupt"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Frank \r\n\r\nThis is from hash.txt \r\n\r\nRegards MAurizio \r\n\r\nExamples:\r\n * \r\n * LOCAL hHash := {=>} // Builds an empty hash\r\n * LOCAL hAnother := { 'key a' => 'first value', 12 => { 'a', 'b', 'c'} }\r\n * \r\n * ---------------------------------------------------------------------\r\n * * NOTE: Up to date, { => } construct was used by TAssociativeArray()\r\n * pseudo object declaration. Most of the TAssociativeArray() system\r\n * has been emulated in hashes, so older program should not need \r\nto\r\n * use it, but if you find any incompatibility in using older program,\r\n * the inclusion of \"assocarr.ch\" file will remap {=>} to an\r\n * associative array class.\r\n * ----------------------------------------------------------------------\r\n\r\n//-----------------------------------------------------------------------------------\r\n This is a typical usage of the colon operator:\r\n * \r\n * LOCAL hHash := { 1 => 10, 2 => 20 }\r\n * \r\n * hHash:NewKey := 'newval'\r\n * ? hHash:NewKey // newval\r\n * \r\n * hHash:NewKey := 15\r\n * ? hHash:NewKey // 15\r\n * \r\n * ? hHash['NEWKEY' ] // 15\r\n * HSetCaseMatch( hHash, .F.)\r\n * ? hHash[ 'newkey' ] // 15\r\n * \r\n * ? hHash:unexisting // BOUND ERROR\r\n * \r\n * \r\n * A program written using only the ':' operator has not to care about\r\n * hash case match mode.",
"time": "17:18",
"topic": "A much faster Class TDataBase !!!",
"username": "Maurizio"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Maurizio,\r\n\r\n>Work directly on the DBF is 4/5 time faster that work with TDATABSE . \r\nI use this function ( with xHarbour ) for load and save the date in a hash . \r\n\r\nI admit I don't really know anything about hashes, but your code example doesn't seem to be ussing hashes, nor does it seem to be much different than the TDatabase load and save methods. Please explain.\r\n\r\nThe biggest problem with using functions is that you cannot inherit from them.\r\n\r\nRegards,\r\nJames",
"time": "22:23",
"topic": "A much faster Class TDataBase !!!",
"username": "James Bott"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\r\n\r\nThe great benefit of hashes is that it uses e mechanism simular to index files to locate a element without scanning a array (i suppose , i am not a specialist)\r\n\r\nAlso the syntach is much easier. In clipper i scatter the elements with \r\n\r\nLOCAL h[FCOUNT()] , i := 1\r\nAEVAL(h,{||h[i]:=FIELDGET(i++)})\r\nRETURN h\r\n\r\nTo use i have to replace fieldnames with fieldnumbers , but when the structure from the dbf changes , it is a disastre ( I try to only add new fields to overcome this , not used fields are maintained)\r\n\r\nUsing tDatabase uses the fieldname (i suppose) , but when this variabeles are used there will be a scan\r\n\r\n\r\nWith hashes we can\r\n\r\nLOCAL h := Hash() , i := FCOUNT()\r\n\r\nFOR i := 1 TO FCOUNT()\r\n h:Field(i) := Fieldget(i)\r\nNEXT\r\n\r\nRETURN h\r\n \r\nNow we can also use the fieldname , but the variable will be found without a scan.\r\n\r\nWith associative arrays also the index can be used , both methods can be used :\r\n\r\nh[1] , h[fieldname(1)] , h:fieldname(1) is all the same\r\n[quote=\"James Bott\":2v1zqqip]Maurizio,\n\n>Work directly on the DBF is 4/5 time faster that work with TDATABSE . \nI use this function ( with xHarbour ) for load and save the date in a hash . \n\nI admit I don't really know anything about hashes, but your code example doesn't seem to be ussing hashes, nor does it seem to be much different than the TDatabase load and save methods. Please explain.\n\nThe biggest problem with using functions is that you cannot inherit from them.\n\nRegards,\nJames[/quote:2v1zqqip]",
"time": "20:11",
"topic": "A much faster Class TDataBase !!!",
"username": "demont frank"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2008-12-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Frank and everyone,\r\n\r\nOK, I didn't notice the use of some kind of hash object in the code before.\r\n\r\nI am all for speed, but I wonder how much in matters in this case. According to Jose's numbers assigning a value to a tdatabase object field 50,000 times took 35 seconds. So this would be 35/50000 = 0.0007 seconds per assignment. So let us say we have a database with 200 fields, it still would only require 0.0007 * 200 = 0.14 seconds to assign values to all the fields.\r\n\r\nI am still in favor of speeding up TDatabase, but I am not sure a user will notice any speed improvement unless hundreds of records are being updated at one time.\r\n\r\nHas anyone noticed a speed increase using this?\r\n\r\nRegards,\r\nJames",
"time": "22:23",
"topic": "A much faster Class TDataBase !!!",
"username": "James Bott"
}
] |
A much faster Class TDataBase !!!
|
[
{
"date": "2009-09-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI started with a VTitle-Painter using the new VTitle-Class and the Result of first Tests are fantastic.\n\nI can define any Style with any included Images on selected Backgrounds and Positions.\nThe needed Source is created as well, to make it easy, to include the designed VTitle in Your Application.\nWith just a Mouseclick, You can create new Combinations.\nThe Size of the VTitle can easy defined with a horizontal and vertical Slider.\nAll Settings can be [color=#FF0000:1ze628zq]saved to a DBF [/color:1ze628zq]and will be restored with a new Start.\nBecause of many possible Settings, the Visual-Design will be a great Help for Users.\n\nWith all the possible Combinations, it is a hard work, to test it inside Your Application\nfor a good Result. Only for the VTitle-Body [size=150:1ze628zq][b:1ze628zq][color=#FF0000:1ze628zq]64[/color:1ze628zq][/b:1ze628zq][/size:1ze628zq] Combinations are possible.\nThe Settings of the VTitle-Body :\n[color=#FF0000:1ze628zq]Transparent, Base, Border, Shadow, Shadow-Position, Shadow-Size, Shadow-Itensity[/color:1ze628zq]\nall this in Combination with different Text and different Buttons.\nThe Buttons as well have different Settings.\nThe Work is nearly done. I think, the first Release for Testing, will be finished End of next Week.\n\n[img:1ze628zq]http://www.pflegeplus.com/pictures/VTitledes0.jpg[/img:1ze628zq]\n\nA vertical VTitle with Brush\n\n[img:1ze628zq]http://www.pflegeplus.com/pictures/VTitledes1.jpg[/img:1ze628zq]\n\nA horizontal VTitle with Image\n\n[img:1ze628zq]http://www.pflegeplus.com/pictures/VTitledes2.jpg[/img:1ze628zq]\n\nA Gradient Background and VTitle with defined Gradient\n\n[img:1ze628zq]http://www.pflegeplus.com/pictures/VTitledes3.jpg[/img:1ze628zq]\n\nMany needed Parts can be used from other Tools.\nThat makes it easy, to create something new in a very short Time.\n\n[img:1ze628zq]http://www.pflegeplus.com/pictures/VTitledes4.jpg[/img:1ze628zq]\n\nAll possible VTitle-Settings :\n[color=#FF0000:1ze628zq]Gradient \nShadow- Size, Position, Transparent-Level\nText-Font, Color, Brush, Base, Border,\nCorner-Selection[/color:1ze628zq]\n\n[img:1ze628zq]http://www.pflegeplus.com/pictures/VTitledes7.jpg[/img:1ze628zq]\n\nEasy resizing with Sliders and define Position on Screen.\n\n[img:1ze628zq]http://www.pflegeplus.com/pictures/VTitledes8.jpg[/img:1ze628zq]\n\nDefine up to 3 Texlline on any VTitle-Position.\n\n[img:1ze628zq]http://www.pflegeplus.com/pictures/VTitledes9.jpg[/img:1ze628zq]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "19:23",
"topic": "A new < VTitle-Painter > Class VTitle FWH 9.08",
"username": "ukoenig"
}
] |
A new < VTitle-Painter > Class VTitle FWH 9.08
|
[
{
"date": "2011-10-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "We couldn't resist to implement a much simpler and better coded Class TGantt <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\n\nSo here you have it. We will include it in next FWH build, and we plan to continue enhancing it.\n\ngantt.prg\n[code=fw:w6fnsjpb]<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: #00D7D7;\">#define</span> GWL_STYLE <span style=\"color: #000000;\">-16</span><br /><br /><span style=\"color: #00C800;\">static</span> nOldCol, nOldRow<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TGantt <span style=\"color: #0000ff;\">FROM</span> TControl<br /><br /> <span style=\"color: #00C800;\">DATA</span> aItems <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /> <span style=\"color: #00C800;\">DATA</span> oItem, oLbx<br /> <span style=\"color: #00C800;\">DATA</span> lCaptured AS LOGICAL <span style=\"color: #0000ff;\">INIT</span> .F.<br /> <span style=\"color: #00C800;\">DATA</span> hPen<br /> <span style=\"color: #00C800;\">DATA</span> lLResize, lRResize AS LOGICAL <span style=\"color: #0000ff;\">INIT</span> .F.<br /> <span style=\"color: #00C800;\">DATA</span> bChange, bPressed<br /> <span style=\"color: #00C800;\">DATA</span> lGridMonth <span style=\"color: #0000ff;\">INIT</span> .F. <br /><br /> CLASSDATA lRegistered AS LOGICAL<br /><br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> nTop, nLeft, nWidth, nHeight, oWnd, lBorder,;<br /> lVScroll, lHScroll, nClrFore, nClrBack, bchange, dpresed, oLbx <span style=\"color: #000000;\">)</span> CONSTRUCTOR<br /><br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Redefine</span><span style=\"color: #000000;\">(</span> nId, oWnd, nClrFore, nClrBack <span style=\"color: #000000;\">)</span> CONSTRUCTOR<br /><br /> <span style=\"color: #00C800;\">METHOD</span> AddItem<span style=\"color: #000000;\">(</span> nTop, nLeft, nBottom, nRight <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> AtItem<span style=\"color: #000000;\">(</span> nRow, nCol <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> EraseBkGnd<span style=\"color: #000000;\">(</span> hDC <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">INLINE</span> <span style=\"color: #000000;\">1</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> GridMonth<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">Display</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">INLINE</span> ::<span style=\"color: #000000;\">BeginPaint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, ::<span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">EndPaint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">0</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> LButtonDown<span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">METHOD</span> LButtonUp<span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span> <br /><br /> <span style=\"color: #00C800;\">METHOD</span> MouseMove<span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span> <br /> <br /> <span style=\"color: #00C800;\">METHOD</span> End<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> nTop, nLeft, nWidth, nHeight, oWnd, lBorder,;<br /> lVScroll, lHScroll, nClrFore, nClrBack, bChange, bPressed, oLbx <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">DEFAULT</span> lBorder := .T., nClrFore := <span style=\"color: #000000;\">0</span>, nClrBack := CLR_WHITE,;<br /> lVScroll := .F., lHScroll := .F.,; <br /> oWnd := GetWndDefault<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">cCaption</span> = <span style=\"color: #ff0000;\">\"\"</span><br /> ::<span style=\"color: #000000;\">oWnd</span> = oWnd<br /> ::<span style=\"color: #000000;\">bChange</span> = bChange<br /> ::<span style=\"color: #000000;\">bPressed</span> = bPressed<br /> ::<span style=\"color: #000000;\">oLbx</span> = oLbx<br /> ::<span style=\"color: #000000;\">nStyle</span> = nOr<span style=\"color: #000000;\">(</span> WS_CHILD,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> lBorder, WS_BORDER, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> lVScroll, WS_VSCROLL, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> lHScroll, WS_HSCROLL, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span>,;<br /> WS_VISIBLE, WS_TABSTOP <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">Register</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /><br /> ::<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">(</span> nClrFore, nClrBack <span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">hPen</span> = CreatePen<span style=\"color: #000000;\">(</span> PS_SOLID, <span style=\"color: #000000;\">1</span>, nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span>, <span style=\"color: #000000;\">128</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> oWnd:<span style=\"color: #000000;\">lVisible</span><br /> ::<span style=\"color: #000000;\">Create</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #00C800;\">Default</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">lVisible</span> = .t.<br /> oWnd:<span style=\"color: #000000;\">AddControl</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span><br /> oWnd:<span style=\"color: #000000;\">DefControl</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">lVisible</span> = .F.<br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #B900B9;\">/*<br /> if lVScroll<br /> DEFINE SCROLLBAR ::oVScroll VERTICAL OF Self<br /> endif<br /> if lHScroll<br /> DEFINE SCROLLBAR ::oHScroll HORIZONTAL OF Self<br /> endif<br /> */</span><br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Redefine</span><span style=\"color: #000000;\">(</span> nId, oWnd, nClrFore, nClrBack, bChange, bPressed, oLbx <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">DEFAULT</span> oWnd := GetWndDefault<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">nId</span> = nId<br /> ::<span style=\"color: #000000;\">cCaption</span> = <span style=\"color: #ff0000;\">\"\"</span><br /> ::<span style=\"color: #000000;\">lCaptured</span> = .F.<br /> ::<span style=\"color: #000000;\">oWnd</span> = oWnd<br /> ::<span style=\"color: #000000;\">bChange</span> = bChange<br /> ::<span style=\"color: #000000;\">bPressed</span> = bPressed<br /> ::<span style=\"color: #000000;\">oLbx</span> = oLbx<br /><br /> ::<span style=\"color: #000000;\">Register</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ::<span style=\"color: #000000;\">SetColor</span><span style=\"color: #000000;\">(</span> nClrFore, nClrBack <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">if</span> lAnd<span style=\"color: #000000;\">(</span> GetWindowLong<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, GWL_STYLE <span style=\"color: #000000;\">)</span>, WS_VSCROLL <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> SCROLLBAR ::<span style=\"color: #000000;\">oVScroll</span> <span style=\"color: #0000ff;\">VERTICAL</span> <span style=\"color: #0000ff;\">OF</span> <span style=\"color: #00C800;\">Self</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">if</span> lAnd<span style=\"color: #000000;\">(</span> GetWindowLong<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span>, GWL_STYLE <span style=\"color: #000000;\">)</span>, WS_HSCROLL <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> SCROLLBAR ::<span style=\"color: #000000;\">oHScroll</span> <span style=\"color: #0000ff;\">HORIZONTAL</span> <span style=\"color: #0000ff;\">OF</span> <span style=\"color: #00C800;\">Self</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> oWnd:<span style=\"color: #000000;\">DefControl</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> AddItem<span style=\"color: #000000;\">(</span> nTop, nLeft, nBottom, nRight, nClrBack <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">local</span> oItem := TGanttItem<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">Self</span>, nTop, nLeft, nBottom, nRight, nClrBack <span style=\"color: #000000;\">)</span><br /> <br /> AAdd<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aItems</span>, oItem <span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">return</span> oItem <br /> <br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> AtItem<span style=\"color: #000000;\">(</span> nRow, nCol <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">local</span> nItem := AScan<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aItems</span>, <span style=\"color: #000000;\">{</span> | oItem | oItem:<span style=\"color: #000000;\">IsOver</span><span style=\"color: #000000;\">(</span> nRow, nCol <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span> <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> nItem != <span style=\"color: #000000;\">0</span>, ::<span style=\"color: #000000;\">aItems</span><span style=\"color: #000000;\">[</span> nItem <span style=\"color: #000000;\">]</span>, <span style=\"color: #00C800;\">nil</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> GridMonth<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">local</span> n, nWidth := ::<span style=\"color: #000000;\">nWidth</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> / <span style=\"color: #000000;\">31</span><br /> <br /> MoveTo<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">18</span> <span style=\"color: #000000;\">)</span><br /> LineTo<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, ::<span style=\"color: #000000;\">nWidth</span>, <span style=\"color: #000000;\">18</span> <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">30</span><br /> MoveTo<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nWidth * n, <span style=\"color: #000000;\">0</span> <span style=\"color: #000000;\">)</span> <br /> LineTo<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, nWidth * n, ::<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span> <br /> <br /> <span style=\"color: #00C800;\">for</span> n = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> <span style=\"color: #000000;\">31</span><br /> ::<span style=\"color: #0000ff;\">Say</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">3</span>, <span style=\"color: #000000;\">7</span> + <span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span> n - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span> * nWidth <span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> n < <span style=\"color: #000000;\">10</span>, <span style=\"color: #ff0000;\">\" \"</span>, <span style=\"color: #ff0000;\">\"\"</span> <span style=\"color: #000000;\">)</span> + AllTrim<span style=\"color: #000000;\">(</span> Str<span style=\"color: #000000;\">(</span> n <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span>,,, <span style=\"color: #00C800;\">If</span><span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oFont</span> != <span style=\"color: #00C800;\">nil</span>, ::<span style=\"color: #000000;\">oFont</span>,<span style=\"color: #000000;\">)</span>, .T. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span> <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">local</span> aInfo := ::<span style=\"color: #000000;\">DispBegin</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hDC</span>, GetClientRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hWnd</span> <span style=\"color: #000000;\">)</span>, ::<span style=\"color: #000000;\">oBrush</span>:<span style=\"color: #000000;\">hBrush</span> <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lGridMonth</span><br /> ::<span style=\"color: #000000;\">GridMonth</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <br /> AEval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">aItems</span>, <span style=\"color: #000000;\">{</span> | oItem | oItem:<span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">bPainted</span> != <span style=\"color: #00C800;\">nil</span><br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bPainted</span>, ::<span style=\"color: #000000;\">hDC</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> ::<span style=\"color: #000000;\">DispEnd</span><span style=\"color: #000000;\">(</span> aInfo <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> MouseMove<span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">local</span> oItem<br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lCaptured</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">IsOver</span><span style=\"color: #000000;\">(</span> nRow, nCol, <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">DrawBorder</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// to remove the previous painted lines</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lRResize</span><br /> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">nRight</span> = nCol - <span style=\"color: #000000;\">(</span> nOldCol - ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">nRight</span> <span style=\"color: #000000;\">)</span><br /> elseif ::<span style=\"color: #000000;\">lLResize</span> <br /> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">nLeft</span> = nCol - <span style=\"color: #000000;\">(</span> nOldCol - ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span> <br /> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">nLeft</span> = nCol - <span style=\"color: #000000;\">(</span> nOldCol - ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">nLeft</span> <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">nRight</span> = nCol - <span style=\"color: #000000;\">(</span> nOldCol - ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">nRight</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">DrawBorder</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> nOldCol = nCol<br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">else</span><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> oItem := ::<span style=\"color: #000000;\">AtItem</span><span style=\"color: #000000;\">(</span> nRow, nCol <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">if</span> nCol < oItem:<span style=\"color: #000000;\">nLeft</span> + <span style=\"color: #000000;\">5</span> .or. nCol > oItem:<span style=\"color: #000000;\">nRight</span> - <span style=\"color: #000000;\">5</span><br /> CursorWE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">MouseMove</span><span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> LButtonDown<span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">local</span> oItem<br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">oLbx</span> != <span style=\"color: #00C800;\">nil</span><br /> ::<span style=\"color: #000000;\">oLbx</span>:<span style=\"color: #000000;\">LButtonDown</span><span style=\"color: #000000;\">(</span> nRow + <span style=\"color: #000000;\">32</span>, <span style=\"color: #000000;\">40</span>, nKeyFlags <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> <span style=\"color: #000000;\">(</span> oItem := ::<span style=\"color: #000000;\">AtItem</span><span style=\"color: #000000;\">(</span> nRow, nCol <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> != <span style=\"color: #00C800;\">nil</span><br /> nOldCol = nCol<br /> nOldRow = nRow<br /> ::<span style=\"color: #000000;\">lCaptured</span> = .T.<br /> ::<span style=\"color: #000000;\">oItem</span> = oItem<br /> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">DrawBorder</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">lLResize</span> = nCol < oItem:<span style=\"color: #000000;\">nLeft</span> + <span style=\"color: #000000;\">5</span><br /> ::<span style=\"color: #000000;\">lRResize</span> = nCol > oItem:<span style=\"color: #000000;\">nRight</span> - <span style=\"color: #000000;\">5</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lLResize</span> .or. ::<span style=\"color: #000000;\">lRResize</span><br /> CursorWE<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">else</span> <br /> CursorHand<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">endif</span><br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">LButtonDown</span><span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> LButtonUp<span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">lCaptured</span><br /> ::<span style=\"color: #000000;\">oItem</span>:<span style=\"color: #000000;\">DrawBorder</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// to remove the last painted lines</span><br /> ::<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">if</span> ::<span style=\"color: #000000;\">bChange</span> != <span style=\"color: #00C800;\">nil</span><br /> Eval<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">bChange</span>, <span style=\"color: #00C800;\">Self</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> ::<span style=\"color: #000000;\">lCaptured</span> = .F.<br /> <span style=\"color: #00C800;\">endif</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">LButtonUp</span><span style=\"color: #000000;\">(</span> nRow, nCol, nKeyFlags <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> End<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGantt<br /><br /> DeleteObject<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">hPen</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Super</span>:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">CLASS</span> TGanttItem<br /><br /> <span style=\"color: #00C800;\">DATA</span> nTop, nLeft, nBottom, nRight<br /> <span style=\"color: #00C800;\">DATA</span> nClrBack<br /> <span style=\"color: #00C800;\">DATA</span> oGantt<br /> <br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> oGantt, nTop, nLeft, nBottom, nRight, nClrBack <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">METHOD</span> DrawBorder<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">METHOD</span> IsOver<span style=\"color: #000000;\">(</span> nRow, nCol, nMargin <span style=\"color: #000000;\">)</span><br /> <br /> <span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">ENDCLASS</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> oGantt, nTop, nLeft, nBottom, nRight, nClrBack <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGanttItem<br /><br /> ::<span style=\"color: #000000;\">oGantt</span> = oGantt<br /> ::<span style=\"color: #000000;\">nTop</span> = nTop<br /> ::<span style=\"color: #000000;\">nLeft</span> = nLeft<br /> ::<span style=\"color: #000000;\">nBottom</span> = nBottom<br /> ::<span style=\"color: #000000;\">nRight</span> = nRight<br /> ::<span style=\"color: #000000;\">nClrBack</span> = nClrBack<br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">Self</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> IsOver<span style=\"color: #000000;\">(</span> nRow, nCol, nMargin <span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGanttItem<br /><br /> <span style=\"color: #00C800;\">DEFAULT</span> nMargin := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">return</span> nRow >= ::<span style=\"color: #000000;\">nTop</span> .and. nCol >= ::<span style=\"color: #000000;\">nLeft</span> - nMargin .and. ;<br /> nRow <= ::<span style=\"color: #000000;\">nBottom</span> .and. nCol <= ::<span style=\"color: #000000;\">nRight</span> + nMargin<br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> DrawBorder<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGanttItem<br /><br /> <span style=\"color: #00C800;\">local</span> hDC := ::<span style=\"color: #000000;\">oGantt</span>:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> nOldRop := SetROP2<span style=\"color: #000000;\">(</span> hDC, <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> nOldPen := SelectObject<span style=\"color: #000000;\">(</span> hDC, ::<span style=\"color: #000000;\">oGantt</span>:<span style=\"color: #000000;\">hPen</span> <span style=\"color: #000000;\">)</span><br /> <br /> MoveTo<span style=\"color: #000000;\">(</span> hDC, ::<span style=\"color: #000000;\">nLeft</span>, ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">)</span><br /> LineTo<span style=\"color: #000000;\">(</span> hDC, ::<span style=\"color: #000000;\">nRight</span> - <span style=\"color: #000000;\">1</span>, ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">)</span><br /> LineTo<span style=\"color: #000000;\">(</span> hDC, ::<span style=\"color: #000000;\">nRight</span> - <span style=\"color: #000000;\">1</span>, ::<span style=\"color: #000000;\">nBottom</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /> LineTo<span style=\"color: #000000;\">(</span> hDC, ::<span style=\"color: #000000;\">nLeft</span>, ::<span style=\"color: #000000;\">nBottom</span> - <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">)</span><br /> LineTo<span style=\"color: #000000;\">(</span> hDC, ::<span style=\"color: #000000;\">nLeft</span>, ::<span style=\"color: #000000;\">nTop</span> <span style=\"color: #000000;\">)</span><br /> SetROP2<span style=\"color: #000000;\">(</span> hDC, nOldRop <span style=\"color: #000000;\">)</span><br /> SelectObject<span style=\"color: #000000;\">(</span> hDC, nOldPen <span style=\"color: #000000;\">)</span><br /> ::<span style=\"color: #000000;\">oGantt</span>:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//----------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">METHOD</span> <span style=\"color: #0000ff;\">Paint</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #00C800;\">CLASS</span> TGanttItem<br /><br /> <span style=\"color: #00C800;\">local</span> hPen := CreatePen<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1</span>, ::<span style=\"color: #000000;\">nClrBack</span> <span style=\"color: #000000;\">)</span><br /> <br /> FillRect<span style=\"color: #000000;\">(</span> ::<span style=\"color: #000000;\">oGantt</span>:<span style=\"color: #000000;\">GetDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">{</span> ::<span style=\"color: #000000;\">nTop</span>, ::<span style=\"color: #000000;\">nLeft</span>, ::<span style=\"color: #000000;\">nBottom</span>, ::<span style=\"color: #000000;\">nRight</span> <span style=\"color: #000000;\">}</span>, hPen <span style=\"color: #000000;\">)</span><br /> <br /> DeleteObject<span style=\"color: #000000;\">(</span> hPen <span style=\"color: #000000;\">)</span> <br /> ::<span style=\"color: #000000;\">oGantt</span>:<span style=\"color: #000000;\">ReleaseDC</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><span style=\"color: #B900B9;\">//-----------------------------------------------------// </span></div>[/code:w6fnsjpb]\n\nTestGant.prg\n[code=fw:w6fnsjpb]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"Gantt.ch\"</span><br /><br /><span style=\"color: #00C800;\">function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">local</span> oFont, oWnd, oGantt<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;\">\"Verdana\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-10</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Class TGantt test\"</span><br /> <br /> @ <span style=\"color: #000000;\">1</span>, <span style=\"color: #000000;\">1</span> GANTT oGantt <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">300</span>, <span style=\"color: #000000;\">300</span> <span style=\"color: #0000ff;\">OF</span> oWnd<br /> <br /> oGantt:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span> oFont <span style=\"color: #000000;\">)</span><br /> oGantt:<span style=\"color: #000000;\">lGridMonth</span> = .T.<br /> <br /> oGantt:<span style=\"color: #000000;\">AddItem</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">80</span>, CLR_BLUE <span style=\"color: #000000;\">)</span><br /> oGantt:<span style=\"color: #000000;\">AddItem</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">60</span>, <span style=\"color: #000000;\">30</span>, <span style=\"color: #000000;\">80</span>, <span style=\"color: #000000;\">110</span>, CLR_RED <span style=\"color: #000000;\">)</span><br /> oGantt:<span style=\"color: #000000;\">AddItem</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">90</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">110</span>, <span style=\"color: #000000;\">90</span>, CLR_GREEN <span style=\"color: #000000;\">)</span><br /> oGantt:<span style=\"color: #000000;\">AddItem</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">120</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">140</span>, <span style=\"color: #000000;\">80</span>, CLR_CYAN <span style=\"color: #000000;\">)</span> <br /> oGantt:<span style=\"color: #000000;\">AddItem</span><span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">50</span>, <span style=\"color: #000000;\">170</span>, <span style=\"color: #000000;\">120</span>, CLR_YELLOW <span style=\"color: #000000;\">)</span><br /> <br /> oWnd:<span style=\"color: #000000;\">oClient</span> = oGantt<br /><br /> oWnd:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd<br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span></div>[/code:w6fnsjpb]",
"time": "21:17",
"topic": "A new Class TGantt",
"username": "Antonio Linares"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Here you have it, with a working example and full source code included:\n\n[url:2egkl09k]http://code.google.com/p/fivewin-contributions/downloads/detail?name=newgantt.zop&can=2&q=[/url:2egkl09k]",
"time": "21:26",
"topic": "A new Class TGantt",
"username": "Antonio Linares"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-05",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nAs always your code is clear and clean.\n\nReferring to the addItem() method:\n\noGantt:AddItem( 150, 50, 170, 120, CLR_YELLOW )\n\nEventually the addItem() method needs to be changed to something like:\n\noGantt:AddItem( cDescription, dStart, dEnd, nColor )\n\nInternally the class can figure out the coordinates of the task display based on the start and end date of the task and the start date of the earliest task.\n\nLater we need to consider task dependencies. Tasks can be dependent on another task being completed or partially completed. So, instead of a start date, a task starts at another's end date, or 5 days before the end date, or two days after another task's start date, etc.\n\nSometimes a task needs finer starts and ends including the hour. This is useful for scheduling, for instance.\n\nAnother issue is that tasks need to be displayed in what is called a Work Breakdown Structure (WBS) which is basically an outline format. Tasks at the lowest level have start and end dates (or dependencies) and tasks at the higher levels start when the first subtask starts and end when the last subtask ends. These upper level items (not really tasks) may or may not have a bar displayed. The bar might be a different form so it is easily visible as not being a task. The color of an item might default to a color based on the level of the item in the WBS.\n\nThe WBS needs to have at least three levels. This means that we would need a nLevel parameter and possibly a oParent parameter in the addItem() method.\n\nProject management is complicated and thus I think it is wise to consider what will be needed eventually when designing the Gantt class. Perhaps it would be useful to write up an informal Gantt class specification before getting too far into the class design. Everyone could contribute to this specification.\n\nLots to think about. Comments welcome.\n\nRegards,\nJames\n\nHere is a sample WBS:\n\n[code=fw:2jgi3fdu]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">Project Alpha<br /> Design Phase<br /> <span style=\"color: #00C800;\">Interface</span><br /> <span style=\"color: #00C800;\">class</span><br /> input<br /> output<br /> Coding Phase<br /> <span style=\"color: #00C800;\">interface</span><br /> <span style=\"color: #00C800;\">class</span><br /> input<br /> output<br /> Testing Phase<br /> ...</div>[/code:2jgi3fdu]",
"time": "23:45",
"topic": "A new Class TGantt",
"username": "James Bott"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thats a nice start. I will be happy to start working with it.\n\nYou defined a specific grid, but what we really need I believe is the ability to define a grid, and also to start with a text element.\n\nFor example, how about a chart for the following information:\n\nFirst column: Task information ( text )\n\nColumn 2 to n are steps to be perfomed.\n\nJames is correct about the format, although it is not necessarily dates we are tracking. Work in progress may be through stages, not dates.\n\nAlso, we need to be able to use this with resources ...\n\nTim",
"time": "18:18",
"topic": "A new Class TGantt",
"username": "TimStone"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\n[quote:986hwsec]James is correct about the format, although it is not necessarily dates we are tracking. Work in progress may be through stages, not dates.[/quote:986hwsec]\n\nI do believe that a Gantt chart by definition is showing the schedule of a project so the scale is time. <!-- m --><a class=\"postlink\" href=\"http://en.wikipedia.org/wiki/Gantt_chart\">http://en.wikipedia.org/wiki/Gantt_chart</a><!-- m -->\n\nIt appears that what you are looking for is a horizontal bar chart rather than a Gantt chart with a WBS. In your case you would want all the items' bars to start at zero? You also don't need a WBS either I am guessing? \n\nRegards,\nJames",
"time": "21:14",
"topic": "A new Class TGantt",
"username": "James Bott"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I have downloaded and tested this free Gantt application as it is a very good way to understand how the Class TGantt should behave:\n\n[url:3l1uykzb]http://softlayer.dl.sourceforge.net/project/openproj/OpenProj%20Binaries/1.4/openproj-1.4.msi[/url:3l1uykzb]\n\n[img:3l1uykzb]http://ubuntulife.files.wordpress.com/2009/11/openproj_big.jpg[/img:3l1uykzb]",
"time": "21:47",
"topic": "A new Class TGantt",
"username": "Antonio Linares"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nI was just going to post a link to a sample Gantt chart, but you have already posted a good one.\n\nOthers may not really need a Gnatt but something similar as Tim has indicated. I suspect that many, if not most, may not need a Gantt chart since Gantts were designed for project management. Perhaps we should take a poll to see.\n\nDoes anyone want to describe the type of chart they need? A picture would be helpful too.\n\nRegards,\nJames",
"time": "22:44",
"topic": "A new Class TGantt",
"username": "James Bott"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In my prior Job I had to make the scheduling work in many big Construction Projects were Union Companies had to be scheduled, and I used MicroSoft Projects, but I don't see any other use ratter than to build scheduling software, I never even used it in the small construction projects, as building up to 10 row houses...\n\nSo I will not have the need for a Gantt diagram Class now or in the near future... It will be great to have it, but I will preffer that effort to be put into the New Metro Class...",
"time": "03:48",
"topic": "A new Class TGantt",
"username": "Bayron"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi to all,\n\nsince years we are looking to substitute our old fashioned planning tables with paper cards for each production step with a modern future-proofed solution.\n\nRound about one year ago we decided to adapt a Manufacturing Execution System (MES)-modul to our FiveWin-based ERP-system, called ‘JobDISPO MES’. It’s a high sophisticated piece of software with a lot of features, impossible for us to program these things by ourselves, even if FiveWin offers a Gantt class.\n\nMeanwhile we are quite happy, that we are working with a competent partner, whose firm with the complex process of automatically optimization of work sequences.\n\nBut maybe there are some other needs for us to use this new Gantt class. Perhaps to visualize the results of the JobDISPO-process back in the ERP-system. So we appreciate these activities and looking forward to have a easy to use Gantt class for future implementations.",
"time": "07:42",
"topic": "A new Class TGantt",
"username": "frose"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James & Antonio,\n\nI'm looking at this to schedule jobs. You schedule across months. I would like to schedule a job across a single day, or perhaps more.\n\nHere is what I would want to schedule:\n\nDescription\nStart Time\nEnd Time\nStatus \n\nThe status field would determine the color of the bar. For example, Green would be \"in progress\", Red would be \"hold\", Yellow could be \"Testing\" and Blue could be completed. The bar would start at the start time, progress to the current time ( or end time if it is posted ), and the color would reflect the status. The description would be in a left column.\n\nTim",
"time": "21:40",
"topic": "A new Class TGantt",
"username": "TimStone"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nWhat you are describing is a standard Gantt chart. Typically, the horizontal scale can be hours, days, or months. You have a description, start, end, and percent complete which are all typical scheduling data and are used in a Gantt. We really just need to add the hour to the start and end dates and provide a X-axis in hours for you to get what you need.\n\naddItem( description, start date, start time, end date, end time, percent complete)\n\nPerhaps it would be useful to build a base class that is a simple horizontal bar chart. Then the Gantt chart could inherit from that class. This way we could fill both needs with less work.\n\nComments anyone?\n\nRegards,\nJames",
"time": "22:47",
"topic": "A new Class TGantt",
"username": "James Bott"
}
] |
A new Class TGantt
|
[
{
"date": "2011-10-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "James,\n\nI agree with you. We plan to continue this development asap <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "09:13",
"topic": "A new Class TGantt",
"username": "Antonio Linares"
}
] |
A new Class TGantt
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Pocket PC",
"text": "Hi everybody,\r\n\r\nI am a new FWPPC user and want to say hello to everybody here <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\r\n\r\nPlease expect questions from me as I am new to it, but hopefull soon I may be able to help some others <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "13:50",
"topic": "A new FWPPC user",
"username": "Michael Senfter"
}
] |
A new FWPPC user
|
[
{
"date": "2008-10-02",
"forum": "FiveWin for Pocket PC",
"text": "Hello Michael,\r\n\r\nWelcome to these forums. Please feel free to make as many questions as needed.\r\n\r\nWe are here to help each other <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "13:52",
"topic": "A new FWPPC user",
"username": "Antonio Linares"
}
] |
A new FWPPC user
|
[
{
"date": "2010-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"ukoenig\":2o4v2so2]Is there a Way, to show a resized / adjusted BMP ?[/quote:2o4v2so2]\nNo, with BITMAP shape, the size is provided by the dimentions of the bitmap and can't be resized.\n\nBest regards.\n\nManuel Mercado Gómez.",
"time": "23:19",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "mmercado"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello \n\nbecause many People are using SBUTTON from M. Mercado,\nI will put my new IDE for the Samples as Download on this place.\nI kept the samples like they are, but everything is adjusted to the IDE\nand a Painter is included, to change Backgrounds, Images and Fonts.\nAs soon it is finished, I will add a < [color=#FF0000:34m7uy2n]Download[/color:34m7uy2n] > - Comment to this post.\n\n[img:34m7uy2n]http://www.pflegeplus.com/pictures/ide1.jpg[/img:34m7uy2n]\n\nLines-Display :\n[img:34m7uy2n]http://www.pflegeplus.com/pictures/ide2.jpg[/img:34m7uy2n]\n\nSay-Display :\n[img:34m7uy2n]http://www.pflegeplus.com/pictures/ide3.jpg[/img:34m7uy2n]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "10:42",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "ukoenig"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Uwe:\n\nThanks in advance from everybody (like me) who uses TSButton.\n\nBest regards.\n\nManuel Mercado Gómez.",
"time": "17:28",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "mmercado"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Manuel,\n\nI reached the [color=#4000FF:1ijc2zks]Button-Section [/color:1ijc2zks]and wanted to change the Button-size ( Button from Resource )\nIs there a Way, to show a resized / adjusted BMP ?\n\n// New \"Shape\" feature in TSButton\n@90, 300 SBUTTON oBtn[ 4 ] OF aChild[ 1 ] FONT oFont[ 2 ] ;\nSIZE [color=#FF0000:1ijc2zks]150, 40 [/color:1ijc2zks]PIXELS ; // [color=#4000FF:1ijc2zks]doesn't resize the BMP[/color:1ijc2zks]\nRESOURCE \"Lamp1\", \"Lamp2\",, \"Lamp3\", [color=#FF0000:1ijc2zks]\"Shape3\"[/color:1ijc2zks] ;\nSHAPE ;\nPROMPT \"Exit\" ;\nTEXT ON_LEFT ;\nACTION aChild[ 1 ]:End();\nCOLORS CLR_BLACK ;\nTOOLTIP \"End Program\" ;\nMESSAGE 'See new \"Shape\" feature and 3D text (bas-relief), ' + ;\n'default position, specific 3D colors'\n\n[img:1ijc2zks]http://www.pflegeplus.com/pictures/ide4.jpg[/img:1ijc2zks]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "19:12",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "ukoenig"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Estimados: EXCELENTE... Muchas gracias a ambos.\n\nSaludos\n\nRuben Fernmandez\n(Esperando la nueva TSButton...je,je,je) <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "21:27",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "Ruben Fernandez"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Manuel,\n\neverything is included now ( nearly finished ) like the Background-Painter and a Source-Creator.\nI have a Question about the HOTSPOT-section :\nOn Mouse-caption, I get a oversized Area and I couldn't find out, where it comes from.\nAs far as possible, I'm trying to use / include Your samples. Only some Object-adjustments needed.\n( added some Space between the Buttons )\n\n[img:wbdwm31o]http://www.pflegeplus.com/pictures/hotspot1.jpg[/img:wbdwm31o]\n\n================= A part of the sample ========\n\nFUNCTION TESTHOT1(oWnd)\nLOCAL oFont, oMenu, oBrush\nLOCAL nEle, oBtn[ 20 ], oBtn30, ;\naPrompt := {}, ;\naAction := {}, ;\naRVSP := { { 11, 11, 27, 26 }, { 11, 28, 27, 41 }, { 11, 43, 27, 58 } }, ; \naBVSP := { 'MsgInfo( \"Preview\" )', 'MsgInfo( \"Save\" )', 'MsgInfo( \"Print\" )' }, ;\naTVSP := { \"Preview\", \"Save\", \"Print\" }, ;\naRPS := { { 11, 17, 27, 32 }, { 11, 35, 27, 48 } }, ;\naBPS := { 'MsgInfo( \"Print\" )', 'MsgInfo( \"Save\" )' }, ;\naTPS := { \"Print\", \"Save\" }, ;\naRVP := { { 11, 19, 27, 34 }, { 11, 37, 27, 52 } }, ;\naBVP := { 'MsgInfo( \"Preview\" )', 'MsgInfo( \"Print\" )' }, ;\naTVP := { \"Preview\", \"Print\" }, ;\naROne := { 11, 10, 27, 62 }\n\nFor nEle := 1 To 18\n AAdd( aPrompt, \"TSButton Hot Spot Sample \" + LTrim( Str( nEle ) ) )\nNext\n\nDEFINE BRUSH oBrush FILENAME \".\\system\\Blustone.bmp\"\n\nDEFINE DIALOG oDlg8 OF oWnd FROM 60, 50 TO nHeight - 80, nWidth- 300 PIXEL ;\nFONT oFont BRUSH oBrush // COLORS CLR_BLACK, CLR_NBLUE \n\n// [color=#FF0000:wbdwm31o]The 1. Button[/color:wbdwm31o]\n\n@ 5, 5 SBUTTON oBtn[ 1 ] PROMPT aPrompt[ 1 ] PIXEL OF oDlg8 ;\nRESOURCE \"VSP\" FONT oFont COLOR CLR_BLUE SHAPE ;\nACTION MsgInfo( \"Main Action Sample 1\" ) ;\nTOOLTIP \"Test\"\n\n// aHotSpot, { aRect, bAction, cToolTip }\noBtn[ 1 ]:AddHotSpot( aRVSP[ 1 ], aBVSP[ 1 ], aTVSP[ 1 ] )\noBtn[ 1 ]:AddHotSpot( aRVSP[ 2 ], aBVSP[ 2 ], aTVSP[ 2 ] )\noBtn[ 1 ]:AddHotSpot( aRVSP[ 3 ], aBVSP[ 3 ], aTVSP[ 3 ] )\n\n...\n...\n\n[color=#FF0000:wbdwm31o]Maybe something to be changed here ???[/color:wbdwm31o]\n\n// moving the caption to a specific location inside the button (pixel coordinates)\nFor nEle := 1 To 18\n\toBtn[ nEle ]:SetText( Nil, 12, 77, .T. )\nNext\n\nACTIVATE DIALOG oDlg8 VALID ( lACTIVE8 := .F., oBtn8:Enable(), .T. ) NOWAIT ;\nON INIT oDlg8:Move( 60, 50, nWidth- 350, nHeight - 150, .f. )\n\nRETURN NIL\n\n======================\n\nThe SAY is defined as TRANSPARENT but doesn't work\n\n@50, 70 SAY \"White Box\" FONT oFont SIZE 60, 15 PIXEL [color=#FF0000:wbdwm31o]TRANSPARENT[/color:wbdwm31o]\n@50, 290 SAY \"Blue Box\" FONT oFont SIZE 60, 15 PIXEL [color=#FF0000:wbdwm31o]TRANSPARENT[/color:wbdwm31o]\n@50, 500 SAY \"Green Box\" FONT oFont SIZE 60, 15 PIXEL [color=#FF0000:wbdwm31o]TRANSPARENT[/color:wbdwm31o]\n\nI tested :\n\n@50, 50 [color=#FF0000:wbdwm31o]STSAY[/color:wbdwm31o] oSay PROMPT ;\n\"Class: TSTSay\" + CRLF + \"Command: STSAY\" OF oWnd2 ;\nSIZE 450, 150 PIXELS ;\nFONT oFont COLOR CLR_RED, CLR_HGRAY ;\nSHADED BLINK CLR_HRED, 500, 3000\n\nit works [color=#FF0000:wbdwm31o]perfect[/color:wbdwm31o] on the same Backround.\n\n[img:wbdwm31o]http://www.pflegeplus.com/pictures/tsay1.jpg[/img:wbdwm31o]\n\nLabel-Text-color is always BLACK ???\n\n// label left aligned (default)\n@400, 30 GRAY BOX SIZE 150, 150 OF oWnd3 PIXEL [color=#FF0000:wbdwm31o]TEXT \"Label\"[/color:wbdwm31o] FONT oFont\n\n[img:wbdwm31o]http://www.pflegeplus.com/pictures/slines1.jpg[/img:wbdwm31o]\n\nDoesn't work\n// @50, 70 SAY \"White Box\" FONT oFont SIZE 60, 15 PIXEL TRANSPARENT\n\nChanged to :\n@50, 70 STSAY oSay PROMPT \"White Box\" OF oWnd3 SIZE 60, 15 PIXELS ;\nFONT oFont COLOR 16776960, CLR_HGRAY\n\n[img:wbdwm31o]http://www.pflegeplus.com/pictures/ssay2.jpg[/img:wbdwm31o]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "13:03",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "ukoenig"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Manuel,\n\nI have 2 small Questions about the 2. Radio-sample :\n\n1. How to display the BMP's transparent ( possible ) ? \n( a Alpha-channel displays a black background ) \n\n[color=#0000FF:3vbhnj2x]DEFINE BITMAP oBmp[ 5 ] FILENAME c_path + \"\\System\\Key1.bmp\"\nDEFINE BITMAP oBmp[ 6 ] FILENAME c_path + \"\\System\\Key2.bmp\"\nDEFINE BITMAP oBmp[ 8 ] FILENAME c_path + \"\\System\\Key4.bmp\"[/color:3vbhnj2x]\n\n[color=#0000FF:3vbhnj2x]@200, 100 SRADIO oRad[ 12 ] VAR lActive OF oWnd7 ;\nITEMS \"Enable/Disable all Radio Boxes\" SIZE 70, 30 PIXEL ;\nFONT oFont BITMAPS oBmp[ 5 ], oBmp[ 6 ],, oBmp[ 8 ] RAISED WBOX ;\nCOLOR CLR_BLACK, nRGB( 205, 192, 176 ) ;\nMESSAGE \"TSRadio Check Box, Button CHECK, Text RAISED, Own Box\" [/color:3vbhnj2x]\n\n[img:3vbhnj2x]http://www.pflegeplus.com/pictures/SBSample1.jpg[/img:3vbhnj2x]\n\n2. the changed BMP moves a bit in horizontal direction from the original Position, after Button-click.\nIs there something to be adjusted ?\n\n[img:3vbhnj2x]http://www.pflegeplus.com/pictures/SBSample2.jpg[/img:3vbhnj2x]\n\nBest Regards\nUwe <!-- s:roll: --><img src=\"{SMILIES_PATH}/icon_rolleyes.gif\" alt=\":roll:\" title=\"Rolling Eyes\" /><!-- s:roll: -->",
"time": "13:27",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "ukoenig"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello and where I can download these new buttons as nice <!-- s:mrgreen: --><img src=\"{SMILIES_PATH}/icon_mrgreen.gif\" alt=\":mrgreen:\" title=\"Mr. Green\" /><!-- s:mrgreen: --> \n\nSaluditos <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->",
"time": "16:00",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "AIDA"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-20",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\nhere are the Informations, You are looking for :\n\nManuel Mercado's Download-Link for SBUTTON release 7.0\n\n<!-- m --><a class=\"postlink\" href=\"http://www.box.net/shared/9vyw4zeo0k\">http://www.box.net/shared/9vyw4zeo0k</a><!-- m -->\n\nThe Tool, to select and create/modify the delivered SBUTTON-samples, is nearly finished.\nI Download-Link will be added to this Post.\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "20:40",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "ukoenig"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Its a really interesting tool.\n\nCongratulations!! <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "11:43",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "jose_murugosa"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello Jose,\n\nI still found another sample, that wasn't included.\nIt works fine, embedded inside the Tool.\nSlowly everything is included for a first Download.\n\nThe background of the left part can be changed with the Painter :\n\n[img:grotb6rr]http://www.pflegeplus.com/pictures/sbtn10.jpg[/img:grotb6rr]\n\n[img:grotb6rr]http://www.pflegeplus.com/pictures/sbtn11.jpg[/img:grotb6rr]\n\nBest regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "10:17",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "ukoenig"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Uwe:\n[quote=\"ukoenig\":66kvos6u]I have a Question about the HOTSPOT-section :\nOn Mouse-caption, I get a oversized Area and I couldn't find out, where it comes from.\nAs far as possible, I'm trying to use / include Your samples. Only some Object-adjustments needed.\n( added some Space between the Buttons )[/quote:66kvos6u]Here you are a revised TestHots.prg[code=fw:66kvos6u]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"TSButton.ch\"</span><br /><br /><span style=\"color: #00D7D7;\">#define</span> CLR_NBLUE nRGB<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">142</span>, <span style=\"color: #000000;\">171</span>, <span style=\"color: #000000;\">194</span> <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">//--------------------------------------------------------------------------//</span><br /><br /><span style=\"color: #00C800;\">Function</span> Main<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Local</span> oWnd, oDlg, oFont, oMenu, nEle, oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">20</span> <span style=\"color: #000000;\">]</span>, ;<br /> aPrompt := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, ;<br /> aAction := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, ;<br /> aRVSP := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">26</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">28</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">41</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">43</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">58</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>, ;<br /> aBVSP := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">'MsgInfo( \"Preview\" )'</span>, <span style=\"color: #ff0000;\">'MsgInfo( \"Save\" )'</span>, <span style=\"color: #ff0000;\">'MsgInfo( \"Print\" )'</span> <span style=\"color: #000000;\">}</span>, ;<br /> aTVSP := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Preview\"</span>, <span style=\"color: #ff0000;\">\"Save\"</span>, <span style=\"color: #ff0000;\">\"Print\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> aRPS := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">17</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">32</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">35</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">48</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>, ;<br /> aBPS := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">'MsgInfo( \"Print\" )'</span>, <span style=\"color: #ff0000;\">'MsgInfo( \"Save\" )'</span> <span style=\"color: #000000;\">}</span>, ;<br /> aTPS := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Print\"</span>, <span style=\"color: #ff0000;\">\"Save\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> aRVP := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">19</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">34</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">37</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">52</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">}</span>, ;<br /> aBVP := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">'MsgInfo( \"Preview\" )'</span>, <span style=\"color: #ff0000;\">'MsgInfo( \"Print\" )'</span> <span style=\"color: #000000;\">}</span>, ;<br /> aTVP := <span style=\"color: #000000;\">{</span> <span style=\"color: #ff0000;\">\"Preview\"</span>, <span style=\"color: #ff0000;\">\"Print\"</span> <span style=\"color: #000000;\">}</span>, ;<br /> aROne := <span style=\"color: #000000;\">{</span> <span style=\"color: #000000;\">11</span>, <span style=\"color: #000000;\">10</span>, <span style=\"color: #000000;\">27</span>, <span style=\"color: #000000;\">62</span> <span style=\"color: #000000;\">}</span><br /><br /> <span style=\"color: #00C800;\">For</span> nEle := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">18</span><br /> AAdd<span style=\"color: #000000;\">(</span> aPrompt, <span style=\"color: #ff0000;\">\"TSButton Hot Spot Sample \"</span> + LTrim<span style=\"color: #000000;\">(</span> Str<span style=\"color: #000000;\">(</span> nEle <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Next</span><br /><br /> <span style=\"color: #0000ff;\">MENU</span> oMenu<br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&File\"</span><br /> <span style=\"color: #0000ff;\">MENUITEM</span> <span style=\"color: #ff0000;\">\"&Exit\"</span> <span style=\"color: #0000ff;\">ACTION</span> oWnd:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #0000ff;\">ENDMENU</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;\">\"MS Sans Serif\"</span> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">-11</span> BOLD<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">550</span>, <span style=\"color: #000000;\">800</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">MENU</span> oMenu ;<br /> <span style=\"color: #0000ff;\">COLOR</span> CLR_BLACK, CLR_NBLUE <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"TSButton V.5.0 Hot Spots\"</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;\">0</span>, <span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> oWnd:<span style=\"color: #000000;\">nBottom</span>, oWnd:<span style=\"color: #000000;\">nRight</span> <span style=\"color: #0000ff;\">PIXEL</span> ;<br /> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">OF</span> oWnd COLORS CLR_BLACK, CLR_NBLUE ;<br /> <span style=\"color: #0000ff;\">STYLE</span> nOr<span style=\"color: #000000;\">(</span> WS_VISIBLE, WS_CHILD, WS_DLGFRAME <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">5</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE BITMAP ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 1\"</span> <span style=\"color: #000000;\">)</span> ;<br /> TOOLTIP <span style=\"color: #ff0000;\">\"Test\"</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"PS\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 10\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">10</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">25</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">FONT</span> oFont ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 2\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">25</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 11\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">11</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">45</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> BITMAP <span style=\"color: #0000ff;\">FONT</span> oFont <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 3\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">45</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">12</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">12</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 12\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">12</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">12</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">12</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">65</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"POnly\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 4\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">4</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aROne, <span style=\"color: #000000;\">{</span>||MsgInfo<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Print\"</span> <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span>, <span style=\"color: #ff0000;\">\"Print\"</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">65</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">13</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">13</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"PS\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 13\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">13</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">13</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTPS<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">85</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 5\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">5</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @ <span style=\"color: #000000;\">85</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">14</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">14</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"SOnly\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 14\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">14</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aROne, <span style=\"color: #000000;\">{</span>||MsgInfo<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Save\"</span> <span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">}</span>, <span style=\"color: #ff0000;\">\"Save\"</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">105</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 6\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">6</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">105</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 15\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">15</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">125</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 7\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">7</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">125</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">16</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">16</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 16\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">16</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">16</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">16</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">145</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 8\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">8</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">145</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">17</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">17</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"SOnly\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 17\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">17</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aROne, <span style=\"color: #ff0000;\">'MsgInfo( \"Save\" )'</span>, <span style=\"color: #ff0000;\">\"Save\"</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">165</span>, <span style=\"color: #000000;\">30</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 9\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">9</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> @<span style=\"color: #000000;\">165</span>,<span style=\"color: #000000;\">200</span> SBUTTON oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">18</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PROMPT</span> aPrompt<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">18</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #0000ff;\">PIXEL</span> <span style=\"color: #0000ff;\">OF</span> oDlg ;<br /> <span style=\"color: #0000ff;\">RESOURCE</span> <span style=\"color: #ff0000;\">\"VSP\"</span> <span style=\"color: #0000ff;\">FONT</span> oFont BITMAP <span style=\"color: #0000ff;\">COLOR</span> CLR_BLUE ;<br /> <span style=\"color: #0000ff;\">ACTION</span> <span style=\"color: #0000ff;\">MsgInfo</span><span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Main Action Sample 18\"</span> <span style=\"color: #000000;\">)</span><br /><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">18</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">1</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">18</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">2</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /> oBtn<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">18</span> <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">AddHotSpot</span><span style=\"color: #000000;\">(</span> aRVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aBVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span>, aTVSP<span style=\"color: #000000;\">[</span> <span style=\"color: #000000;\">3</span> <span style=\"color: #000000;\">]</span> <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">// moving the caption to a specific location inside the button (pixel coordinates)</span><br /> <span style=\"color: #00C800;\">For</span> nEle := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> <span style=\"color: #000000;\">18</span><br /> oBtn<span style=\"color: #000000;\">[</span> nEle <span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">SetText</span><span style=\"color: #000000;\">(</span> <span style=\"color: #00C800;\">Nil</span>, <span style=\"color: #000000;\">12</span>, <span style=\"color: #000000;\">77</span>, .T. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Next</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">DIALOG</span> oDlg <span style=\"color: #0000ff;\">NOWAIT</span><br /><br /> SET <span style=\"color: #0000ff;\">MESSAGE</span> <span style=\"color: #0000ff;\">OF</span> oWnd <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #ff0000;\">\"Super Buttons, New V.5.0 Hot Spots\"</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oWnd <span style=\"color: #0000ff;\">MAXIMIZED</span> <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> oDlg:<span style=\"color: #000000;\">SetFocus</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> ;<br /> <span style=\"color: #0000ff;\">VALID</span> <span style=\"color: #000000;\">(</span> oFont:<span style=\"color: #000000;\">End</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, .T. <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span></div>[/code:66kvos6u]\n\n[quote=\"ukoenig\":66kvos6u]Label-Text-color is always BLACK ???[/quote:66kvos6u]The clause \"COLORS\" in TSLines Boxes accepts 3 colors as follows....\nCOLORS nClrLight, nClrDark, nClrLabel\n\nSo you can use any color you want for light lines, dark lines and for the box label. Defaults are CLR_WHITE, CLR_GRAY and CLR_BLACK respectively.\n\nAbout TSRadio, I'm checking it (was a bit forgotten), I'll comment your requests soon.\n\nBest regards.\n\nManuel Mercado Gómez.",
"time": "11:44",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "mmercado"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-23",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Manuel,\n\nThank You very much.\nYour new Sample is included and works perfect.\n\n[img:f6c9yi4a]http://www.pflegeplus.com/pictures/SB10.jpg[/img:f6c9yi4a]\n\nAll [size=150:f6c9yi4a][b:f6c9yi4a]9 [/b:f6c9yi4a][/size:f6c9yi4a] Tests together :\n1 Button, 1 Say, 3 Lines / Boxes, 2 Radio's / Checkboxes, 1 Hotspot, 1 Shapes\n\n[img:f6c9yi4a]http://www.pflegeplus.com/pictures/SBS1.jpg[/img:f6c9yi4a]\n[img:f6c9yi4a]http://www.pflegeplus.com/pictures/SBS2.jpg[/img:f6c9yi4a]\n[img:f6c9yi4a]http://www.pflegeplus.com/pictures/SBS3.jpg[/img:f6c9yi4a]\n\nA new Fontpainter added. Now all Parameters from [color=#FF0000:f6c9yi4a][b:f6c9yi4a]SSAY[/b:f6c9yi4a][/color:f6c9yi4a] can be tested at Runtime.\n\n[img:f6c9yi4a]http://www.pflegeplus.com/pictures/Fontp1.jpg[/img:f6c9yi4a]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "12:41",
"topic": "A new IDE for Manuel Mercado's SBUTTON",
"username": "ukoenig"
}
] |
A new IDE for Manuel Mercado's SBUTTON
|
[
{
"date": "2010-06-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello,\n\nI finished my new Painter and hope, it makes the Window / Dialog-Design\neasier from Source and saves much Time with placing Controls inside a Window :\nJust let me know, if there is still something missing\n( Update includes [color=#FF0000:34j9ym5u]Group and Font[/color:34j9ym5u]-define )\n\n( 2 small problems are still left : Radios from Source on different Locations ( view my Question in the Forum ) \nand Transparent. I'm still working on a Solution. )\n\nAll Controls are in DESIGN-Mode. \nButtons, Checkbox and Image have Actions on Right Mouseclick.\nPlease check the FWH, Borland and xHarbour-path inside the MAKE-File\n\nBecause nearly all Controls have Functions, \nmove the not needed ones to a unused area inside the Window, before You create a EXE-file.\nYou can also remove them from Source ( is displayed before the EXE is created )\n\nIn case You don't need a PRG-File of the Results, only the Control-Positiones in Relation to the Window, \nYou can use the Preview-Button. A Browser shows all Settings.\n\nRelease : [color=#FF0000:34j9ym5u]2.0 => 06.2010[/color:34j9ym5u]\nDownload ( 3.2 MB ) : <!-- m --><a class=\"postlink\" href=\"http://www.pflegeplus.com/fw_downloads/designer.zip\">http://www.pflegeplus.com/fw_downloads/designer.zip</a><!-- m -->\n\nThe Start-Screen :\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des1.jpg[/img:34j9ym5u]\n\nA browser displays all Settings :\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des2.jpg[/img:34j9ym5u]\n\nChange Image :\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des3.jpg[/img:34j9ym5u]\n\nDefine a Image or Brush for Background-Selection :\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des4.jpg[/img:34j9ym5u]\n\nDefine Gradient-Settings :\n( a Single Color Background-Selection is using the 1. Gradientcolor )\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des8.jpg[/img:34j9ym5u]\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des7.jpg[/img:34j9ym5u]\n\nWrite the PRG and ceate a EXE-File :\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des5.jpg[/img:34j9ym5u]\n\nThe Exe-File shows the Result from Selections and Control-Positions :\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des6.jpg[/img:34j9ym5u]\n\n[color=#FF0000:34j9ym5u][b:34j9ym5u]A Sample :[/b:34j9ym5u][/color:34j9ym5u]\nBackground-Selection : COLOR\n1 [color=#FF0000:34j9ym5u]changed[/color:34j9ym5u] Image, 1 Browser, 2 Gets, 2 Says and 6 Buttons\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des9.jpg[/img:34j9ym5u]\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des10.jpg[/img:34j9ym5u]\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des11.jpg[/img:34j9ym5u]\n\n[color=#FF0000:34j9ym5u][size=150:34j9ym5u][b:34j9ym5u]New Release 2.0[/b:34j9ym5u][/size:34j9ym5u][/color:34j9ym5u] => Font-Selection and Group-Box added :\n\n[img:34j9ym5u]http://www.pflegeplus.com/pictures/des12.jpg[/img:34j9ym5u]\n\nBest Regards\nUwe <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "13:34",
"topic": "A new PAINTER ( Controls ) in DESIGN-Mode ( Download )",
"username": "ukoenig"
}
] |
A new PAINTER ( Controls ) in DESIGN-Mode ( Download )
|
[
{
"date": "2013-02-11",
"forum": "Off Topic / Otros temas",
"text": "Best regards,\nOtto\n\n[url:174v3vk4]http://www.youtube.com/watch?v=tr3dFSzh1yU&list=UUGS474QoP8SCnSo6hOCaayA[/url:174v3vk4]",
"time": "21:39",
"topic": "A new Surface Pro ad is here",
"username": "Otto"
}
] |
A new Surface Pro ad is here
|
[
{
"date": "2013-02-11",
"forum": "Off Topic / Otros temas",
"text": "Very absurd ad...\n\nAn automatas choreography, and a karaoke singer ? They should focus on technical facts, and demos of the working product.\n\n-1",
"time": "22:36",
"topic": "A new Surface Pro ad is here",
"username": "Antonio Linares"
}
] |
A new Surface Pro ad is here
|
[
{
"date": "2013-02-11",
"forum": "Off Topic / Otros temas",
"text": "Hello Antonio,\nyou have to look at the other videos too:\n\nThe Making of the Design of Surface \nLearn more about Surface \netc.\n\nBest regards,\nOtto",
"time": "22:52",
"topic": "A new Surface Pro ad is here",
"username": "Otto"
}
] |
A new Surface Pro ad is here
|
[
{
"date": "2013-02-11",
"forum": "Off Topic / Otros temas",
"text": "Antonio,\nthis is beatboxing not karaoke <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->\nBest regards,\nOtto\n\namazing human beatbox von Floep2000 48.630.586 Aufrufe <!-- m --><a class=\"postlink\" href=\"http://www.youtube.com/watch?v=jLN63bRcY5I\">http://www.youtube.com/watch?v=jLN63bRcY5I</a><!-- m -->",
"time": "22:55",
"topic": "A new Surface Pro ad is here",
"username": "Otto"
}
] |
A new Surface Pro ad is here
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.