topic
stringlengths
1
63
text
stringlengths
1
577k
A friend has gone but he remains in our hearts
My sincere condolences to his family and friends.
A friend has gone but he remains in our hearts
I lose a Big friend...( I made with stephan some classes together ) i talked with stephan on last 11 gen 2014
A friend has gone but he remains in our hearts
I'm very sorry to hear the news. He will be missed. James
A friend has gone but he remains in our hearts
Born in 1961? Too much young... <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
A friend has gone but he remains in our hearts
....
A good book about Windows CE
<!-- 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 -->
A good book about Windows CE
And more:<!-- 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 -->How could we check if it is an authorized website ? We don't want to promote any illegal site here.
A good book about Windows CE
There are many interesting chapters. This one is about ADOCE:<!-- 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 -->We have been looking for information about ADOCE for a long time.
A good book about Windows CE
good It is a good manual!
A good resource builder
Hello, Until know I have always been using Resource Workshop from Borland. It has always done its job perfectly. But since I need to transfer my last Windows 32-bit PC to Windows 10 64-bit, I can't use Resource Workshop anymore. Which 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. Thank you very much for any help.
A good resource builder
Hola, try resedit for me the best free resource editor, I don't sure about compatibility [url]http://www.resedit.net//[url] saludos Marcelo Via
A good resource builder
Hello, There is a WS for 32 bits: <!-- 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 --> Also, I heard Fivetech was developing one.
A good resource builder
Mr. Moises, Thanks a lot for your answer. Unfortunately the link mentioned is not working anymore. Since I don't know any Spanish, would you be so nice to ask them to make the Borland Resource Editor 32 bits available again? Thank you so much for your help.
A good resource builder
[quote="driessen":j013xga9]Hello, Until know I have always been using Resource Workshop from Borland. It has always done its job perfectly. But since I need to transfer my last Windows 32-bit PC to Windows 10 64-bit, I can't use Resource Workshop anymore. Which 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. Thank you very much for any help.[/quote:j013xga9] Try Pelles C
A good resource builder
Sure, here is the link: <!-- 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 --> Very important: You have to run the exe in Windows 95 compatibility mode.
A good resource builder
Thank you very much.
A great Harbour's manual/Un gran manual de Harbour
Hi/Hola, a great Harbour's manual from Facebook's group/ un gran manual de Harbour obtenido del grupo Harbour en Facebook. [url:3ebye2rx]http&#58;//www&#46;harbourdoc&#46;com&#46;br/[/url:3ebye2rx] Regards/Saludos,
A great Harbour's manual/Un gran manual de Harbour
Gracias Felix! Aunque parece que el árbol de la izquierda no funciona muy bien...
A great Harbour's manual/Un gran manual de Harbour
Buenos días Antonio, ayer a mí en casa me funcionaba perfectamente. Saludos
A great Harbour's manual/Un gran manual de Harbour
Era Windows 8 que llevaba mucho tiempo sin reiniciarlo jeje <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> gracias
A great utility for reading map location
Hi to all. Take a look at this library [url:3go3tji4]https&#58;//openlayers&#46;org/en/latest/examples/overlay&#46;html[/url:3go3tji4]
A great whois service
[url:oi7muk2m]http&#58;//domainsigma&#46;com/whois/fivetechsoft&#46;com[/url:oi7muk2m]
A little GTK trick that may help
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: HB_FUNC( PROCESS_PENDING_GTKH_EVENTS ) { while( gtk_events_pending() ) gtk_main_iteration(); } If you ever run into this type of problem the above just might be the answer. Regards Doug
A little GTK trick that may help
Doug, You can use FiveLinux function SysRefresh(), as it does the same <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> We 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:-) --> Anyhow, many thanks for your kind and interesting sharings as usual
A little adjustment in class tSay
Hello, I noticed a problem using SAY without a size-define like @ 60, 30 SAY "Textheight -> g j y q" PIXEL FONT oFont OF oDlg the problem belongs to [size=150:mlo3wrpo]g j y q[/size:mlo3wrpo] because of the defined heightvalue the bottom-space is to small <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> [img:mlo3wrpo]http&#58;//www&#46;service-fivewin&#46;de/IMAGES/Sayheight1&#46;jpg[/img:mlo3wrpo] I adjusted in method NEW [color=#FF0000:mlo3wrpo]//::nBottom = ::nTop + nHeight - 1[/color:mlo3wrpo] ::nBottom = ::nTop + nHeight + nHeight * 0.2 regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
A little big problem with command SORT on DBT files
HARBOUR 7.01 2007 build. I have a problem with command SORT on DBT files. After execution of command SORT, the file DBT loose data. Is it my fault or is this a real BUG ? Ciao and thanks Massimo [code:2rxwybk1] #include "Fivewin&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL cNameD &#58;= "BEGSORT&#46;DBF" LOCAL cNameM &#58;= "BEGSORT&#46;DBT" LOCAL cNameDS &#58;= "ENDSORT&#46;DBF" LOCAL cNameMS &#58;= "ENDSORT&#46;DBT" LOCAL aStr &#58;= &#123; &#123; "FLDDESCR", "C", 40, 0 &#125;, ; &#123; "FLDMEMO", "M", 10, 0 &#125; &#125; IF FILE&#40; cNameD &#41; FERASE&#40; cNameD &#41; ENDIF IF FILE&#40; cNameM &#41; FERASE&#40; cNameM &#41; ENDIF IF FILE&#40; cNameDS &#41; FERASE&#40; cNameDS &#41; ENDIF IF FILE&#40; cNameMS &#41; FERASE&#40; cNameMS &#41; ENDIF DBCREATE&#40; cNameD, aStr &#41; USE &cNameD APPEND BLANK REPLACE FLDDESCR WITH "First record" REPLACE FLDMEMO WITH "First memo record" APPEND BLANK REPLACE FLDDESCR WITH "Second record" REPLACE FLDMEMO WITH "Second memo record" SORT ON FLDDESCR TO &cNameDS USE MessErr&#40; "After sort the file memo ENDSORT is empty ?????" &#41; USE ENDSORT MessErr&#40; ALLTRIM&#40; FIELD->FLDDESCR &#41; + " <" + FIELD->FLDMEMO + ">" &#41; SKIP MessErr&#40; ALLTRIM&#40; FIELD->FLDDESCR &#41; + " <" + FIELD->FLDMEMO + ">" &#41; USE RETURN NIL FUNCTION MessErr&#40; Mess &#41; MsgBeep&#40;&#41; MsgAlert&#40; Mess, "ATTENZIONE" &#41; RETURN NIL [/code:2rxwybk1][/code]
A little big problem with command SORT on DBT files
I confirm the bug and I'm going to report it to the Harbour and xHarbour developers list. Thank you! EMG
A little correction on Get Action Bitmap
Dear All, Anyone using Get with Action and Bitmap Clause.. Before: [img:2z5exg35]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/FWxHarbour/getaction1&#46;png[/img:2z5exg35] minor coding: [code=fw:2z5exg35]<div class="fw" id="{CB}" style="font-family: monospace;">AEval<span style="color: #000000;">&#40;</span> aGetObjs, <span style="color: #000000;">&#123;</span>|a| <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span>Upper<span style="color: #000000;">&#40;</span>a:<span style="color: #000000;">Classname</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'TGET'</span>,;<br />                      <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> a:<span style="color: #000000;">oBtn</span> <> <span style="color: #00C800;">Nil</span>, <span style="color: #000000;">&#40;</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;">&#41;</span>,<span style="color: #00C800;">Nil</span><span style="color: #000000;">&#41;</span> ,<span style="color: #00C800;">Nil</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span></div>[/code:2z5exg35] Results: [img:2z5exg35]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/FWxHarbour/getaction2&#46;png[/img:2z5exg35] The action bitmap is now visually better. I hope this will be fix in v10.6 Regards, Frances
A little correction on Get Action Bitmap
Frances, Please test samples\GetBtn.prg and post here a screenshot of it, thanks
A little correction on Get Action Bitmap
Dear Mr. Antonio, I tried/read "getbtn.prg" but declaration is diff not redefined. [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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> <span style="color: #ff0000;">"click"</span> <span style="color: #000000;">&#41;</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] Screenshot: [img:2crgo2ym]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/FWxHarbour/getbtn&#46;png[/img:2crgo2ym] my redefined action Get: [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;">&#40;</span><span style="color: #ff0000;">'here'</span><span style="color: #000000;">&#41;</span></div>[/code:2crgo2ym] RC: [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] Maybe there's a difference between redefine and command @.. Regards, Frances
A little correction on Get Action Bitmap
Frances, In source\classes\TGet.prg please modify these lines: [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;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nWidth</span> - nBmpWidth - <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lSpinner</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>,, <span style="color: #00C800;">Self</span>, <span style="color: #000000;">&#123;</span>|| Eval<span style="color: #000000;">&#40;</span> oThis:<span style="color: #000000;">bAction</span>, oThis <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</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;">&#41;</span><br /> </div>[/code:1kled7gs] Use - 5 instead of - 4 and please check the results, thanks
A little correction on Get Action Bitmap
This may be a better implementation: [code=fw:hpbga3wm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />::<span style="color: #000000;">oBtn</span> := TButtonBmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nWidth</span> - nBmpWidth - <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lSpinner</span>, <span style="color: #000000;">20</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>,, <span style="color: #00C800;">Self</span>, <span style="color: #000000;">&#123;</span>|| Eval<span style="color: #000000;">&#40;</span> oThis:<span style="color: #000000;">bAction</span>, oThis <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBmpWidth, ::<span style="color: #000000;">nHeight</span> - <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">IsKindOf</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"TDIALOG"</span> <span style="color: #000000;">&#41;</span> .and. ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">cResName</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">5</span>, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span>,,,,.t.,,,,,,,::<span style="color: #000000;">cBmpName</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:hpbga3wm]
A long time ago....SOLUCIONADO
Winflector...... Hi 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. The software has a server edition an a client edition. But now I can't remember the name. Thank you very much. Best regards Ruben Dario Fernández.
A long time ago....SOLUCIONADO
[url:16kvj70l]http&#58;//www&#46;winflector&#46;com/[/url:16kvj70l]
A message in xBrowse => keys : left rightup and down ??
Hello from Germany, I used < bKeydown > and < bKeychar > in xBrowse to get a keycode for the keys : LEFT, RIGHT, UP, DOWN but it only works with < normal > keys like 13 = RETURN and so on. Is it possible somehow, to get a information, when i press one of these keys in xBrowse ? I want to start a special action. sample : cursor-pos = end of array (eof() ). I press the key < DOWN > and append a new array-element. For that i must know, that < DOWN > was pressed. Thank you <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> U. König
A message in xBrowse => keys : left rightup and down ??
Please use the codeblock oBrw:bPastEof for this purpse. Example: [code:2tjc3wu0] oBrw&#58;bPastEof &#58;= &#123;||if&#40; MsgNoYes&#40; 'Add Row?' &#41;, ; &#40; AAdd&#40; oBrw&#58;aArrayData, ATail&#40; oBrw&#58;aArrayData &#41; &#41;, oBrw&#58;GoBottom&#40;&#41;&#41;, nil &#41;&#125; [/code:2tjc3wu0]
A message in xBrowse => keys : left rightup and down ??
Hello Uwe, maybe you have the same problem I had: <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=8705&highlight=vkey">http://fivetechsoft.com/forums/viewtopi ... light=vkey</a><!-- m --> Regards, Otto
A mod_harbour for Apache !!!
Yes, it is comming !!! <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> [url:2zl1f4h4]https&#58;//groups&#46;google&#46;com/forum/#!topic/harbour-users/lZGlFSZ23No[/url:2zl1f4h4]
A mod_harbour for Apache !!!
Antonio, Congratulations. Today is a special day I'm sure Remember... 15/05/2019 Wow !!!
A mod_harbour for Apache !!!
Hi Antonio, And what could we achieve by having a mod_harbour ? Is it possible, in future, run GUI exes in internet navigator ? I think I remember that someone had developed something about it. I could give more information. Regards
A mod_harbour for Apache !!!
[img:2jhpaoka]https&#58;//scontent-mad1-1&#46;xx&#46;fbcdn&#46;net/v/t1&#46;0-9/60334807_2467533419931706_3397338552978112512_n&#46;jpg?_nc_cat=103&_nc_ht=scontent-mad1-1&#46;xx&oh=85982542e53c5ca625813aeee47e1103&oe=5D9CC05E[/img:2jhpaoka]
A mod_harbour for Apache !!!
Wow! Congratulations Antonio.
A mod_harbour for Apache !!!
It is really amazing Maestro! Thank you for your good job! It is working on MacOSx <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> It open the door for a new vision how Harbour can work for WEB!
A mod_harbour for Apache !!!
Please run Harbour on Apache Linux from Windows 10 !!! <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=37190">viewtopic.php?f=3&t=37190</a><!-- l --> This is a dream made true <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> Really fast !!! Por favor ejecutad Harbour en Apache Linux desde Windows 10 !!! <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=37191">viewtopic.php?f=6&t=37191</a><!-- l --> Esto es un sueño hecho realidad <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> Realmente rápido [img:uoh3k9wd]https&#58;//github&#46;com/FiveTechSoft/screenshots/blob/master/mod_harbour_1&#46;jpg?raw=true[/img:uoh3k9wd]
A mod_harbour for Apache !!!
Felicitaciones Antonio por esta movida, ya pude probar los dos ejemplos. Seguiré haciendo pequeñas pruebas Gracias y Saludos desde Argentina
A mod_harbour for Apache !!!
Official date when mod_harbour was born 15/05/2019 mod_harbour birthday !!! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:3mdks1us]https&#58;//api&#46;github&#46;com/repos/fivetechsoft/mod_harbour[/url:3mdks1us]
A mod_harbour for Apache !!!
Happy birthday Mod
A mod_harbour for Apache !!!
Next 15/05/2019 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
A much faster Class TDataBase !!!
Jose Luis Capel from Aicom company has greatly enhanced FiveWin Class TDataBase making it around [b:3laqt92o]three[/b:3laqt92o] times faster!!!As 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:-) -->[code:3laqt92o] #include "fivewin&#46;ch" #include "dbinfo&#46;ch" function main&#40;&#41; local o, x, nSec, n &#58;= 0, a&#91;100&#93;, b REQUEST HB_LANG_ES // Para establecer español para Mensajes, fechas, etc&#46;&#46; REQUEST HB_CODEPAGE_ESMWIN // Para establecer código de página a Español &#40;Ordenación, etc&#46;&#46;&#41; REQUEST DBFCDX //&&,DBFCDX REQUEST DBFFPT RDDSETDEFAULT&#40;"DBFCDX"&#41; SET AUTOPEN OFF SET DELETED ON SET CENTURY ON SET EPOCH TO&#40; Year&#40;Date&#40;&#41;&#41;-50 &#41; SET DATE BRITISH // Formato dd-mm-aaaa SET EXCLUSIVE OFF SET SOFTSEEK OFF HB_LangSelect&#40;'ES'&#41; HB_SetCodePage&#40;"ESMWIN"&#41; // Para ordenación &#40;arrays, cadenas, etc&#46;&#46;&#41; msginfo&#40;"Iniciamos"&#41; o &#58;= xDatabase&#40;&#41; // Nueva clase derivada de tDatabase de fivewin o&#58;New&#40; "CLI01&#46;dbf"&#41; o&#58;lShared &#58;= &#46;F&#46; o&#58;Open&#40;&#41; o&#58;lBuffer &#58;= &#46;f&#46; nSec &#58;= Seconds&#40;&#41; // Test de velocidad en lectura de datos&#46; Ahorro aproximado del 50% nSec &#58;= Seconds&#40;&#41; for x=1 to 1000000 uFunc&#40; o&#58;Codpro &#41; next Msginfo&#40;Seconds&#40;&#41;-nSec, "Test de lectura de datos"&#41; // Test de velocidad en lectura con movimientos nSec &#58;= Seconds&#40;&#41; for x=1 to 10000 o&#58;Gotop&#40;&#41; Do while !o&#58;Eof&#40;&#41; uFunc&#40; o&#58;Codpro &#41; o&#58;Skip&#40;&#41; Enddo next Msginfo&#40;Seconds&#40;&#41;-nSec, "Test de lectura"&#41; // Test de velocidad en Escritura nSec &#58;= Seconds&#40;&#41; for x=1 to 10000 o&#58;Gotop&#40;&#41; Do while !o&#58;Eof&#40;&#41; o&#58;Codpro &#58;= "Proba" + Alltrim&#40;Str&#40;x&#41;&#41; o&#58;Skip&#40;&#41; Enddo next Msginfo&#40;Seconds&#40;&#41;-nSec, "Test de escritura"&#41; return NIL FUNCTION uFunc&#40;u&#41;;Return NIL //////////////////////////////////////////////////////////////////////////// / CLASS xDatabase FROM tDatabase METHOD SetArea&#40;&#41; METHOD Load&#40;&#41; METHOD CancelUpdate&#40;&#41; INLINE &#58;&#58;lBuffer &#58;= &#46;F&#46; MESSAGE FieldGet METHOD _FieldGet&#40; nField &#41; MESSAGE FieldPut METHOD _FieldPut&#40; nField, uVal &#41; METHOD Blank&#40;&#41; METHOD Modified&#40;&#41; METHOD SaveBuff&#40;&#41; MESSAGE OemToAnsi METHOD _OemToAnsi&#40;&#41; METHOD HashAddMember&#40;&#41; ERROR HANDLER ONERROR&#40; uParam1 &#41; ENDCLASS METHOD SetArea&#40; nWorkArea &#41; CLASS xDatabase local n, oClass, aDatas &#58;= &#123;&#125;, aMethods &#58;= &#123;&#125; &#58;&#58;nArea = nWorkArea &#58;&#58;cAlias = Alias&#40; nWorkArea &#41; &#58;&#58;cFile = Alias&#40; nWorkArea &#41; if &#58;&#58;Used&#40;&#41; &#58;&#58;cFile = &#40; nWorkArea &#41;->&#40; DbInfo&#40; DBI_FULLPATH &#41; &#41; &#58;&#58;cDriver = &#40; nWorkArea &#41;->&#40; RddName&#40;&#41; &#41; &#58;&#58;lShared = &#40; nWorkArea &#41;->&#40; DbInfo&#40; DBI_SHARED &#41; &#41; #ifdef __HARBOUR__ &#58;&#58;lReadOnly = &#40; nWorkArea &#41;->&#40; DbInfo&#40; DBI_ISREADONLY &#41; &#41; #else DEFAULT &#58;&#58;lReadOnly &#58;= &#46;f&#46; #endif DEFAULT &#58;&#58;lBuffer &#58;= &#46;t&#46; DEFAULT &#58;&#58;lOemAnsi &#58;= &#46;f&#46; DEFAULT &#58;&#58;bNetError &#58;= &#123; || MsgStop&#40; "Record in use", "Please, retry" &#41; &#125; &#58;&#58;aStruct = &#40; &#58;&#58;cAlias &#41;->&#40; DbStruct&#40;&#41; &#41; &#58;&#58;aFldNames = &#123;&#125; &#58;&#58;aBuffer &#58;= hb_HSetCaseMatch&#40; hb_Hash&#40;&#41;, &#46;F&#46; &#41; for n = 1 to &#40; &#58;&#58;cAlias &#41;->&#40; FCount&#40;&#41; &#41; AAdd&#40; &#58;&#58;aFldNames, &#40; &#58;&#58;cAlias &#41;->&#40; FieldName&#40; n &#41; &#41; &#41; &#58;&#58;HashAddMember&#40; &#123;&#40; &#58;&#58;cAlias &#41;->&#40; FieldName&#40; n &#41; &#41;&#125;,; &#40; &#58;&#58;cAlias &#41;->&#40; FieldType&#40; n &#41; &#41;,; &#40; &#58;&#58;cAlias &#41;->&#40; FieldGet&#40; n &#41; &#41;,; &#58;&#58;aBuffer &#41; next hb_HSetAutoAdd&#40; &#58;&#58;aBuffer, &#46;f&#46; &#41; if &#58;&#58;lOemAnsi &#58;&#58;OemToAnsi&#40;&#41; endif #ifdef __XPP__ if ClassObject&#40; Alias&#40;&#41; &#41; == nil ClassCreate&#40; Alias&#40;&#41;, &#123; TDataBase&#40;&#41; &#125;, aDatas, aMethods &#41; // else // &#58;&#58;this = Self endif #endif endif return Self METHOD _FieldGet&#40; nPos &#41; CLASS xDataBase if &#58;&#58;lBuffer //return &#58;&#58;aBuffer&#91; nPos &#93; Return HB_HVALUEAT&#40; &#58;&#58;aBuffer, nPos &#41; else return &#40; &#58;&#58;nArea &#41;->&#40; FieldGet&#40; nPos &#41; &#41; endif return nil //-------------------------------------------------------------------------- -// METHOD _FieldPut&#40; nPos, uValue &#41; CLASS xDataBase local lLocked &#58;= &#46;f&#46; if &#58;&#58;lBuffer //&#58;&#58;aBuffer&#91; nPos &#93; &#58;= uValue HB_HVALUEAT&#40; &#58;&#58;aBuffer, nPos, uValue &#41; else if &#58;&#58;lShared if ! &#58;&#58;lReadOnly if &#58;&#58;IsRecLocked&#40; &#58;&#58;RecNo&#40;&#41; &#41; &#46;or&#46; &#40; lLocked &#58;= &#58;&#58;RecLock&#40; &#58;&#58;RecNo&#40;&#41; &#41; &#41; &#40; &#58;&#58;nArea &#41;->&#40; FieldPut&#40; nPos, uValue &#41; &#41; if lLocked &#58;&#58;Commit&#40;&#41; &#58;&#58;RecUnLock&#40; &#58;&#58;RecNo&#40;&#41; &#41; endif else if ! Empty&#40; &#58;&#58;bNetError &#41; return Eval&#40; &#58;&#58;bNetError, Self &#41; endif endif endif else &#40; &#58;&#58;nArea &#41;->&#40; FieldPut&#40; nPos, uValue &#41; &#41; endif endif return nil METHOD Load&#40;&#41; CLASS xDataBase local n if &#58;&#58;lBuffer for n = 1 to &#40; &#58;&#58;cAlias &#41;->&#40; FCount&#40;&#41; &#41; &#58;&#58;aBuffer&#91; &#58;&#58;aFldNames&#91;n&#93; &#93; &#58;= &#40; &#58;&#58;cAlias &#41;->&#40; FieldGet&#40; n &#41; &#41; next if &#58;&#58;lOemAnsi &#58;&#58;OemToAnsi&#40;&#41; endif endif return nil //-------------------------------------------------------------------------- --// METHOD Modified&#40;&#41; CLASS XDataBase local n if &#58;&#58;lBuffer for n &#58;= 1 to Len&#40; &#58;&#58;aFldNames &#41; if ! &#40; &#58;&#58;cAlias &#41;->&#40; FieldGet&#40; n &#41; &#41; == &#58;&#58;aBuffer&#91; &#58;&#58;aFldNames&#91;n&#93; &#93; return &#46;t&#46; endif next endif return &#46;f&#46; METHOD Blank&#40;&#41; CLASS XDataBase LOCAL a &#58;= HB_HKEYS&#40; &#58;&#58;aBuffer &#41; if &#58;&#58;lBuffer AEval&#40; a, &#123; |u,i| HB_HVALUEAT&#40; &#58;&#58;aBuffer, i, uValBlank&#40; u &#41;&#41; &#125; &#41; endif return &#46;f&#46; METHOD _OemToAnsi&#40;&#41; CLASS XDataBase local n for n = 1 to Len&#40; &#58;&#58;aFldNames &#41; if ValType&#40; &#58;&#58;aBuffer&#91; &#58;&#58;aFldNames&#91;n&#93; &#93; &#41; == "C" &#58;&#58;aBuffer&#91; &#58;&#58;aFldNames&#91;n&#93; &#93; &#58;= OemToAnsi&#40; &#58;&#58;aBuffer&#91; &#58;&#58;aFldNames&#91;n&#93; &#93; &#41; endif next return nil METHOD SaveBuff&#40;&#41; CLASS XDataBase local n if &#58;&#58;lBuffer for n &#58;= 1 to Len&#40; &#58;&#58;aFldNames &#41; if &#58;&#58;lOemAnsi &#46;and&#46; ValType&#40; &#58;&#58;aBuffer&#91; &#58;&#58;aFldNames&#91;n&#93; &#93; &#41; == "C" &#40; &#58;&#58;nArea &#41;->&#40; FieldPut&#40; n, AnsiToOem&#40; &#58;&#58;aBuffer&#91; &#58;&#58;aFldNames&#91;n&#93; &#93; &#41; &#41; &#41; else &#40; &#58;&#58;nArea &#41;->&#40; FieldPut&#40; n, &#58;&#58;aBuffer&#91; &#58;&#58;aFldNames&#91;n&#93; &#93; &#41; &#41; endif next endif return nil **************************************************************************** ************************************ * Descripción &#58; * Parámetros &#58; Ninguno * Fecha &#58; 06/21/06 * Autor &#58; Equipo de desarrollo de Aicom **************************************************************************** ************************************ METHOD HashAddMember&#40; aName, cType, uInit, oObj &#41; CLASS xDataBase //-------------------------------------------------------------------------- ------------------------------------ local cName if !&#40; cType == nil &#41; switch Upper&#40; Left&#40; cType, 1 &#41; &#41; case "S" // STRING if uInit == nil uInit &#58;= "" endif exit case "N" // NUMERIC if uInit == nil uInit &#58;= 0 endif exit case "L" // LOGICAL if uInit == nil uInit &#58;= &#46;f&#46; endif exit case "D" // DATE if uInit == nil uInit &#58;= CtoD&#40; "" &#41; endif exit case "C" // CODEBLOCK if uInit == nil uInit &#58;= &#123; || nil &#125; endif exit case "A" // ARRAY if uInit == nil uInit &#58;= &#123;&#125; endif exit end switch endif return NIL #pragma BEGINDUMP #include "windows&#46;h" #include "hbapi&#46;h" #include "hbapierr&#46;h" #include "hbapiitm&#46;h" #include "hbapicls&#46;h" #include "hbvm&#46;h" #include "hbdate&#46;h" #include "hboo&#46;ch" #include "hbapirdd&#46;h" #include "hbstack&#46;h" #include "hbapilng&#46;h" char * AicomGetmessage&#40;&#41;; HB_FUNC_STATIC&#40; XDATABASE_ONERROR &#41; &#123; char * cMessage = AicomGetmessage&#40;&#41; ; PHB_ITEM pSelf = hb_stackSelfItem&#40;&#41;; BOOL bBuffer = hb_itemGetL&#40; hb_objSendMsg&#40;pSelf, "LBUFFER", 0&#41; &#41;; PHB_ITEM pValue = hb_param&#40;1,HB_IT_ANY&#41;; const char *cKey = &#40; *cMessage == '_' ? &#40;cMessage+1&#41; &#58; cMessage &#41; ; if&#40; bBuffer&#41; &#123; PHB_ITEM pHash = hb_objSendMsg&#40;pSelf,"ABUFFER",0&#41;; PHB_ITEM pKey = hb_itemPutC&#40; hb_itemNew&#40;NULL&#41;, cKey &#41;; if&#40; *cMessage == '_' &#41; &#123; // Con esto asignamos un valor al buffer if&#40; pHash && pKey && pValue &#41; &#123; hb_hashAdd&#40; pHash, pKey, pValue &#41;; hb_itemRelease&#40; pKey &#41;; &#125; else hb_errRT_BASE&#40; EG_ARG, 1123, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS &#41;; &#125; else &#123; // Esto devuelve el valor del buffer PHB_ITEM pDest = hb_hashGetItemPtr&#40; pHash, pKey, HB_HASH_AUTOADD_ACCESS &#41;; hb_itemRelease&#40; pKey &#41;; if&#40;pDest&#41; hb_itemReturn&#40;pDest&#41;; else hb_errRT_BASE&#40; EG_BOUND, 1132, NULL, hb_langDGetErrorDesc&#40; EG_ARRACCESS &#41;, 2, pHash, pValue &#41;; &#125; &#125; else &#123; int iAreaAnt = hb_rddGetCurrentWorkAreaNumber&#40;&#41;; // Area anterior int iAreaAct = hb_itemGetNI&#40; hb_objSendMsg&#40;pSelf, "NAREA", 0 &#41; &#41;; // Buscamos actual AREAP pArea = &#40; AREAP &#41; hb_rddGetCurrentWorkAreaPointer&#40;&#41;; // Necesitamos pArea USHORT uiField = hb_rddFieldIndex&#40; pArea, cKey &#41;; // FieldPos &#40; cFieldName &#41; hb_rddSelectWorkAreaNumber&#40; iAreaAct &#41; ; // Seleccionamos area actual if&#40;uiField&#41; &#123; if&#40; *cMessage == '_' &#41; &#123; // Asignamos el valor if&#40; pValue && !HB_IS_NIL&#40; pValue &#41; &#41; &#123; if&#40; SELF_PUTVALUE&#40; pArea, uiField, pValue &#41; == SUCCESS &#41; &#123; hb_itemReturn&#40; pValue &#41;; &#125; &#125; &#125; else &#123; // Devolvemos el valor del campo PHB_ITEM pItem = hb_itemNew&#40; NULL &#41;; if&#40; pArea &#41; // && uiField &#41; &#123; SELF_GETVALUE&#40; pArea, uiField, pItem &#41;; &#125; hb_itemReturnRelease&#40; pItem &#41;; &#125; hb_rddSelectWorkAreaNumber&#40; iAreaAnt &#41; ; // Seleccionamos area anterior &#125; else &#123; hb_errRT_DBCMD&#40;&#40; *cMessage == '_' ? 1005 &#58; 1004 &#41;, 0, "Field not found", cKey &#41;; &#125; &#125; &#125; char * AicomGetmessage&#40;&#41; &#123; // Thanks to Przemek long lOffset = hb_stackBaseProcOffset&#40; 0 &#41;; char * cMessage = &#40;char *&#41;hb_itemGetSymbol&#40; hb_stackItem&#40; lOffset &#41; &#41;->szName; return cMessage ; &#125; [/code:3laqt92o]
A much faster Class TDataBase !!!
Antonio,I 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).I 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).Regards,James Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 BorlandXDbase.c:Error E2209 XDbase.prg 353: Unable to open include file 'hbapicls.h'Warning W8065 XDbase.prg 367: Call to function 'AicomGetmessage' with no prototype in function HB_FUN_XDATABASE_ONERRORWarning W8065 XDbase.prg 386: Call to function 'hb_hashAdd' with no prototype in function HB_FUN_XDATABASE_ONERRORError E2451 XDbase.prg 390: Undefined symbol 'HB_ERR_FUNCNAME' in function HB_FUN_XDATABASE_ONERRORError E2451 XDbase.prg 394: Undefined symbol 'HB_HASH_AUTOADD_ACCESS' in function HB_FUN_XDATABASE_ONERRORWarning W8065 XDbase.prg 394: Call to function 'hb_hashGetItemPtr' with no prototype in function HB_FUN_XDATABASE_ONERRORWarning W8069 XDbase.prg 394: Nonportable pointer conversion in function HB_FUN_XDATABASE_ONERRORWarning W8065 XDbase.prg 446: Call to function 'hb_stackBaseProcOffset' with no prototype in function AicomGetmessage*** 3 errors in Compile ***Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 BorlandFatal: Unable to open file 'XDBASE.OBJ'
A much faster Class TDataBase !!!
Antonio,It 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?Regards,James
A much faster Class TDataBase !!!
Mr. Antonio,I suggest that this class be included/updated with FHW8.11 so I (we) can start downloading the 8.11....2Cents!P.S. - ....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: --> Happy Holidays!Regards,
A much faster Class TDataBase !!!
I have this error during compilation using xMate:[img:2ce9l79j]http&#58;//i208&#46;photobucket&#46;com/albums/bb82/fraxzi/FWxHarbour/xDataBase&#46;jpg[/img:2ce9l79j]Also, I can't find some files like "hbapicls.h" on my development directory...Regards,
A much faster Class TDataBase !!!
Hello,this file You can find in => HARBOUR/include ( not xHARBOUR )/* * $Id: hbapicls.h 8359 2008-04-22 02:51:18Z druzus $ *//* * Harbour Project source code: * Harbour class API * * Copyright 2006 Przemyslaw Czerpak <druzus / at / priv.onet.pl> * www - <!-- m --><a class="postlink" href="http://www.harbour-project.org">http://www.harbour-project.org</a><!-- m --> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this software; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, * 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 -->). * * As a special exception, the Harbour Project gives permission for * additional uses of the text contained in its release of Harbour. * * The exception is that, if you link the Harbour libraries with other * files to produce an executable, this does not by itself cause the * resulting executable to be covered by the GNU General Public License. * Your use of that executable is in no way restricted on account of * linking the Harbour library code into it. * * This exception does not however invalidate any other reasons why * the executable file might be covered by the GNU General Public License. * * This exception applies only to the code released by the Harbour * Project under the name Harbour. If you copy code from other * Harbour Project or Free Software Foundation releases into a copy of * Harbour, as the General Public License permits, the exception does * not apply to the code that you add in this way. To avoid misleading * anyone as to the status of such modified files, you must delete * this exception notice from them. * * If you write modifications of your own for Harbour, it is your choice * whether to permit this exception to apply to your modifications. * If you do not wish that, delete this exception notice. * */........RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A much faster Class TDataBase !!!
Dear Uwe,Sorry for that. I'm using xHarbour only. <!-- s8) --><img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /><!-- s8) --> Is 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:?: --> Regards,
A much faster Class TDataBase !!!
Hello < fraxzi >It seems, that it is not working with XHARBOUR.Antonio's description :As 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.RegardsUwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A much faster Class TDataBase !!!
James, Uwe, Frances,I 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().For xHarbour users, we could test these improvements:To avoid the AScan(), we can do instead of:[code:13favvg3] if &#40; nField &#58;= AScan&#40; &#58;&#58;aFldNames,; &#123; | cField | SubStr&#40; cMsg, 2 &#41; == ; RTrim&#40; SubStr&#40; cField, 1, 9 &#41; &#41; &#125; &#41; &#41; != 0 &#58;&#58;FieldPut&#40; nField, uParam1 &#41; [/code:13favvg3] this code: [code:13favvg3] if &#40; nField &#58;= &#58;&#58;FieldPos&#40; SubStr&#40; cMsg, 2 &#41; &#41; &#41; != 0 &#58;&#58;FieldPut&#40; nField, uParam1 &#41; [/code:13favvg3]
A much faster Class TDataBase !!!
Also, I wonder if hashes are faster than calling FieldPos().I guess that FieldPos() may be quite similar in speed as hashes.Of course we could also get speed improvement porting OnError() to C code as Jose Luis does.
A much faster Class TDataBase !!!
Hi to all,Well... this class was only created and tested in Harbour for PPC.Let me explain a little what this class do.We 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. In 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.For example, this test:FOR x := 1 TO 50000 oDb:MyField := "somevalue"NEXTin original tdatabase needs 35 seconds to complete whilst with new class it only needs 9 seconds (tests done on PPC emulator)The 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. And about xHarbour... well I shall take a look next week (if I have time enought). I hope you'll enjoy it.Regards,José Luis Capel
A much faster Class TDataBase !!!
Hi Work directly on the DBF is 4/5 time faster that work with TDATABSE .I use this function ( with xHarbour ) for load and save the date in a hash .Regards Maurizio [code:3xs58r92]//-------------------------------------------------------------------------- Function MAin&#40;&#41; Local aVArs USE "CLI01&#46;dbf" aVars &#58;= LoadDbf&#40;&#41; aVars&#58;CODPRO &#58;= "ABCD" SaveDbf&#40;aVars&#41; use Return nil Function LoadDbf&#40;&#41; // Scatter&#40;&#41; Local aVars &#58;= &#123;=>&#125; LOcal nField &#58;= FCount&#40;&#41; LOcal nX &#58;= 1 FOR nX &#58;= 1 TO nField aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= FieldGet&#40;nX&#41; NEXT Return aVars //-------------------------------------------------------------------------- Function SaveDbf&#40;aVArs&#41; //Gather&#40;aVars&#41; lOCAL Nx &#58;= 1 FOR Nx &#58;= 1 TO LEN&#40;aVars&#41; FieldPut&#40;nX,aVArs&#91;FIELDNAME&#40;nX&#41;&#93; &#41; NEXT Return TRUE //-------------------------------------------------------------------------- Function Blank&#40;aVars&#41; local i,nX i &#58;= len&#40;aVars&#41; for nX &#58;=1 to i do case case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "C" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= space&#40;len&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41;&#41; case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "N" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= 0 case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "D" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= CTOD&#40;"00-00-00"&#41; case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "M" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= space&#40;200&#41; case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "L" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= &#46;F&#46; endcase next Return aVars [/code:3xs58r92]
A much faster Class TDataBase !!!
Maurizio,Very good example, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
A much faster Class TDataBase !!!
[quote="Maurizio":2a1j3lve]Hi Work directly on the DBF is 4/5 time faster that work with TDATABSE . I use this function ( with xHarbour ) for load and save the date in a hash . Regards Maurizio [code:2a1j3lve]//-------------------------------------------------------------------------- Function MAin&#40;&#41; Local aVArs USE "CLI01&#46;dbf" aVars &#58;= LoadDbf&#40;&#41; aVars&#58;CODPRO &#58;= "ABCD" SaveDbf&#40;aVars&#41; use Return nil Function LoadDbf&#40;&#41; // Scatter&#40;&#41; Local aVars &#58;= &#123;=>&#125; LOcal nField &#58;= FCount&#40;&#41; LOcal nX &#58;= 1 FOR nX &#58;= 1 TO nField aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= FieldGet&#40;nX&#41; NEXT Return aVars //-------------------------------------------------------------------------- Function SaveDbf&#40;aVArs&#41; //Gather&#40;aVars&#41; lOCAL Nx &#58;= 1 FOR Nx &#58;= 1 TO LEN&#40;aVars&#41; FieldPut&#40;nX,aVArs&#91;FIELDNAME&#40;nX&#41;&#93; &#41; NEXT Return TRUE //-------------------------------------------------------------------------- Function Blank&#40;aVars&#41; local i,nX i &#58;= len&#40;aVars&#41; for nX &#58;=1 to i do case case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "C" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= space&#40;len&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41;&#41; case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "N" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= 0 case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "D" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= CTOD&#40;"00-00-00"&#41; case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "M" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= space&#40;200&#41; case valtype&#40;aVars&#91;FIELDNAME&#40;nX&#41;&#93;&#41; == "L" ; aVars&#91;FIELDNAME&#40;nX&#41;&#93; &#58;= &#46;F&#46; endcase next Return aVars [/code:2a1j3lve][/quote:2a1j3lve]Maybe Local aVars := {=>}Better is LOCAL aVars := TAssociativeArray()Then we can use fieldname OR fieldnumberaVars:CODPRO := "ABCD" Can also written as aVars["CODPRO"] := "ABCD" // didn't know your syntaxORaVars[1] := "ABCD" supposing it is the first field Frank
A much faster Class TDataBase !!!
Hi,I´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 defineMaybe it´s usefull for somebody[code:26f0ucsr] #define C_STATUS 1 &#46;&#46;&#46;&#46; &#58;&#58;aStruct &#58;= &#40;&#58;&#58;cAlias&#41;->&#40;dbStruct&#40;&#41;&#41; METHOD ReadData &#40;lNew&#41; CLASS TComputer LOCAL aData &#58;= Array&#40;Len&#40;&#58;&#58;aStruct&#41;&#41; LOCAL i &#58;= 1 DEFAULT lNew &#58;= &#46;F&#46; IF lNew FOR i &#58;= 1 TO LEN &#40;&#58;&#58;aStruct&#41; DO CASE CASE &#58;&#58;aStruct&#91;i,DBS_TYPE&#93;=="N" aData&#91;i&#93; &#58;= 0 CASE &#58;&#58;aStruct&#91;i,DBS_TYPE&#93;=="C" aData&#91;i&#93; &#58;= SPACE &#40;&#58;&#58;aStruct&#91;i,DBS_LEN&#93;&#41; CASE &#58;&#58;aStruct&#91;i,DBS_TYPE&#93;=="L" aData&#91;i&#93; &#58;= &#46;F&#46; CASE &#58;&#58;aStruct&#91;i,DBS_TYPE&#93;=="D" aData&#91;i&#93; &#58;= CTOD &#40;" &#46; &#46; "&#41; CASE &#58;&#58;aStruct&#91;i,DBS_TYPE&#93;=="M" aData&#91;i&#93; &#58;= SPACE &#40;1024&#41; OTHERWISE aData&#91;i&#93; &#58;= SPACE &#40;10&#41; ENDCASE NEXT aData&#91;C_STATUS&#93; &#58;= 1 // bei Neueinträgen immer active ELSE FOR i &#58;= 1 TO LEN &#40;&#58;&#58;aStruct&#41; IF &#58;&#58;aStruct&#91;i,DBS_TYPE&#93;=="M" aData&#91;i&#93; &#58;= PADR &#40; &#40;&#58;&#58;cAlias&#41;->&#40;FIELDGET&#40;i&#41;&#41;,1024&#41; ELSE aData&#91;i&#93; &#58;= IIF &#40;&#58;&#58;aStruct&#91;i,DBS_TYPE&#93;=="C",; PADR &#40; &#40;&#58;&#58;cAlias&#41;->&#40;FIELDGET&#40;i&#41;&#41;,&#58;&#58;aStruct&#91;i,DBS_LEN&#93;&#41;,; &#40;&#58;&#58;cAlias&#41;->&#40;FIELDGET&#40;i&#41;&#41; &#41; ENDIF NEXT aData&#91;C_TYP&#93;+=1 ENDIF RETURN &#40;aData&#41; [/code:26f0ucsr]
A much faster Class TDataBase !!!
Hello Frank This is from hash.txt Regards MAurizio Examples: * * LOCAL hHash := {=>} // Builds an empty hash * LOCAL hAnother := { 'key a' => 'first value', 12 => { 'a', 'b', 'c'} } * * --------------------------------------------------------------------- * * NOTE: Up to date, { => } construct was used by TAssociativeArray() * pseudo object declaration. Most of the TAssociativeArray() system * has been emulated in hashes, so older program should not need to * use it, but if you find any incompatibility in using older program, * the inclusion of "assocarr.ch" file will remap {=>} to an * associative array class. * ----------------------------------------------------------------------//----------------------------------------------------------------------------------- This is a typical usage of the colon operator: * * LOCAL hHash := { 1 => 10, 2 => 20 } * * hHash:NewKey := 'newval' * ? hHash:NewKey // newval * * hHash:NewKey := 15 * ? hHash:NewKey // 15 * * ? hHash['NEWKEY' ] // 15 * HSetCaseMatch( hHash, .F.) * ? hHash[ 'newkey' ] // 15 * * ? hHash:unexisting // BOUND ERROR * * * A program written using only the ':' operator has not to care about * hash case match mode.
A much faster Class TDataBase !!!
Maurizio,>Work directly on the DBF is 4/5 time faster that work with TDATABSE . I use this function ( with xHarbour ) for load and save the date in a hash . I 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.The biggest problem with using functions is that you cannot inherit from them.Regards,James
A much faster Class TDataBase !!!
James,The 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)Also the syntach is much easier. In clipper i scatter the elements with LOCAL h[FCOUNT()] , i := 1AEVAL(h,{||h[i]:=FIELDGET(i++)})RETURN hTo 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)Using tDatabase uses the fieldname (i suppose) , but when this variabeles are used there will be a scanWith hashes we canLOCAL h := Hash() , i := FCOUNT()FOR i := 1 TO FCOUNT() h:Field(i) := Fieldget(i)NEXTRETURN h Now we can also use the fieldname , but the variable will be found without a scan.With associative arrays also the index can be used , both methods can be used :h[1] , h[fieldname(1)] , h:fieldname(1) is all the same[quote="James Bott":2v1zqqip]Maurizio, >Work directly on the DBF is 4/5 time faster that work with TDATABSE . I use this function ( with xHarbour ) for load and save the date in a hash . I 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. The biggest problem with using functions is that you cannot inherit from them. Regards, James[/quote:2v1zqqip]
A much faster Class TDataBase !!!
Frank and everyone,OK, I didn't notice the use of some kind of hash object in the code before.I 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.I 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.Has anyone noticed a speed increase using this?Regards,James
A new < VTitle-Painter > Class VTitle FWH 9.08
Hello, I started with a VTitle-Painter using the new VTitle-Class and the Result of first Tests are fantastic. I can define any Style with any included Images on selected Backgrounds and Positions. The needed Source is created as well, to make it easy, to include the designed VTitle in Your Application. With just a Mouseclick, You can create new Combinations. The Size of the VTitle can easy defined with a horizontal and vertical Slider. All Settings can be [color=#FF0000:1ze628zq]saved to a DBF [/color:1ze628zq]and will be restored with a new Start. Because of many possible Settings, the Visual-Design will be a great Help for Users. With all the possible Combinations, it is a hard work, to test it inside Your Application for 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. The Settings of the VTitle-Body : [color=#FF0000:1ze628zq]Transparent, Base, Border, Shadow, Shadow-Position, Shadow-Size, Shadow-Itensity[/color:1ze628zq] all this in Combination with different Text and different Buttons. The Buttons as well have different Settings. The Work is nearly done. I think, the first Release for Testing, will be finished End of next Week. [img:1ze628zq]http&#58;//www&#46;pflegeplus&#46;com/pictures/VTitledes0&#46;jpg[/img:1ze628zq] A vertical VTitle with Brush [img:1ze628zq]http&#58;//www&#46;pflegeplus&#46;com/pictures/VTitledes1&#46;jpg[/img:1ze628zq] A horizontal VTitle with Image [img:1ze628zq]http&#58;//www&#46;pflegeplus&#46;com/pictures/VTitledes2&#46;jpg[/img:1ze628zq] A Gradient Background and VTitle with defined Gradient [img:1ze628zq]http&#58;//www&#46;pflegeplus&#46;com/pictures/VTitledes3&#46;jpg[/img:1ze628zq] Many needed Parts can be used from other Tools. That makes it easy, to create something new in a very short Time. [img:1ze628zq]http&#58;//www&#46;pflegeplus&#46;com/pictures/VTitledes4&#46;jpg[/img:1ze628zq] All possible VTitle-Settings : [color=#FF0000:1ze628zq]Gradient Shadow- Size, Position, Transparent-Level Text-Font, Color, Brush, Base, Border, Corner-Selection[/color:1ze628zq] [img:1ze628zq]http&#58;//www&#46;pflegeplus&#46;com/pictures/VTitledes7&#46;jpg[/img:1ze628zq] Easy resizing with Sliders and define Position on Screen. [img:1ze628zq]http&#58;//www&#46;pflegeplus&#46;com/pictures/VTitledes8&#46;jpg[/img:1ze628zq] Define up to 3 Texlline on any VTitle-Position. [img:1ze628zq]http&#58;//www&#46;pflegeplus&#46;com/pictures/VTitledes9&#46;jpg[/img:1ze628zq] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A new Class TGantt
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:-) --> So here you have it. We will include it in next FWH build, and we plan to continue enhancing it. gantt.prg [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;">&#123;</span><span style="color: #000000;">&#125;</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;">&#40;</span> nTop, nLeft, nWidth, nHeight, oWnd, lBorder,;<br />               lVScroll, lHScroll, nClrFore, nClrBack, bchange, dpresed, oLbx <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Redefine</span><span style="color: #000000;">&#40;</span> nId, oWnd, nClrFore, nClrBack <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />   <span style="color: #00C800;">METHOD</span> AddItem<span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">METHOD</span> AtItem<span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">METHOD</span> EraseBkGnd<span style="color: #000000;">&#40;</span> hDC <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">1</span><br /><br />   <span style="color: #00C800;">METHOD</span> GridMonth<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Display</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">BeginPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">EndPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span> <br />   <span style="color: #00C800;">METHOD</span> LButtonUp<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span>  <br /><br />   <span style="color: #00C800;">METHOD</span> MouseMove<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span> <br />   <br />   <span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> nTop, nLeft, nWidth, nHeight, oWnd, lBorder,;<br />            lVScroll, lHScroll, nClrFore, nClrBack, bChange, bPressed, oLbx <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> WS_CHILD,;<br />                      <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBorder, WS_BORDER, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>,;<br />                      <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lVScroll, WS_VSCROLL, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>,;<br />                      <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lHScroll, WS_HSCROLL, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>,;<br />                      WS_VISIBLE, WS_TABSTOP <span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>       <br /><br />   ::<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrFore, nClrBack <span style="color: #000000;">&#41;</span><br /><br />   ::<span style="color: #000000;">hPen</span> = CreatePen<span style="color: #000000;">&#40;</span> PS_SOLID, <span style="color: #000000;">1</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">128</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">lVisible</span> = .t.<br />      oWnd:<span style="color: #000000;">AddControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">else</span><br />      oWnd:<span style="color: #000000;">DefControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</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;">&#40;</span> nId, oWnd, nClrFore, nClrBack, bChange, bPressed, oLbx <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />   <span style="color: #00C800;">DEFAULT</span> oWnd := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   ::<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrFore, nClrBack <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">if</span> lAnd<span style="color: #000000;">&#40;</span> GetWindowLong<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">&#41;</span>, WS_VSCROLL <span style="color: #000000;">&#41;</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;">&#40;</span> GetWindowLong<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">&#41;</span>, WS_HSCROLL <span style="color: #000000;">&#41;</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;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</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;">&#40;</span> nTop, nLeft, nBottom, nRight, nClrBack <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />   <span style="color: #00C800;">local</span> oItem := TGanttItem<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span>, nTop, nLeft, nBottom, nRight, nClrBack <span style="color: #000000;">&#41;</span><br />   <br />   AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span>, oItem <span style="color: #000000;">&#41;</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;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />   <span style="color: #00C800;">local</span> nItem := AScan<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | oItem | oItem:<span style="color: #000000;">IsOver</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nItem != <span style="color: #000000;">0</span>, ::<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span> nItem <span style="color: #000000;">&#93;</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> GridMonth<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span> / <span style="color: #000000;">31</span><br />   <br />   MoveTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</span><br />   LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nWidth</span>, <span style="color: #000000;">18</span> <span style="color: #000000;">&#41;</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;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nWidth * n, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <br />      LineTo<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, nWidth * n, ::<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</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;">&#40;</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">7</span> + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> * nWidth <span style="color: #000000;">&#41;</span>,;<br />             <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> n < <span style="color: #000000;">10</span>, <span style="color: #ff0000;">" "</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span> + AllTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,,, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oFont</span>,<span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   FillRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, GetClientRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lGridMonth</span><br />      ::<span style="color: #000000;">GridMonth</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span>   <br />   <br />   AEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aItems</span>, <span style="color: #000000;">&#123;</span> | oItem | oItem:<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> ::<span style="color: #000000;">bPainted</span> != <span style="color: #00C800;">nil</span><br />      Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bPainted</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   ::<span style="color: #000000;">DispEnd</span><span style="color: #000000;">&#40;</span> aInfo <span style="color: #000000;">&#41;</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;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</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;">&#40;</span> nRow, nCol, <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br />         ::<span style="color: #000000;">oItem</span>:<span style="color: #000000;">DrawBorder</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> nOldCol - ::<span style="color: #000000;">oItem</span>:<span style="color: #000000;">nRight</span> <span style="color: #000000;">&#41;</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;">&#40;</span> nOldCol - ::<span style="color: #000000;">oItem</span>:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#41;</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;">&#40;</span> nOldCol - ::<span style="color: #000000;">oItem</span>:<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#41;</span><br />            ::<span style="color: #000000;">oItem</span>:<span style="color: #000000;">nRight</span> = nCol - <span style="color: #000000;">&#40;</span> nOldCol - ::<span style="color: #000000;">oItem</span>:<span style="color: #000000;">nRight</span> <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> oItem := ::<span style="color: #000000;">AtItem</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />         <span style="color: #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;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> LButtonDown<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</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;">&#40;</span> nRow + <span style="color: #000000;">32</span>, <span style="color: #000000;">40</span>, nKeyFlags <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> oItem := ::<span style="color: #000000;">AtItem</span><span style="color: #000000;">&#40;</span> nRow, nCol <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">else</span>   <br />         CursorHand<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> LButtonUp<span style="color: #000000;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// to remove the last painted lines</span><br />      ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> ::<span style="color: #000000;">bChange</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</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;">&#40;</span> nRow, nCol, nKeyFlags <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> End<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGantt<br /><br />   DeleteObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hPen</span> <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> oGantt, nTop, nLeft, nBottom, nRight, nClrBack <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">METHOD</span> DrawBorder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">METHOD</span> IsOver<span style="color: #000000;">&#40;</span> nRow, nCol, nMargin <span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> oGantt, nTop, nLeft, nBottom, nRight, nClrBack <span style="color: #000000;">&#41;</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;">&#40;</span> nRow, nCol, nMargin <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nOldRop := SetROP2<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nOldPen := SelectObject<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">oGantt</span>:<span style="color: #000000;">hPen</span> <span style="color: #000000;">&#41;</span><br />   <br />   MoveTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nLeft</span>,  ::<span style="color: #000000;">nTop</span> <span style="color: #000000;">&#41;</span><br />   LineTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nRight</span> - <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nTop</span> <span style="color: #000000;">&#41;</span><br />   LineTo<span style="color: #000000;">&#40;</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;">&#41;</span><br />   LineTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nLeft</span>,  ::<span style="color: #000000;">nBottom</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   LineTo<span style="color: #000000;">&#40;</span> hDC, ::<span style="color: #000000;">nLeft</span>,  ::<span style="color: #000000;">nTop</span> <span style="color: #000000;">&#41;</span><br />   SetROP2<span style="color: #000000;">&#40;</span> hDC, nOldRop <span style="color: #000000;">&#41;</span><br />   SelectObject<span style="color: #000000;">&#40;</span> hDC, nOldPen <span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">oGantt</span>:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TGanttItem<br /><br />   <span style="color: #00C800;">local</span> hPen := CreatePen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nClrBack</span> <span style="color: #000000;">&#41;</span><br />   <br />   FillRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oGantt</span>:<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#123;</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;">&#125;</span>, hPen <span style="color: #000000;">&#41;</span><br />   <br />   DeleteObject<span style="color: #000000;">&#40;</span> hPen <span style="color: #000000;">&#41;</span>  <br />   ::<span style="color: #000000;">oGantt</span>:<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//-----------------------------------------------------//          </span></div>[/code:w6fnsjpb] TestGant.prg [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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> oFont <span style="color: #000000;">&#41;</span><br />   oGantt:<span style="color: #000000;">lGridMonth</span> = .T.<br />   <br />   oGantt:<span style="color: #000000;">AddItem</span><span style="color: #000000;">&#40;</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;">&#41;</span><br />   oGantt:<span style="color: #000000;">AddItem</span><span style="color: #000000;">&#40;</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;">&#41;</span><br />   oGantt:<span style="color: #000000;">AddItem</span><span style="color: #000000;">&#40;</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;">&#41;</span><br />   oGantt:<span style="color: #000000;">AddItem</span><span style="color: #000000;">&#40;</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;">&#41;</span>  <br />   oGantt:<span style="color: #000000;">AddItem</span><span style="color: #000000;">&#40;</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;">&#41;</span><br />   <br />   oWnd:<span style="color: #000000;">oClient</span> = oGantt<br /><br />   oWnd:<span style="color: #0000ff;">Center</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:w6fnsjpb]
A new Class TGantt
Here you have it, with a working example and full source code included: [url:2egkl09k]http&#58;//code&#46;google&#46;com/p/fivewin-contributions/downloads/detail?name=newgantt&#46;zop&can=2&q=[/url:2egkl09k]
A new Class TGantt
Antonio, As always your code is clear and clean. Referring to the addItem() method: oGantt:AddItem( 150, 50, 170, 120, CLR_YELLOW ) Eventually the addItem() method needs to be changed to something like: oGantt:AddItem( cDescription, dStart, dEnd, nColor ) Internally 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. Later 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. Sometimes a task needs finer starts and ends including the hour. This is useful for scheduling, for instance. Another 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. The 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. Project 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. Lots to think about. Comments welcome. Regards, James Here is a sample WBS: [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]
A new Class TGantt
Thats a nice start. I will be happy to start working with it. You 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. For example, how about a chart for the following information: First column: Task information ( text ) Column 2 to n are steps to be perfomed. James is correct about the format, although it is not necessarily dates we are tracking. Work in progress may be through stages, not dates. Also, we need to be able to use this with resources ... Tim
A new Class TGantt
Tim, [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] I 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 --> It 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? Regards, James
A new Class TGantt
I have downloaded and tested this free Gantt application as it is a very good way to understand how the Class TGantt should behave: [url:3l1uykzb]http&#58;//softlayer&#46;dl&#46;sourceforge&#46;net/project/openproj/OpenProj%20Binaries/1&#46;4/openproj-1&#46;4&#46;msi[/url:3l1uykzb] [img:3l1uykzb]http&#58;//ubuntulife&#46;files&#46;wordpress&#46;com/2009/11/openproj_big&#46;jpg[/img:3l1uykzb]
A new Class TGantt
Antonio, I was just going to post a link to a sample Gantt chart, but you have already posted a good one. Others 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. Does anyone want to describe the type of chart they need? A picture would be helpful too. Regards, James
A new Class TGantt
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... So 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...
A new Class TGantt
Hi to all, since years we are looking to substitute our old fashioned planning tables with paper cards for each production step with a modern future-proofed solution. Round 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. Meanwhile we are quite happy, that we are working with a competent partner, whose firm with the complex process of automatically optimization of work sequences. But 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.
A new Class TGantt
James & Antonio, I'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. Here is what I would want to schedule: Description Start Time End Time Status The 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. Tim
A new Class TGantt
Tim, What 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. addItem( description, start date, start time, end date, end time, percent complete) Perhaps 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. Comments anyone? Regards, James
A new Class TGantt
James, I agree with you. We plan to continue this development asap <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
A new FWPPC user
Hi everybody,I 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:-) -->Please 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:-) -->
A new FWPPC user
Hello Michael,Welcome to these forums. Please feel free to make as many questions as needed.We are here to help each other <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
A new IDE for Manuel Mercado's SBUTTON
[quote="ukoenig":2o4v2so2]Is there a Way, to show a resized / adjusted BMP ?[/quote:2o4v2so2] No, with BITMAP shape, the size is provided by the dimentions of the bitmap and can't be resized. Best regards. Manuel Mercado Gómez.
A new IDE for Manuel Mercado's SBUTTON
Hello because many People are using SBUTTON from M. Mercado, I will put my new IDE for the Samples as Download on this place. I kept the samples like they are, but everything is adjusted to the IDE and a Painter is included, to change Backgrounds, Images and Fonts. As soon it is finished, I will add a < [color=#FF0000:34m7uy2n]Download[/color:34m7uy2n] > - Comment to this post. [img:34m7uy2n]http&#58;//www&#46;pflegeplus&#46;com/pictures/ide1&#46;jpg[/img:34m7uy2n] Lines-Display : [img:34m7uy2n]http&#58;//www&#46;pflegeplus&#46;com/pictures/ide2&#46;jpg[/img:34m7uy2n] Say-Display : [img:34m7uy2n]http&#58;//www&#46;pflegeplus&#46;com/pictures/ide3&#46;jpg[/img:34m7uy2n] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A new IDE for Manuel Mercado's SBUTTON
Dear Uwe: Thanks in advance from everybody (like me) who uses TSButton. Best regards. Manuel Mercado Gómez.
A new IDE for Manuel Mercado's SBUTTON
Dear Manuel, I reached the [color=#4000FF:1ijc2zks]Button-Section [/color:1ijc2zks]and wanted to change the Button-size ( Button from Resource ) Is there a Way, to show a resized / adjusted BMP ? // New "Shape" feature in TSButton @90, 300 SBUTTON oBtn[ 4 ] OF aChild[ 1 ] FONT oFont[ 2 ] ; SIZE [color=#FF0000:1ijc2zks]150, 40 [/color:1ijc2zks]PIXELS ; // [color=#4000FF:1ijc2zks]doesn't resize the BMP[/color:1ijc2zks] RESOURCE "Lamp1", "Lamp2",, "Lamp3", [color=#FF0000:1ijc2zks]"Shape3"[/color:1ijc2zks] ; SHAPE ; PROMPT "Exit" ; TEXT ON_LEFT ; ACTION aChild[ 1 ]:End(); COLORS CLR_BLACK ; TOOLTIP "End Program" ; MESSAGE 'See new "Shape" feature and 3D text (bas-relief), ' + ; 'default position, specific 3D colors' [img:1ijc2zks]http&#58;//www&#46;pflegeplus&#46;com/pictures/ide4&#46;jpg[/img:1ijc2zks] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A new IDE for Manuel Mercado's SBUTTON
Estimados: EXCELENTE... Muchas gracias a ambos. Saludos Ruben Fernmandez (Esperando la nueva TSButton...je,je,je) <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
A new IDE for Manuel Mercado's SBUTTON
Dear Manuel, everything is included now ( nearly finished ) like the Background-Painter and a Source-Creator. I have a Question about the HOTSPOT-section : On Mouse-caption, I get a oversized Area and I couldn't find out, where it comes from. As far as possible, I'm trying to use / include Your samples. Only some Object-adjustments needed. ( added some Space between the Buttons ) [img:wbdwm31o]http&#58;//www&#46;pflegeplus&#46;com/pictures/hotspot1&#46;jpg[/img:wbdwm31o] ================= A part of the sample ======== FUNCTION TESTHOT1(oWnd) LOCAL oFont, oMenu, oBrush LOCAL nEle, oBtn[ 20 ], oBtn30, ; aPrompt := {}, ; aAction := {}, ; aRVSP := { { 11, 11, 27, 26 }, { 11, 28, 27, 41 }, { 11, 43, 27, 58 } }, ; aBVSP := { 'MsgInfo( "Preview" )', 'MsgInfo( "Save" )', 'MsgInfo( "Print" )' }, ; aTVSP := { "Preview", "Save", "Print" }, ; aRPS := { { 11, 17, 27, 32 }, { 11, 35, 27, 48 } }, ; aBPS := { 'MsgInfo( "Print" )', 'MsgInfo( "Save" )' }, ; aTPS := { "Print", "Save" }, ; aRVP := { { 11, 19, 27, 34 }, { 11, 37, 27, 52 } }, ; aBVP := { 'MsgInfo( "Preview" )', 'MsgInfo( "Print" )' }, ; aTVP := { "Preview", "Print" }, ; aROne := { 11, 10, 27, 62 } For nEle := 1 To 18 AAdd( aPrompt, "TSButton Hot Spot Sample " + LTrim( Str( nEle ) ) ) Next DEFINE BRUSH oBrush FILENAME ".\system\Blustone.bmp" DEFINE DIALOG oDlg8 OF oWnd FROM 60, 50 TO nHeight - 80, nWidth- 300 PIXEL ; FONT oFont BRUSH oBrush // COLORS CLR_BLACK, CLR_NBLUE // [color=#FF0000:wbdwm31o]The 1. Button[/color:wbdwm31o] @ 5, 5 SBUTTON oBtn[ 1 ] PROMPT aPrompt[ 1 ] PIXEL OF oDlg8 ; RESOURCE "VSP" FONT oFont COLOR CLR_BLUE SHAPE ; ACTION MsgInfo( "Main Action Sample 1" ) ; TOOLTIP "Test" // aHotSpot, { aRect, bAction, cToolTip } oBtn[ 1 ]:AddHotSpot( aRVSP[ 1 ], aBVSP[ 1 ], aTVSP[ 1 ] ) oBtn[ 1 ]:AddHotSpot( aRVSP[ 2 ], aBVSP[ 2 ], aTVSP[ 2 ] ) oBtn[ 1 ]:AddHotSpot( aRVSP[ 3 ], aBVSP[ 3 ], aTVSP[ 3 ] ) ... ... [color=#FF0000:wbdwm31o]Maybe something to be changed here ???[/color:wbdwm31o] // moving the caption to a specific location inside the button (pixel coordinates) For nEle := 1 To 18 oBtn[ nEle ]:SetText( Nil, 12, 77, .T. ) Next ACTIVATE DIALOG oDlg8 VALID ( lACTIVE8 := .F., oBtn8:Enable(), .T. ) NOWAIT ; ON INIT oDlg8:Move( 60, 50, nWidth- 350, nHeight - 150, .f. ) RETURN NIL ====================== The SAY is defined as TRANSPARENT but doesn't work @50, 70 SAY "White Box" FONT oFont SIZE 60, 15 PIXEL [color=#FF0000:wbdwm31o]TRANSPARENT[/color:wbdwm31o] @50, 290 SAY "Blue Box" FONT oFont SIZE 60, 15 PIXEL [color=#FF0000:wbdwm31o]TRANSPARENT[/color:wbdwm31o] @50, 500 SAY "Green Box" FONT oFont SIZE 60, 15 PIXEL [color=#FF0000:wbdwm31o]TRANSPARENT[/color:wbdwm31o] I tested : @50, 50 [color=#FF0000:wbdwm31o]STSAY[/color:wbdwm31o] oSay PROMPT ; "Class: TSTSay" + CRLF + "Command: STSAY" OF oWnd2 ; SIZE 450, 150 PIXELS ; FONT oFont COLOR CLR_RED, CLR_HGRAY ; SHADED BLINK CLR_HRED, 500, 3000 it works [color=#FF0000:wbdwm31o]perfect[/color:wbdwm31o] on the same Backround. [img:wbdwm31o]http&#58;//www&#46;pflegeplus&#46;com/pictures/tsay1&#46;jpg[/img:wbdwm31o] Label-Text-color is always BLACK ??? // label left aligned (default) @400, 30 GRAY BOX SIZE 150, 150 OF oWnd3 PIXEL [color=#FF0000:wbdwm31o]TEXT "Label"[/color:wbdwm31o] FONT oFont [img:wbdwm31o]http&#58;//www&#46;pflegeplus&#46;com/pictures/slines1&#46;jpg[/img:wbdwm31o] Doesn't work // @50, 70 SAY "White Box" FONT oFont SIZE 60, 15 PIXEL TRANSPARENT Changed to : @50, 70 STSAY oSay PROMPT "White Box" OF oWnd3 SIZE 60, 15 PIXELS ; FONT oFont COLOR 16776960, CLR_HGRAY [img:wbdwm31o]http&#58;//www&#46;pflegeplus&#46;com/pictures/ssay2&#46;jpg[/img:wbdwm31o] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A new IDE for Manuel Mercado's SBUTTON
Dear Manuel, I have 2 small Questions about the 2. Radio-sample : 1. How to display the BMP's transparent ( possible ) ? ( a Alpha-channel displays a black background ) [color=#0000FF:3vbhnj2x]DEFINE BITMAP oBmp[ 5 ] FILENAME c_path + "\System\Key1.bmp" DEFINE BITMAP oBmp[ 6 ] FILENAME c_path + "\System\Key2.bmp" DEFINE BITMAP oBmp[ 8 ] FILENAME c_path + "\System\Key4.bmp"[/color:3vbhnj2x] [color=#0000FF:3vbhnj2x]@200, 100 SRADIO oRad[ 12 ] VAR lActive OF oWnd7 ; ITEMS "Enable/Disable all Radio Boxes" SIZE 70, 30 PIXEL ; FONT oFont BITMAPS oBmp[ 5 ], oBmp[ 6 ],, oBmp[ 8 ] RAISED WBOX ; COLOR CLR_BLACK, nRGB( 205, 192, 176 ) ; MESSAGE "TSRadio Check Box, Button CHECK, Text RAISED, Own Box" [/color:3vbhnj2x] [img:3vbhnj2x]http&#58;//www&#46;pflegeplus&#46;com/pictures/SBSample1&#46;jpg[/img:3vbhnj2x] 2. the changed BMP moves a bit in horizontal direction from the original Position, after Button-click. Is there something to be adjusted ? [img:3vbhnj2x]http&#58;//www&#46;pflegeplus&#46;com/pictures/SBSample2&#46;jpg[/img:3vbhnj2x] Best Regards Uwe <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
A new IDE for Manuel Mercado's SBUTTON
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: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
A new IDE for Manuel Mercado's SBUTTON
Hello, here are the Informations, You are looking for : Manuel Mercado's Download-Link for SBUTTON release 7.0 <!-- m --><a class="postlink" href="http://www.box.net/shared/9vyw4zeo0k">http://www.box.net/shared/9vyw4zeo0k</a><!-- m --> The Tool, to select and create/modify the delivered SBUTTON-samples, is nearly finished. I Download-Link will be added to this Post. Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A new IDE for Manuel Mercado's SBUTTON
Its a really interesting tool. Congratulations!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
A new IDE for Manuel Mercado's SBUTTON
Hello Jose, I still found another sample, that wasn't included. It works fine, embedded inside the Tool. Slowly everything is included for a first Download. The background of the left part can be changed with the Painter : [img:grotb6rr]http&#58;//www&#46;pflegeplus&#46;com/pictures/sbtn10&#46;jpg[/img:grotb6rr] [img:grotb6rr]http&#58;//www&#46;pflegeplus&#46;com/pictures/sbtn11&#46;jpg[/img:grotb6rr] Best regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A new IDE for Manuel Mercado's SBUTTON
Dear Uwe: [quote="ukoenig":66kvos6u]I have a Question about the HOTSPOT-section : On Mouse-caption, I get a oversized Area and I couldn't find out, where it comes from. As far as possible, I'm trying to use / include Your samples. Only some Object-adjustments needed. ( 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;">&#40;</span> <span style="color: #000000;">142</span>, <span style="color: #000000;">171</span>, <span style="color: #000000;">194</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//--------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> oWnd, oDlg, oFont, oMenu, nEle, oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#93;</span>, ;<br />         aPrompt := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, ;<br />         aAction := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span>, ;<br />         aRVSP  := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</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;">&#125;</span>, <span style="color: #000000;">&#123;</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;">&#125;</span>, <span style="color: #000000;">&#123;</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;">&#125;</span> <span style="color: #000000;">&#125;</span>, ;<br />         aBVSP  := <span style="color: #000000;">&#123;</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;">&#125;</span>, ;<br />         aTVSP  := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Preview"</span>, <span style="color: #ff0000;">"Save"</span>, <span style="color: #ff0000;">"Print"</span> <span style="color: #000000;">&#125;</span>, ;<br />         aRPS   := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</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;">&#125;</span>, <span style="color: #000000;">&#123;</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;">&#125;</span> <span style="color: #000000;">&#125;</span>, ;<br />         aBPS   := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'MsgInfo( "Print" )'</span>, <span style="color: #ff0000;">'MsgInfo( "Save" )'</span> <span style="color: #000000;">&#125;</span>, ;<br />         aTPS   := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Print"</span>, <span style="color: #ff0000;">"Save"</span> <span style="color: #000000;">&#125;</span>, ;<br />         aRVP   := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</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;">&#125;</span>, <span style="color: #000000;">&#123;</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;">&#125;</span> <span style="color: #000000;">&#125;</span>, ;<br />         aBVP   := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">'MsgInfo( "Preview" )'</span>, <span style="color: #ff0000;">'MsgInfo( "Print" )'</span> <span style="color: #000000;">&#125;</span>, ;<br />         aTVP   := <span style="color: #000000;">&#123;</span> <span style="color: #ff0000;">"Preview"</span>, <span style="color: #ff0000;">"Print"</span> <span style="color: #000000;">&#125;</span>, ;<br />         aROne  := <span style="color: #000000;">&#123;</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;">&#125;</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;">&#40;</span> aPrompt, <span style="color: #ff0000;">"TSButton Hot Spot Sample "</span> + LTrim<span style="color: #000000;">&#40;</span> Str<span style="color: #000000;">&#40;</span> nEle <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</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;">&#40;</span> WS_VISIBLE, WS_CHILD, WS_DLGFRAME <span style="color: #000000;">&#41;</span><br /><br />   @  <span style="color: #000000;">5</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 1"</span> <span style="color: #000000;">&#41;</span> ;<br />            TOOLTIP <span style="color: #ff0000;">"Test"</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @  <span style="color: #000000;">5</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 10"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">25</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 2"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">25</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 11"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">11</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">45</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 3"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">45</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 12"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">12</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">65</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 4"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aROne, <span style="color: #000000;">&#123;</span>||MsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Print"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"Print"</span> <span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">65</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 13"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">13</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTPS<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">85</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 5"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">85</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 14"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aROne, <span style="color: #000000;">&#123;</span>||MsgInfo<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Save"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>, <span style="color: #ff0000;">"Save"</span> <span style="color: #000000;">&#41;</span><br /><br />   @<span style="color: #000000;">105</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 6"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">6</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @<span style="color: #000000;">105</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 15"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">15</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @<span style="color: #000000;">125</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 7"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">7</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @<span style="color: #000000;">125</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">16</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 16"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">16</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">16</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">16</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @<span style="color: #000000;">145</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 8"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">8</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @<span style="color: #000000;">145</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 17"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">17</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aROne, <span style="color: #ff0000;">'MsgInfo( "Save" )'</span>, <span style="color: #ff0000;">"Save"</span> <span style="color: #000000;">&#41;</span><br /><br />   @<span style="color: #000000;">165</span>, <span style="color: #000000;">30</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 9"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">9</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br /><br />   @<span style="color: #000000;">165</span>,<span style="color: #000000;">200</span> SBUTTON oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">PROMPT</span> aPrompt<span style="color: #000000;">&#91;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#93;</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;">&#40;</span> <span style="color: #ff0000;">"Main Action Sample 18"</span> <span style="color: #000000;">&#41;</span><br /><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />   oBtn<span style="color: #000000;">&#91;</span> <span style="color: #000000;">18</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddHotSpot</span><span style="color: #000000;">&#40;</span> aRVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aBVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, aTVSP<span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</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;">&#91;</span> nEle <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Nil</span>, <span style="color: #000000;">12</span>, <span style="color: #000000;">77</span>, .T. <span style="color: #000000;">&#41;</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;">&#40;</span><span style="color: #000000;">&#41;</span> ;<br />            <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> oFont:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .T. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span></div>[/code:66kvos6u] [quote="ukoenig":66kvos6u]Label-Text-color is always BLACK ???[/quote:66kvos6u]The clause "COLORS" in TSLines Boxes accepts 3 colors as follows.... COLORS nClrLight, nClrDark, nClrLabel So 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. About TSRadio, I'm checking it (was a bit forgotten), I'll comment your requests soon. Best regards. Manuel Mercado Gómez.
A new IDE for Manuel Mercado's SBUTTON
Dear Manuel, Thank You very much. Your new Sample is included and works perfect. [img:f6c9yi4a]http&#58;//www&#46;pflegeplus&#46;com/pictures/SB10&#46;jpg[/img:f6c9yi4a] All [size=150:f6c9yi4a][b:f6c9yi4a]9 [/b:f6c9yi4a][/size:f6c9yi4a] Tests together : 1 Button, 1 Say, 3 Lines / Boxes, 2 Radio's / Checkboxes, 1 Hotspot, 1 Shapes [img:f6c9yi4a]http&#58;//www&#46;pflegeplus&#46;com/pictures/SBS1&#46;jpg[/img:f6c9yi4a] [img:f6c9yi4a]http&#58;//www&#46;pflegeplus&#46;com/pictures/SBS2&#46;jpg[/img:f6c9yi4a] [img:f6c9yi4a]http&#58;//www&#46;pflegeplus&#46;com/pictures/SBS3&#46;jpg[/img:f6c9yi4a] A new Fontpainter added. Now all Parameters from [color=#FF0000:f6c9yi4a][b:f6c9yi4a]SSAY[/b:f6c9yi4a][/color:f6c9yi4a] can be tested at Runtime. [img:f6c9yi4a]http&#58;//www&#46;pflegeplus&#46;com/pictures/Fontp1&#46;jpg[/img:f6c9yi4a] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A new PAINTER ( Controls ) in DESIGN-Mode ( Download )
Hello, I finished my new Painter and hope, it makes the Window / Dialog-Design easier from Source and saves much Time with placing Controls inside a Window : Just let me know, if there is still something missing ( Update includes [color=#FF0000:34j9ym5u]Group and Font[/color:34j9ym5u]-define ) ( 2 small problems are still left : Radios from Source on different Locations ( view my Question in the Forum ) and Transparent. I'm still working on a Solution. ) All Controls are in DESIGN-Mode. Buttons, Checkbox and Image have Actions on Right Mouseclick. Please check the FWH, Borland and xHarbour-path inside the MAKE-File Because nearly all Controls have Functions, move the not needed ones to a unused area inside the Window, before You create a EXE-file. You can also remove them from Source ( is displayed before the EXE is created ) In case You don't need a PRG-File of the Results, only the Control-Positiones in Relation to the Window, You can use the Preview-Button. A Browser shows all Settings. Release : [color=#FF0000:34j9ym5u]2.0 => 06.2010[/color:34j9ym5u] Download ( 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 --> The Start-Screen : [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des1&#46;jpg[/img:34j9ym5u] A browser displays all Settings : [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des2&#46;jpg[/img:34j9ym5u] Change Image : [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des3&#46;jpg[/img:34j9ym5u] Define a Image or Brush for Background-Selection : [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des4&#46;jpg[/img:34j9ym5u] Define Gradient-Settings : ( a Single Color Background-Selection is using the 1. Gradientcolor ) [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des8&#46;jpg[/img:34j9ym5u] [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des7&#46;jpg[/img:34j9ym5u] Write the PRG and ceate a EXE-File : [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des5&#46;jpg[/img:34j9ym5u] The Exe-File shows the Result from Selections and Control-Positions : [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des6&#46;jpg[/img:34j9ym5u] [color=#FF0000:34j9ym5u][b:34j9ym5u]A Sample :[/b:34j9ym5u][/color:34j9ym5u] Background-Selection : COLOR 1 [color=#FF0000:34j9ym5u]changed[/color:34j9ym5u] Image, 1 Browser, 2 Gets, 2 Says and 6 Buttons [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des9&#46;jpg[/img:34j9ym5u] [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des10&#46;jpg[/img:34j9ym5u] [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des11&#46;jpg[/img:34j9ym5u] [color=#FF0000:34j9ym5u][size=150:34j9ym5u][b:34j9ym5u]New Release 2.0[/b:34j9ym5u][/size:34j9ym5u][/color:34j9ym5u] => Font-Selection and Group-Box added : [img:34j9ym5u]http&#58;//www&#46;pflegeplus&#46;com/pictures/des12&#46;jpg[/img:34j9ym5u] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
A new Surface Pro ad is here
Best regards, Otto [url:174v3vk4]http&#58;//www&#46;youtube&#46;com/watch?v=tr3dFSzh1yU&list=UUGS474QoP8SCnSo6hOCaayA[/url:174v3vk4]
A new Surface Pro ad is here
Very absurd ad... An automatas choreography, and a karaoke singer ? They should focus on technical facts, and demos of the working product. -1
A new Surface Pro ad is here
Hello Antonio, you have to look at the other videos too: The Making of the Design of Surface Learn more about Surface etc. Best regards, Otto
A new Surface Pro ad is here
Antonio, this is beatboxing not karaoke <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Best regards, Otto amazing 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 -->