topic
stringlengths
1
63
text
stringlengths
1
577k
checking an url
[quote="nageswaragunupudi":1stahdhb]Can you please try this simple function? [code=fw:1stahdhb]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cRet := WebPageContents<span style="color: #000000;">&#40;</span> cUrl <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> Empty<span style="color: #000000;">&#40;</span> cRet <span style="color: #000000;">&#41;</span><br />   ? <span style="color: #ff0000;">"Invalid URL"</span><br /><span style="color: #00C800;">else</span><br />   ? cRet<br /><span style="color: #00C800;">endif</span><br /> </div>[/code:1stahdhb][/quote:1stahdhb] Hi Mr. Rao, Is there an option to show progress of download? Thanks.
checking an url
[quote:1quvqt6o]Is there an option to show progress of download? [/quote:1quvqt6o] No.
checking an url
Can this be used, to check the validity of sites with credentials?
checking an url
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=234092#p234092">viewtopic.php?p=234092#p234092</a><!-- l -->
checkres() no funciona
Colegas, estoy tratando de implementar esta utilidad pero no me genera ningún archivo compilando con harbour, con xHarbour funciona. Mi entorno FWH1204, BCC582, HARBOUR 3.0. Alguna idea. Desde ya muchísimas gracias. Saludos
checkres() no funciona
[url:5k5x5686]http&#58;//wiki&#46;fivetechsoft&#46;com/doku&#46;php?id=fivewin_function_setresdebug[/url:5k5x5686]
checkres.txt
Hola amigos, revisé todo el programa y creo que los Brush los eliminé a todos. Pero el checkres.txt me sigue saliendo esto 31/08/2023 18:01:13: C:\Fuentes\Alfainmo\alfainmo.Exe -- BRUSH,286265516,TDIALOG:SETCOLOR(2900)->TDIALOG:NEW(219)->MSGRUN(38)->MSGWAIT(64)->MAIN(0) 31/08/2023 18:01:13: C:\Fuentes\Alfainmo\alfainmo.Exe -- ==================================================================================================== Alguna idea? Saludos y Gracias Ruben Fernandez
checkres.txt
Estimado Dario, Con que parámetros estás llamando a MsgWait() desde tu PRG ?
checkres.txt
Antonio,gracias por contestar. lo uso así Msgwait("Esperando finalización del proceso", "Aguarde", 0.5) Gracias y saludos Dario Fernandez
checkres.txt
Estimado Dario, Estás usando la versión más reciente de FWH ? En un simple ejemplo aqui no sucede eso: [code=fw:3up0kwqo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">bRClicked</span> := <span style="color: #000000;">&#123;</span> || MsgWait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"test"</span>, <span style="color: #ff0000;">"msg"</span>, <span style="color: #000000;">0.5</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">CENTERED</span></div>[/code:3up0kwqo] or [code=fw:3up0kwqo]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">local</span> oWnd<br /><br />MsgWait<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"test"</span>, <span style="color: #ff0000;">"msg"</span>, <span style="color: #000000;">0.5</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">/*<br />&nbsp; &nbsp;DEFINE WINDOW oWnd<br />&nbsp; &nbsp;oWnd:bRClicked := { || MsgWait( "test", "msg", 0.5 ) }<br />&nbsp; &nbsp;ACTIVATE WINDOW oWnd CENTERED<br />*/</span></div>[/code:3up0kwqo]
checkres.txt
No Antonio, uso la 22.12. Veré como lo soluciono. Saludos Gracias. Dario Fernandez
chequear integridad de un archivo ZIP
buenastengo la siguiente dudacómo puedo chequear la integridad de un archivo ZIPEl tema es que transfiero archivos ZIP por FTP y en algunas ocaciones la comunicacion se trunca y el ZIP recibido está corruptoY al intentar abrirlo el programa sale conen "Abnormal...." y ahi queda detenidodesde ya muchas graciasPabloFWH2.6 xHarbour 0.99.60.1
chiarimenti su FWPPC
ciao a tutti,vi volevo chiedere un paio di cose:1) quanti file dbf possono essere aperti in FWPPC e quindi quante aree di lavoro attive (in clipper ricordo che erano massimo 9)2) esiste una funzione tipo visual foxpro wait windows ? io spesso utilizzi inviare a video i messaggi delle varie operazioni che si stanno compiendo per esempio: wait windos "Apertura file dbf CLIENTI.DBF" NOWAIT USE CLIENTI IN 0 AGAIN ALIAS CLIENTI wait windos "Apertura file dbf COMUNI.DBF" NOWAIT USE COMUNI IN 0 AGAIN ALIAS COMUNIECC.posso utilizzare una funzione simile?Grazie mille a tutti
chiarimenti su FWPPC
[quote="xfood":8bmpurld]1) quanti file dbf possono essere aperti in FWPPC[/quote:8bmpurld] Non credo ci sia un limite. Dipende dal sistema operativo. [quote="xfood":8bmpurld]e quindi quante aree di lavoro attive (in clipper ricordo che erano massimo 9)[/quote:8bmpurld] Mi pare siano 256. [quote="xfood":8bmpurld]2) esiste una funzione tipo visual foxpro wait windows ?[/quote:8bmpurld]Non sono sicuro sia (ancora) implementata in FWPPC ma prova con MsgRun().EMG
chiarimenti su FWPPC
WAHOOOOOPOSSO USARE 256 AREE DI LAVORO?????CIOAO POSSO SCRIVERE SELECT 100USE CLIENTIANCHE IN FWPPC?BELLISSIMO........SE E' COSI CONFERMAMELO PER FAVORE GRAZIE MILLE
chiarimenti su FWPPC
Veramente io l'ho sempre fatto anche in Clipper.EMG
chiarimenti su FWPPC
grazie, devo settare una qualche variabile x gestire tutte queste aree di lavoro?p.s. esiste una funzione che mi permette di inserire un valore?esempio in vfp esisteva una funzione chiamata nValoreIniziale='001'nValore=inputbox('inserimento',nvaloreIniziale,'inserisci qui un valore)o devo creare una dialog con un solo get?grazie mille sto finalmente cercando di realizzare il progetto per cuiho acquistato la FWPPC
chiarimenti su FWPPC
[quote="xfood":1jlsbh4g]devo settare una qualche variabile x gestire tutte queste aree di lavoro?[/quote:1jlsbh4g] No. [quote="xfood":1jlsbh4g]p.s. esiste una funzione che mi permette di inserire un valore?[/quote:1jlsbh4g]MsgGet()EMG
chiarimenti su FWPPC
scusatemi,ho questo pezzettino di codice @ 43, 2 SAY aCtl[ 6 ] PROMPT "DATA:" OF oDlg ; FONT aFonts[ 2 ] UPDATE ; COLORS CLR_BLACK, CLR_WHITE SIZE 36, 10 PIXELsiccome lo sto utilizzando su un palmareesiste il modo per uscire da questo campo premendo il tasto invio del terminale?esce solo se premo il tasto TAB ma sul terminale è molto scomodograzie mille a tutti
chiarimenti su FWPPC
HELP HELP HELPcortesemente esiste una soluzione per il problema riportato sopra questo post?Grazie mille a tutti
chiarimenti su FWPPC
Il problema non è chiaro. Nell'esempio indichi una SAY che, ovviamente, non ha la possibilità di avere il focus. Se hai sbagliato esempio e intendevi una GET allora puoi provare con[code:2kpch308]oGet1&#58;bKeyDown = &#123; | nKey | If&#40; nKey = VK_RETURN, oGet2&#58;SetFocus&#40;&#41;, &#41; &#125;[/code:2kpch308]EMG
chiarimenti su FWPPC
Grazie mille,hai centrato il problemanon so come mai quel codice sia finito male,avro fatto un copia/incolla erratoil codice era + o - questo@ 2, 2 DTPICKER oget1 var dDate OF oWnde il tuo suggerimento e OKKKKKKGrazie mille ENRICOfinalmento il mio programmino comincia a prendere formacerchero di stressarvi il meno possibilep.s. se io ho il mio palmare collegato al pc via usb con active sync,esiste un modo per copiare direttamente un file dal palmare al pc?per esempio un bottono che clikko invia dati a pc e mi copia il fileinteressato in una cartella del pcGrazie mille non so come avrei fatto senza di voi e sopratutto di[b:3a4m6i2s] ENRICO MARIA GIORDANO[/b:3a4m6i2s]
chiarimenti su FWPPC
scusatemi,ma non riesco a capireho questo codice che sembrava funzionare ma invece.....DEFINE DIALOG oDlg FROM 0, 0 TO 190, 230 PIXEL ; COLORS CLR_BLACK, CLR_WHITE ; TITLE "Inserimento Dati" @ 42, 49 DTPICKER aCtl[ 5 ] VAR NDATA OF oDlg ; FONT aFonts[ 2 ] ; COLORS CLR_HGREEN, nRGB( 240, 248, 255 ) SIZE 67, 11 PIXEL aCtl[ 5 ]:bKeyDown = { | nKey | If( nKey =13, aCtl[ 7 ]:SetFocus(), ) } @ 66, 17 BUTTON aCtl[ 7 ] PROMPT "&Accetta" OF oDlg ; FONT aFonts[ 1 ] SIZE 76, 26 PIXEL UPDATE ; ACTION ODLG:END()ACTIVATE DIALOG oDlg CENTERED ; VALID ( Aeval( aFonts, { |o| o:End() } ), .T. )sul campo data il primo esce solo se premo il tasto TAB e non esce dal controllo se premo invio perche??????????dovè l'errore?????grazie mille
chiarimenti su FWPPC
Sostituisci il SetFocus() con un MsgInfo() per vedere se effettivamente quella parte viene eseguita.EMG
chiarimenti su FWPPC
ti invio tutta la procedurina completa,su windows cee 5.0 il controllo DTPICKEResce solo con il tasto Tab e se premo invio in questocaso non mi spunta il messaggio perchè?????Grazie mille anticipatamente#include "FWCE.ch"//----------------------------------------------------------------------------//function Main()Local oDlg, aCtl[ 7 ], aFonts[ 2 ]Local aLoc[ 3 ]Local oBottone,oDataFORNITORE=SPACE(5)NUMERO=SPACE(5)NDATA=DATE() DEFINE FONT aFonts[ 1 ] NAME "MS Sans Serif" SIZE 0, -13 BOLD DEFINE FONT aFonts[ 2 ] NAME "Arial" SIZE 0, -16 BOLD * 200 239 DEFINE DIALOG oDlg FROM 0, 0 TO 190, 230 PIXEL ; COLORS CLR_BLACK, CLR_WHITE ; TITLE "Inserimento Dati" @ 8, 49 GET aCtl[ 1 ] VAR FORNITORE OF oDlg ; FONT aFonts[ 2 ] UPDATE ; COLORS CLR_HGREEN, nRGB( 240, 248, 255 ) SIZE 57, 11 PIXEL @ 9, 2 SAY aCtl[ 2 ] PROMPT "FORN.:" OF oDlg ; FONT aFonts[ 2 ] UPDATE ; COLORS CLR_BLACK, CLR_WHITE SIZE 36, 12 PIXEL @ 25, 49 GET aCtl[ 3 ] VAR NUMERO OF oDlg ; FONT aFonts[ 2 ] UPDATE ; COLORS CLR_HGREEN, nRGB( 240, 248, 255 ) SIZE 57, 11 PIXEL @ 26, 2 SAY aCtl[ 4 ] PROMPT "N.DOC:" OF oDlg ; FONT aFonts[ 2 ] UPDATE ; COLORS CLR_BLACK, CLR_WHITE SIZE 36, 10 PIXEL *DTPICKER <!-- s:arrow: --><img src="{SMILIES_PATH}/icon_arrow.gif" alt=":arrow:" title="Arrow" /><!-- s:arrow: --> <!-- s:arrow: --><img src="{SMILIES_PATH}/icon_arrow.gif" alt=":arrow:" title="Arrow" /><!-- s:arrow: --> <!-- s:arrow: --><img src="{SMILIES_PATH}/icon_arrow.gif" alt=":arrow:" title="Arrow" /><!-- s:arrow: --> <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: --> @ 42, 49 DTPICKER aCtl[ 5 ] VAR NDATA OF oDlg ; FONT aFonts[ 2 ] ; COLORS CLR_HGREEN, nRGB( 240, 248, 255 ) SIZE 67, 11 PIXEL aCtl[ 5 ]:bKeyDown = { | nKey | If( nKey =13, msginfo('io'), ) } @ 66, 17 BUTTON aCtl[ 7 ] PROMPT "&Accetta" OF oDlg ; FONT aFonts[ 1 ] SIZE 76, 26 PIXEL UPDATE ; ACTION ODLG:END() ACTIVATE DIALOG oDlg CENTERED ; VALID ( Aeval( aFonts, { |o| o:End() } ), .T. )return nil
chiarimenti su FWPPC
help help helpQUALCUNO MI AIUTIGRAZIE DI ESISTERE A TUTTI
chm de harbour.
hola. Alguien tiene las ayudas (.chm y chw) de harbour? gracias.
chm de harbour.
Hola Gustavo. Tengo un par de ficheros .chm te los mando. ya sabes renombra .zop a .zip. Saludos. Jose.
chm de harbour.
hola tenes la ayuda de harbour?
chm de harbour.
Hola Gustavo, si la tengo pero estoy de viaje, cuando vuelva te la mando Saludos. Enviado desde mi POCOPHONE F1 mediante Tapatalk
chm de harbour.
Enviado mediante WeTransfer. Saludos Jose.
chm de harbour.
gracias
chm-files in FWH
Antonio, What are the plans for the use of chm-files in FWH? Will there be a "simple" solution like SET HELPFILE TO XXX.CHM or do we have to change the code to HTMLHelp(..) everywhere? Thanks for your answer, Dietmar
chm-files in FWH
Dietmar, If we could implement the equivalent functions for the ones that are used one, then we could support both help files formats
choose printer
Hi, Does option exist in the fwh to choose the printer that wants to print? Clemerson
choose printer
Yes, use the TO clause of the PRINT command. EMG
choose printer
EnricoMaria, like this me yours to do. I wanted to do before the report the user to choose the printer that wants to print: [img:3axt6fd2]http&#58;//www&#46;mpc&#46;com&#46;br/sysfar/teste/choose&#46;jpg[/img:3axt6fd2] Clemerson
choose printer
Clemerson, PRINTER oPrn ... FROM USER
choose printer
Antonio, here he gave right: PRINT oPrn FROM USER NAME "Relatório Fechamento..." Preview and in this example where would put FROM USER? REPORT oRpt CAPTION "Clientes" TITLE "Cadastro de Clientes" ; HEADER "Data: " + DToC( Date() ) + ", Hora: " + Time() ; FOOTER "Página: " + Str( oRpt:nPage, 3 ) ; PREVIEW COLUMN TITLE "Código" DATA clientes->Codigo," "," " COLUMN TITLE "Nome","Endereco","Telefone" DATA clientes->Nome,clientes->Endereco,clientes->telefone COLUMN TITLE "Cidade","Bairro","Estado" DATA clientes->Cidade,clientes->Bairro,clientes->Estado END REPORT ACTIVATE REPORT oRpt FOR SUBST(Clientes->Nome,1,1)>=De .AND. SUBST(Clientes->Nome,1,1)<=Ate .AND. EMPTY(clientes->Convenio) Clemerson
choose printer
PRINT oPrn ... FROM USER REPORT oRpt ... TO DEVICE oPrn EMG
choose printer
[quote="EnricoMaria":qd6b3zjm]PRINT oPrn ... FROM USER REPORT oRpt ... TO DEVICE oPrn EMG[/quote:qd6b3zjm] he didn't work: REPORT oRpt CAPTION "Clientes" TITLE "Cadastro de Clientes" ; HEADER "Data: " + DToC( Date() ) + ", Hora: " + Time() ; FOOTER "Página: " + Str( oRpt:nPage, 3 ) ; [color=red:qd6b3zjm]TO DEVICE oRpt ;[/color:qd6b3zjm] PREVIEW . . . Clemerson
choose printer
try this <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> REPORT oRpt CAPTION "Clientes" TITLE "Cadastro de Clientes" ; HEADER "Data: " + DToC( Date() ) + ", Hora: " + Time() ; FOOTER "Página: " + Str( oRpt:nPage, 3 ) ; FROM USER ; PREVIEW Best Regard Areang
choose printer
This is a working sample: [code:2plzmn2d]#include "Fivewin&#46;ch" #include "Report&#46;ch" FUNCTION MAIN&#40;&#41; LOCAL oPrn, oRpt USE TEST PRINT oPrn FROM USER PREVIEW REPORT oRpt TO DEVICE oPrn COLUMN TITLE "LAST"; DATA FIELD -> last COLUMN TITLE "FIRST"; DATA FIELD -> first END REPORT ACTIVATE REPORT oRpt CLOSE RETURN NIL[/code:2plzmn2d] EMG
chooseFont
choosefont have the parameter? I ask it because on my pc I cannot see the colors and when I wish select a font it must me return all also the color I cannot see the color and the effect type Underlined or Strikethrough
chooseFont
Use un .INI para controlar las fuentes. [code=fw:2s3v9w7u]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> FW_NORMAL <span style="color: #000000;">400</span><br /><span style="color: #00D7D7;">#define</span> FW_BOLD &nbsp; <span style="color: #000000;">700</span><br /><br /><span style="color: #00D7D7;">#define</span> LOGPIXELSY &nbsp; &nbsp;<span style="color: #000000;">90</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oIni, cFont, aFont, aOldFont, hDC<br />&nbsp;<br />&nbsp; &nbsp;INI oIni FILE <span style="color: #ff0000;">"test.INI"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> cFont SECTION <span style="color: #ff0000;">"Stampanti"</span> ENTRY <span style="color: #ff0000;">"FontInStampa"</span> &nbsp;<span style="color: #0000ff;">OF</span> oIni <span style="color: #00C800;">DEFAULT</span> <span style="color: #ff0000;">"Arial| 0| -12| 0| 0| 0| 0| 0"</span><br />&nbsp; &nbsp;ENDINI<br />&nbsp;<br />&nbsp; &nbsp;aFont := Array<span style="color: #000000;">&#40;</span> <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aFont<span style="color: #000000;">&#91;</span>LF_FACENAME<span style="color: #000000;">&#93;</span> &nbsp; := ALLTRIM<span style="color: #000000;">&#40;</span>StrToken<span style="color: #000000;">&#40;</span>cFont,<span style="color: #000000;">1</span>,<span style="color: #ff0000;">"|"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aFont<span style="color: #000000;">&#91;</span>LF_WIDTH<span style="color: #000000;">&#93;</span> &nbsp; &nbsp; &nbsp;:= VAL<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cFont, <span style="color: #000000;">2</span>, <span style="color: #ff0000;">"|"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aFont<span style="color: #000000;">&#91;</span>LF_HEIGHT<span style="color: #000000;">&#93;</span> &nbsp; &nbsp; := Int<span style="color: #000000;">&#40;</span> -VAL<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cFont, <span style="color: #000000;">3</span>, <span style="color: #ff0000;">"|"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> * GetDeviceCaps<span style="color: #000000;">&#40;</span> hDC := GetDC<span style="color: #000000;">&#40;</span> GetDesktopWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, LOGPIXELSY <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">72</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ReleaseDC<span style="color: #000000;">&#40;</span> GetDesktopWindow<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, hDC <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aFont<span style="color: #000000;">&#91;</span>LF_WEIGHT<span style="color: #000000;">&#93;</span> &nbsp; &nbsp; := <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> VAL<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cFont, <span style="color: #000000;">4</span>, <span style="color: #ff0000;">"|"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span>, FW_BOLD, FW_NORMAL <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aFont<span style="color: #000000;">&#91;</span>LF_ESCAPEMENT<span style="color: #000000;">&#93;</span> := VAL<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cFont, <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"|"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;aFont<span style="color: #000000;">&#91;</span>LF_ITALIC<span style="color: #000000;">&#93;</span> &nbsp; &nbsp; := VAL<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cFont, <span style="color: #000000;">5</span>, <span style="color: #ff0000;">"|"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp; &nbsp;aFont<span style="color: #000000;">&#91;</span>LF_UNDERLINE<span style="color: #000000;">&#93;</span> &nbsp;:= VAL<span style="color: #000000;">&#40;</span> StrToken<span style="color: #000000;">&#40;</span> cFont, <span style="color: #000000;">6</span>, <span style="color: #ff0000;">"|"</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />&nbsp;<br />&nbsp; &nbsp;aOldFont := AClone<span style="color: #000000;">&#40;</span> aFont <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cFont := aFont<span style="color: #000000;">&#91;</span>LF_FACENAME<span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_WIDTH<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_HEIGHT<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_WEIGHT<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_ESCAPEMENT<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_ITALIC<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_UNDERLINE<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">// Test in entrata</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> cFont <span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp;aFont := ChooseFont<span style="color: #000000;">&#40;</span> aFont <span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp;cFont := aFont<span style="color: #000000;">&#91;</span>LF_FACENAME<span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_WIDTH<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> -aFont<span style="color: #000000;">&#91;</span>LF_HEIGHT<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_WEIGHT<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_ESCAPEMENT<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_ITALIC<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"|"</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_UNDERLINE<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">// Test in uscita</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> cFont <span style="color: #000000;">&#41;</span><br />&nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span> LF_FACENAME <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>, aFont, aOldFont <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2s3v9w7u] 
chooseFont
No [b:2sqxiega]this give me also the color and other effect [/b:2sqxiega] local aFont, nRGBColor := 0 aFont := ChooseFont( , @nRGBColor ) MsgInfo( nRGBColor )
chooseFont
If I call ChooseFont( ,@nColoreFont ) it show me this [img:yonz2bx8]https&#58;//i&#46;postimg&#46;cc/65WNcMBv/choosefont1&#46;png[/img:yonz2bx8] So I saw and can select also the effect Strikeoutline and UNDERLINE If make If I call ChooseFont() I cannot see the colors,and the effect [img:yonz2bx8]https&#58;//i&#46;postimg&#46;cc/bNBFngr8/choosefont2&#46;png[/img:yonz2bx8] for the color I can resolve I have a my function or I can use choosecolor() but for the effect I not Know how resolve I think choosefont can have another paramter to show only effect, where I can found an help for this ? I saw on source code choosefont can have these parameters // aPreviousFont, @nRGBColor, hPrinterDC, nFlags --> aNewFont I not found the possibility to show effect( StrikeOut and Underline ) some one can help me pls ? So I understood I can show the effect and also the colors but how I can disable only the colors ?
choosefont
En la ayuda oficial de FWH, al comentar la función choosefont() se indica "See IDE-->SOURCE for several samples used. "¿Donde se encuentra exactamente esa carpeta?
choosefont
Manuel,Esa carpeta debería estar en la carpeta raiz de la instalación de FWH. Es un ejemplo de un IDE tradicional que se incluye como ejemplo. De todas formas ahi no hay ejemplos de ChooseFont().Si buscas por ChooseFont() en FWH\samples encontrarás varios ejemplos. En concreto el más completo es samples\TestFon3.prgComentarte que la forma más sencilla de usar esa función automaticamente es hacer <oControl>:SelFont()
choosefont
Muchas gracias Antonio.
choosefont
When open choosefont ( on first time) not set the size of font I passed as you can see on this picture How it is possible ? [img:34oadcbj]https&#58;//i&#46;postimg&#46;cc/HjG3khDm/font&#46;png[/img:34oadcbj] [b:34oadcbj]the small test[/b:34oadcbj] [code=fw:34oadcbj]<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: #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, oFont, oBtn, oGet, nColor := <span style="color: #000000;">0</span><br />    <span style="color: #00C800;">local</span> cFontName :=<span style="color: #ff0000;">"Arial"</span>     ,;<br />          nFontSize := <span style="color: #000000;">8</span>     ,;<br />          lUnderline:= .f.     ,;<br />          lStrikeOut:= .f.     ,;<br />          lBold      := .f.    ,;<br />          lItalic     := .f.   ,;<br />          nColorFont   := <span style="color: #000000;">0</span>  <br />aFont:= <span style="color: #000000;">&#123;</span>,,,,nFontSize,lItalic,lUnderLine,lStrikeOut,,,,,,cFontName<span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> aGet:= array<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Call font"</span>  <span style="color: #0000ff;">size</span> <span style="color: #000000;">400</span>,<span style="color: #000000;">300</span><br /><br />     @ <span style="color: #000000;">10</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> cFontName  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd<br />     @ <span style="color: #000000;">30</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nFontSize <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"999"</span><br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">5</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">VAR</span> nColorFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br /><br />   @ <span style="color: #000000;">90</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Call Font"</span> ;<br />       <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>aFont  := Select_Font<span style="color: #000000;">&#40;</span>@aFont,@nColorFont<span style="color: #000000;">&#41;</span>,;<br />         cFontName:=aFont<span style="color: #000000;">&#91;</span>LF_FACENAME<span style="color: #000000;">&#93;</span>,;<br />         nFontSize:=<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_HEIGHT <span style="color: #000000;">&#93;</span>!=<span style="color: #00C800;">NIL</span>,FontHeightInPoints<span style="color: #000000;">&#40;</span> aFont<span style="color: #000000;">&#91;</span>LF_HEIGHT <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> ,;<br />         lBold:= IIF<span style="color: #000000;">&#40;</span>aFont<span style="color: #000000;">&#91;</span>LF_WEIGHT<span style="color: #000000;">&#93;</span>=<span style="color: #000000;">700</span>,.t.,.f.<span style="color: #000000;">&#41;</span> ,;<br />         lItalic:= aFont<span style="color: #000000;">&#91;</span>LF_ITALIC<span style="color: #000000;">&#93;</span>,;<br />         lUnderline:=aFont<span style="color: #000000;">&#91;</span>LF_UNDERLINE<span style="color: #000000;">&#93;</span>,;<br />         lStrikeout:=aFont<span style="color: #000000;">&#91;</span> LF_STRIKEOUT <span style="color: #000000;">&#93;</span>, ;<br />          aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />          aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />          aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;<br />          <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">PIXEL</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oWnd <span style="color: #0000ff;">center</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">function</span> Select_Font<span style="color: #000000;">&#40;</span>aFont,nColor<span style="color: #000000;">&#41;</span><br /> aFont  := ChooseFont<span style="color: #000000;">&#40;</span>aFont,@nColor<span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">return</span> aFont<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> <span style="color: #00C800;">function</span> FontHeightInPoints<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span> nPoints, hDC<br />   nPoints := <span style="color: #0000ff;">Round</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">72</span> / GetDeviceCaps<span style="color: #000000;">&#40;</span> hDC := GetDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">90</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   ReleaseDC<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, hDC <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">return</span> nPoints<br /><span style="color: #B900B9;">//----------------------------------------------------------------------------/</span></div>[/code:34oadcbj]
choosefont return values
..
choosefont return values
Mira \samples\UGO.PRG se sirve. [url:2dl4j3l6]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?t=13678[/url:2dl4j3l6] [url:2dl4j3l6]http&#58;//www&#46;fivetechsupport&#46;com/forums/viewtopic&#46;php?f=3&t=18075[/url:2dl4j3l6] [url:2dl4j3l6]http&#58;//www&#46;fivetechsoft&#46;com/files/utilities/nautilus/PRG/NAUTILUS&#46;PRG[/url:2dl4j3l6]
choosefont return values
[quote="karinha":1xucrtxl]Mira \samples\UGO.PRG se sirve. [url:1xucrtxl]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?t=13678[/url:1xucrtxl] [url:1xucrtxl]http&#58;//www&#46;fivetechsupport&#46;com/forums/viewtopic&#46;php?f=3&t=18075[/url:1xucrtxl] [url:1xucrtxl]http&#58;//www&#46;fivetechsoft&#46;com/files/utilities/nautilus/PRG/NAUTILUS&#46;PRG[/url:1xucrtxl][/quote:1xucrtxl] Karinha, I need to make this [img:1xucrtxl]https&#58;//i&#46;postimg&#46;cc/7YmmVh9k/1&#46;jpg[/img:1xucrtxl] the button must call this [img:1xucrtxl]https&#58;//i&#46;postimg&#46;cc/ZRtcRdbr/2&#46;jpg[/img:1xucrtxl] choose font must return me 1. fontname 2. sizes 3. color font 4. Bold 5. Italic 6. underline 7. strikeout On the dialog I see only fontname and size but in memory I must have all data to save them on dbf I'm searching a good procedure becaus ethe final user could not insert the font and as deafult it must set "Arial" Size -6 and all options false
chr
I 'm converting an oldest clipper function and I need to show this caracter on fwh I have on oldest source static spade := chr(6) static heart := chr(3) static club := chr(5) static diamond := chr(4) how I can converte these chr because on windows not see the symbols I tried also With HB_OemToAnsi and HB_ANsiToOem thanks
chr
You will have to use a font that contains those symbols. In windows there is a font called Symbol that has the 4 playing card suits in them. You can see them if you run charmap program in windows. In Symbol font they are decimal 167, 168, 169, and 170.
chr( 0 ) devuelto desde Funcion Harb
Antonio, En una oportunidad me respondiste a un problema que tengo con respecto a esto "hola " + chr( 0 ) + chr( 0 ) + "adios", o sea, los chr( 0 ) con respecto a este mismo tema, Te mando un proyecto en el cual desde Har se llama a una función que esta en C y desde esa funcion se llama a otra que esta en HAR, la cual dicha funcion solo devuelve el contenido de una cadena. Fijate, por favor, que cuando devuelve el contenido Return ( cRespuesta ) y la toma nueavamente el C dicha cadena tiene solamente lo que esta antes del chr( 0 ), lo que me indicaria que corta nuevamente la cadena, o por lo menos los restantes caracteres no los estaria pasando. Podrias indicarme como encarar el tema? porque la verdad necesito que se hagan esos pasos. Llamadas desde Har a funciones de C que devuelven cadenas que contienen el dichoso chr( 0 ). Muchas Gracias. Esto seria lo de har: [code:hfxm3jf5]#include "fivewin&#46;ch" //------------------------------------------------------------------------------ FUNCTION main&#40; &#41; LLAMADAHAR&#40;"GUSTAVO"&#41; RETURN &#40; NIL &#41; //------------------------------------------------------------------------------ FUNCTION FUNCION_HAR&#40; cComando &#41; LOCAL cRespuesta&#58;= "hola " + Chr&#40; 0 &#41; + Chr&#40; 0 &#41; + "Adios" RETURN &#40; cRespuesta &#41;[/code:hfxm3jf5] Esto seria lo de .c [code:hfxm3jf5]#include "winten&#46;h" #include "hbapi&#46;h" #include "windows&#46;h" #include "winten&#46;h" #include "hbapi&#46;h" #include "windows&#46;h" #include "hbvm&#46;h" #include "string&#46;h" #include "math&#46;h" HB_FUNC &#40; LLAMADAHAR &#41;&#123; char *comando = hb_parcx&#40;1&#41;; char *respuesta; hb_vmPushSymbol&#40; hb_dynsymGet&#40; "FUNCION_HAR"&#41; -> pSymbol &#41;; hb_vmPushNil&#40; &#41;; hb_vmPushString&#40; comando, strlen&#40; comando &#41; &#41;; hb_vmFunction&#40; 1 &#41;; respuesta = hb_parc&#40; -1 &#41;; MessageBox&#40;0, respuesta, "Contenido que devuelve funcion HAR", MB_OK&#41;; &#125;[/code:hfxm3jf5]
chr( 0 ) devuelto desde Funcion Harb
Gustavo, Tu código está bien. Es MessageBox() de Windows quien no te muestra los ceros. Haz lo siguiente y lo verás: [code:2oqwjb3i] respuesta = hb_parc&#40; -1 &#41; + 7; [/code:2oqwjb3i] A partir del 7 byte, está "Adios"
chr( 0 ) devuelto desde Funcion Harb
Antonio, La cosa parece ser no tan sencilla, probe lo que me dijiste igual que el ejemplo que me habias enviado. pero si tomas de ese codigo lo que trae la variable cRespuesta por lo menos a mi no me trae toda la cadena. O yo estoy loco.
chr( 0 ) devuelto desde Funcion Harb
Has probado a llamar a MessageBox() con el valor que te he indicado ?
chr( 0 ) devuelto desde Funcion Harb
Antonio, Si, si pones + 7 Muestra Adios, pero necesito que muestre "hola y adios", o sea toda la cadena que se le pasa. no solamente la segunda parte. Es mas, en este caso es "hola" + chr( 0 ) + chr( 0 ) + "Adios" pero si sería asi: [code:2u8pu5hf]"hola" + chr&#40; 0 &#41; + chr&#40; 0 &#41; + "Adios" + chr&#40; 0 &#41; + chr&#40; 0 &#41; + "De nuevo por aca?"[/code:2u8pu5hf] Como tendría que hacer?
chr( 0 ) devuelto desde Funcion Harb
Antonio, Estamos desarrollando un proyecto el cual esto es muy importante. Se puede de alguna manera generar esa cadena y tomarla desde funciones tantos C como xHar? Gracias.
chr( 0 ) devuelto desde Funcion Harb
Gustavo, Si necesitas usar MessageBox() para mostrar cadenas que contengan ceros, podrias cambiar los ceros por Chr( 255 ) y dejar solo el cero del final de cadena.
chr( 0 ) devuelto desde Funcion Harb
Antonio, Desde ya gracias por todo el tiempo que me estas dando, no necesito mostrar dicha cadena sino que necesito que esa cadena sea almacenada en una variable, para luego tratarla, en si la cadena guarda un contenido y luego tengo que ir tomando partes de ella (con substr(... ) ) para realizar diferentes tareas. El tema es que cuando quise realizar esto no lo pude hacer ya que la cadena me llegaba cortada a la variable que la pasaba. si me permitis te envio a tu correo personal las rutinas para que observer el trabajo que necesito hacer.
chronometer
where I can see a test for create or simulate a chronometer ( time seconds) ?
chronometer
[url:2kjpwm3k]https&#58;//www&#46;youtube&#46;com/watch?v=6WoodSgcGGU[/url:2kjpwm3k]
chronometer
[code=fw:25embsri]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">Static</span> oDlg<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Contador_Simples<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Cronometro Simples"</span> ;<br /><span style="color: #0000ff;">FROM</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">23</span>, <span style="color: #000000;">70</span><br /><br />oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />@ <span style="color: #000000;">004</span>, <span style="color: #000000;">002</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"Cronometro"</span> ;<br /><span style="color: #0000ff;">ACTION</span><span style="color: #000000;">&#40;</span> Cronometro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br /><span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">004</span>, <span style="color: #000000;">015</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Saida"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Cronometro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> Cronometro<br /><span style="color: #00C800;">Local</span> nHora_Calc<br /><span style="color: #00C800;">Local</span> nSegundos<br /><br /><span style="color: #B900B9;">// Calculo Sobre 24 Horas de um dia... Cada Hora Tem 3.600 Segundos.</span><br />Cronometro := <span style="color: #000000;">0</span> <span style="color: #B900B9;">// Contador de Segundos do Cronometro.</span><br />nHora_Calc := <span style="color: #000000;">0</span> <span style="color: #B900B9;">// Quantidade de Horas Que Ele Vai Achar.</span><br />nSegundos := <span style="color: #000000;">86400</span> <span style="color: #B900B9;">// Quantidade de Segundos Para Se Achar as Horas.</span><br /><br />@ <span style="color: #000000;">03</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Em Segundos "</span> <span style="color: #0000ff;">Of</span> oDlg<br /><br /><span style="color: #00C800;">For</span> Cronometro := <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> nSegundos <span style="color: #B900B9;">// -> Segundos a Calcular Para Horas</span><br /><br />nHora_Calc := <span style="color: #000000;">0</span><br /><br />oDlg:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">03</span>, <span style="color: #000000;">10</span>, Cronometro <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">// Formula Para Calcular em Horas...</span><br />nHora_Calc := <span style="color: #000000;">&#40;</span> nHora_Calc <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> Cronometro / <span style="color: #000000;">60</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">60</span><br /><br /><span style="color: #00C800;">Next</span> Cronometro<br /><br />@ <span style="color: #000000;">05</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">Say</span> <span style="color: #ff0000;">"Em Horas: "</span> <span style="color: #0000ff;">Of</span> oDlg <span style="color: #B900B9;">// Resultado: 24:00:00 hrs.</span><br /><br />@ <span style="color: #000000;">07</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">Say</span> nHora_Calc <span style="color: #0000ff;">Picture</span> <span style="color: #ff0000;">"99.99.99.99"</span> <span style="color: #0000ff;">Of</span> oDlg<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br />&nbsp;</div>[/code:25embsri] 
chronometer
[code=fw:noi8m641]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">Static</span> nGet<br /><span style="color: #00C800;">Static</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Velocimetro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oDlg, oGet<br /><br />nGet := <span style="color: #000000;">0</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> <span style="color: #000000;">20</span>, <span style="color: #000000;">60</span> ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mostrando um Velocimetro/Cronômetro"</span><br /><span style="color: #B900B9;">// Mostrando Barras Verticais no Mostrador(Display)</span><br /><br />oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br /><span style="color: #B900B9;">//--------------------Área do DisPlay do Cronômetro------------------------</span><br /><br /><span style="color: #B900B9;">/* Cada dígito é de 34 x 48 */</span><br /><br /><span style="color: #B900B9;">/* Copie o "DisPlay.Bmp" de \FW..\BitMaps\ Para o Seu Diretório de Uso */</span><br /><br />@ <span style="color: #000000;">002</span>, <span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Contador : '</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp1 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp2 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp3 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp4 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp5 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------</span><br /><br />oBmp1:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp1:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">80</span><br />oBmp1:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp1:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">97</span><br /><br />oBmp2:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp2:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">98</span><br />oBmp2:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp2:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">115</span><br /><br />oBmp3:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp3:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">116</span><br />oBmp3:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp3:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">133</span><br /><br />oBmp4:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp4:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">134</span><br />oBmp4:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp4:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">151</span><br /><br />oBmp5:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp5:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">152</span><br />oBmp5:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp5:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">169</span><br /><br /><span style="color: #B900B9;">//--------------------Área dos Say's---------------------------------------</span><br /><br />@ <span style="color: #000000;">002</span>, <span style="color: #000000;">030</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Evandro 1 Minuto"</span> <span style="color: #0000ff;">OF</span> oDlg<br />@ <span style="color: #000000;">2.5</span>, <span style="color: #000000;">030</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Tem 60 Segundos "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">004</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Use Sua Imaginação... Estás Trabalhando Com Horas..."</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">005</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Vai Contar até 180 Milésimos de Secs = 3 Segundos. "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">006</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"By João Santos - In FiveWin The Best! "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Todos os Direitos Reservados - 27/12/2003 "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//--------------------Área dos Botões--------------------------------------</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">002</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Aumentar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet++, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Diminuir"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet--, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">018</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Executar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">026</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Saida"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />EndDialog<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Fechar a Dialog</span><br />GlobalFree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By João Santos - São Paulo - Brazil - Recursos Liberados</span><br />ResAllFree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By Vagner Wirts .And. Elias Junior - Recursos Liberados</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> I<br /><br /><span style="color: #00C800;">Local</span> nSegundos<br /><br /><span style="color: #B900B9;">// Fórmula Para Calculo de Horas, Minutos, Segundos, Etc... Ex. Simples</span><br />nSegundos := Seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> <span style="color: #000000;">3600</span> + <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">60</span> * <span style="color: #000000;">3</span> <span style="color: #B900B9;">//( 3 = Qtde. de Segundos)</span><br /><br /><span style="color: #00C800;">For</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">&#40;</span> nSegundos - Seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, I <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Next</span> I<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Por_Bmp <span style="color: #000000;">&#40;</span> oBjeto1, oBjeto2, oBjeto3, oBjeto4, oBjeto5, nQuantidade <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> cNum := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nLen := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito1 := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito2 := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito3 := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito4 := <span style="color: #000000;">3</span><br /><span style="color: #00C800;">Local</span> nDigito5 := <span style="color: #000000;">3</span><br /><br />cNum := STR<span style="color: #000000;">&#40;</span> nQuantidade <span style="color: #000000;">&#41;</span><br />nLen := LEN<span style="color: #000000;">&#40;</span> cNum <span style="color: #000000;">&#41;</span><br /><br />nDigito1 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito1 = <span style="color: #000000;">0</span><br />oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span> <span style="color: #B900B9;">// 0 - (11 * 48) </span><br /><span style="color: #00C800;">Else</span><br />oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito1 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito2 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">Else</span><br />oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito2 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito3 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">Else</span><br />oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito3 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito4 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito4 = <span style="color: #000000;">0</span> .AND. nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">Else</span><br />oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito4 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito5 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />oBjeto5:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito5 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><br />oBjeto5:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto4:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<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 />&nbsp;</div>[/code:noi8m641] 
chronometer
[code=fw:2ob822t4]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><br /><span style="color: #00C800;">Static</span> nGet<br /><span style="color: #00C800;">Static</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Velocimetro<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> oDlg, oGet<br /><br />nGet := <span style="color: #000000;">0</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> <span style="color: #000000;">20</span>, <span style="color: #000000;">60</span> ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Mostrando um Velocimetro/Cronômetro"</span> ;<br /><span style="color: #0000ff;">STYLE</span> nOR<span style="color: #000000;">&#40;</span> DS_MODALFRAME <span style="color: #000000;">&#41;</span><br /><br />oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br /><span style="color: #B900B9;">//--------------------Área do DisPlay do Cronômetro------------------------</span><br /><br /><span style="color: #B900B9;">/* Cada dígito é de 34 x 48 */</span><br /><br /><span style="color: #B900B9;">/* Copie o "DisPlay.Bmp" de \FW..\BitMaps\ Para o Seu Diretório de Uso */</span><br /><br />@ <span style="color: #000000;">002</span>, <span style="color: #000000;">001</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">'Contador : '</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp1 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp2 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp3 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp4 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">000</span>, <span style="color: #000000;">000</span> BITMAP oBmp5 FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\B</span>itMaps<span style="color: #000000;">\D</span>isPlay.Bmp"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//-------------------------------------------------------------------------</span><br /><br />oBmp1:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp1:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">80</span><br />oBmp1:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp1:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">97</span><br /><br />oBmp2:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp2:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">98</span><br />oBmp2:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp2:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">115</span><br /><br />oBmp3:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp3:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">116</span><br />oBmp3:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp3:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">133</span><br /><br />oBmp4:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp4:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">134</span><br />oBmp4:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp4:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">151</span><br /><br />oBmp5:<span style="color: #000000;">nTop</span> := <span style="color: #000000;">28</span><br />oBmp5:<span style="color: #000000;">nLeft</span> := <span style="color: #000000;">152</span><br />oBmp5:<span style="color: #000000;">nBottom</span> := <span style="color: #000000;">52</span><br />oBmp5:<span style="color: #000000;">nRight</span> := <span style="color: #000000;">169</span><br /><br /><span style="color: #B900B9;">//--------------------Área dos Say's---------------------------------------</span><br /><br />@ <span style="color: #000000;">004</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Caro Usuário Tenha Calma, Espere o Contador Voltar!!"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">005</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Vai Contar até 99.999 e Depois Regressa o Cronômetro"</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">006</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"By João Santos - In FiveWin The Best! "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Todos os Direitos Reservados - 27/12/2003 "</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br /><span style="color: #B900B9;">//--------------------Área dos Botões--------------------------------------</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">002</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Aumentar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet++, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">010</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Diminuir"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nGet--, Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, nGet <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">018</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Executar"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> ;<br /><span style="color: #0000ff;">ACTION</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />@ <span style="color: #000000;">007</span>, <span style="color: #000000;">026</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Saida"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">End</span> <span style="color: #000000;">&#41;</span> CANCEL<br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />EndDialog<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Fechar a Dialog</span><br />GlobalFree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By Joã£o Santos - São Paulo - Brazil - Recursos Liberados</span><br />ResAllFree<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// By Vagner Wirts .And. Elias Junior - Recursos Liberados</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Executar_Bmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> I<br /><br /><span style="color: #00C800;">For</span> I = <span style="color: #000000;">1</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">99999</span> <span style="color: #B900B9;">// (Step By Step... Indo/Aumentando)</span><br /><br />Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, I <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Next</span> I<br /><br /><span style="color: #B900B9;">//InKey( 1 ) // Pode-se usar este comando velho do Clipper!</span><br />SysWait<span style="color: #000000;">&#40;</span> .<span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Eu somente uso FiveWin! He he he he...</span><br /><br /><span style="color: #00C800;">For</span> I = <span style="color: #000000;">99999</span> <span style="color: #0000ff;">To</span> <span style="color: #000000;">1</span> STEP <span style="color: #000000;">-1</span> <span style="color: #B900B9;">// (Step By Step... Voltando/Diminuindo)</span><br /><br />Por_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, oBmp4, oBmp5, I <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Next</span> I<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Troca_Bmp<span style="color: #000000;">&#40;</span> oBmp1, oBmp2, oBmp3, lSinal <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">STATIC</span> nCont := <span style="color: #000000;">0</span><br /><br /><span style="color: #00C800;">Local</span> nInc := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">1</span>, <span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nCam := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">-528</span>, <span style="color: #000000;">-527</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nTopeI := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">-576</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nTopeS := IIF<span style="color: #000000;">&#40;</span> lSinal, <span style="color: #000000;">0</span>, <span style="color: #000000;">-576</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> ! lSinal .And. nCont == <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> oBmp3:<span style="color: #000000;">nX</span> == nTopeI<br />oBmp3:<span style="color: #000000;">nX</span> := nTopeS<br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> oBmp2:<span style="color: #000000;">nX</span> == nTopeI<br />oBmp2:<span style="color: #000000;">nX</span> := nTopeS<br /><span style="color: #00C800;">Endif</span><br /><br /><span style="color: #00C800;">If</span> oBmp1:<span style="color: #000000;">nX</span> == nTopeI<br />oBmp1:<span style="color: #000000;">nX</span> := nTopeS<br /><span style="color: #00C800;">Endif</span><br /><br />oBmp3:<span style="color: #000000;">nX</span> -= nInc<br />nCont += nInc<br /><br /><span style="color: #00C800;">If</span> oBmp3:<span style="color: #000000;">nX</span> <= nCam<br />oBmp2:<span style="color: #000000;">nX</span> -= nInc<br /><span style="color: #00C800;">If</span> oBmp2:<span style="color: #000000;">nX</span> <= nCam<br />oBmp1:<span style="color: #000000;">nX</span> -= nInc<br /><span style="color: #00C800;">Endif</span><br /><span style="color: #00C800;">Endif</span><br /><br />oBmp3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBmp2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBmp1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//---------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> Por_Bmp <span style="color: #000000;">&#40;</span> oBjeto1, oBjeto2, oBjeto3, oBjeto4, oBjeto5, nQuantidade <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> cNum := SPACE<span style="color: #000000;">&#40;</span> <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nLen := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito1 := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito2 := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito3 := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito4 := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">Local</span> nDigito5 := <span style="color: #000000;">0</span><br /><br />cNum := STR<span style="color: #000000;">&#40;</span> nQuantidade <span style="color: #000000;">&#41;</span><br />nLen := LEN<span style="color: #000000;">&#40;</span> cNum <span style="color: #000000;">&#41;</span><br /><br />nDigito1 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">4</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito1 = <span style="color: #000000;">0</span><br />oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span> <span style="color: #B900B9;">// 0 - (11 * 48)</span><br /><span style="color: #00C800;">else</span><br />oBjeto1:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito1 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito2 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">3</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">else</span><br />oBjeto2:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito2 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito3 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">2</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">else</span><br />oBjeto3:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span>nDigito3 * <span style="color: #000000;">48</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito4 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen - <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">If</span> nDigito4 = <span style="color: #000000;">0</span> .AND. nDigito3 = <span style="color: #000000;">0</span> .AND. nDigito2 = <span style="color: #000000;">0</span> .AND. nDigito1 = <span style="color: #000000;">0</span><br />oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">-528</span><br /><span style="color: #00C800;">else</span><br />oBjeto4:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span>nDigito4 * <span style="color: #000000;">48</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Endif</span><br /><br />nDigito5 := VAL<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SUBSTR</span><span style="color: #000000;">&#40;</span> cNum, nLen, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />oBjeto5:<span style="color: #000000;">nX</span> := <span style="color: #000000;">0</span> - <span style="color: #000000;">&#40;</span> nDigito5 * <span style="color: #000000;">48</span> <span style="color: #000000;">&#41;</span><br /><br />oBjeto5:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto4:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto3:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto2:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br />oBjeto1:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span> .F. <span style="color: #000000;">&#41;</span><br /><br />SysRefresh<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 />&nbsp;</div>[/code:2ob822t4] 
chronometer
Antonio, do U use now VB ? Do U have left the fantastic world of Fivewin? Recently I reached the venereal age 50, <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> but I still enjoy the evening to create small programs and applications for my friends with Fivewin, ... thanks to you !!! <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> karinha, I need a string type "00:00:00:00" the first sample test is not valid for me the second sample test I not use bitmaps but only string I must give to a say control ...a string
chronometer
Dear Silvio, I don't use VB at all as Harbour provides me all that I need <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> I thought that a VB video could be inspiring for the user interface design
chronometer
Resolved !! [img:gfn19whw]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/04/crono&#46;jpg[/img:gfn19whw] But I see Hour : minutes : seconds Only I asked myself how I can make to have millisecs ? and partial ? I use the function SecsToTime( nTimeInSecs ) to show the chronometer how I can modify it to have also milliseconds ? function SecsToTime( nTimeInSecs ) local nHours := Int( nTimeInSecs / 3600 ) local nMins := Int( nTimeInSecs % 3600 / 60 ) local nSecs := Int( nTimeInSecs - ( nHours * 3600 ) - ( nMins * 60 ) ) return StrZero( nHours, 2 ) + ":" + StrZero( nMins, 2 ) + ":" + ; StrZero( nSecs, 2 )
chronometer
RESOLVED !!! [img:2md4asa8]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2016/04/mm&#46;jpg[/img:2md4asa8] AS FORMULA One also with Partial times
chronometer
[size=200:1fl7zcpl]Lunch ???[/size:1fl7zcpl] You can also change the reset button with "breakfast"
chronometer
yes of course Now I add also another button with "Dinner" only for you !!! p.s. Christmas is over for a long time, it's time to change the hat?
chronometer
Friends, there is My Tled class it make also a chronometer
chronometer
I still remember the beautiful screenshots posted by Mr. Silvio long time back. You can see if his solution meets your requirements. Mr. Euclides, Nice changes. Taking forward your changes I altered my program. Please check if this is ok with you. [code=fw:zdg1o75x]<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> nSecsLapsed<br /><br />   nSecsLapsed := ChronoMeter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   ? nSecsLapsed, SECTOTIME<span style="color: #000000;">&#40;</span> nSecsLapsed, .t. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> ChronoMeter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oSay, oBtnStart, oBtnStop, oTimer, oFont, oBold<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nStartSec, nSecsLapsed := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-32</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">120</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">BTNBMP</span> oBtnStart <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"START"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span> nStartSec == <span style="color: #00C800;">nil</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nStartSec := SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBtnStop:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">170</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || SECTOTIME<span style="color: #000000;">&#40;</span> nSecsLapsed, .t. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">160</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">CENTER</span> VCENTER <span style="color: #0000ff;">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_HGREEN, CLR_BLACK<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">360</span> <span style="color: #0000ff;">BTNBMP</span> oBtnStop <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nStartSec == <span style="color: #00C800;">nil</span> .and. nSecsLapsed > <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"CLEAR"</span>, <span style="color: #ff0000;">"STOP"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT <span style="color: #0000ff;">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span> nStartSec != <span style="color: #00C800;">nil</span> .or. nSecsLapsed > <span style="color: #000000;">0</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nStartSec == <span style="color: #00C800;">nil</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nSecsLapsed > <span style="color: #000000;">0</span>, nSecsLapsed := <span style="color: #000000;">0</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> nSecsLapsed := SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nStartSec, nStartSec := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBtnStart:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bInit</span> := <||<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nStartSec == <span style="color: #00C800;">nil</span>,,<span style="color: #000000;">&#40;</span> nSecsLapsed := SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nStartSec,oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimer<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> oTimer:<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 />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><span style="color: #00C800;">return</span> nSecsLapsed<br /> </div>[/code:zdg1o75x]
chronometer
Mr. Rao Can you set until ten stops ? on my class I can make Local cMessage:= "1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890" oLed2:= TLed():New(20, 10, oDlg,cMessage) @ 19, 10 say "sample TLed with Chronometer" of oDlg size 100,10 oLed2:nLedLines := 0 // one linea [b:1hn7c876] oLed2:lChronometer := .t.[/b:1hn7c876] oLed2:nLedHeight := 8 oLed2:nLedWidth := 6 oLed2:nLedSpace := 2 @ 20,10 Button "Stop" size 60,20 of oDlg ACTION [b:1hn7c876](oLed2:StopChrono() )[/b:1hn7c876] @ 20,22 Button "Go" size 60,20 of oDlg ACTION [b:1hn7c876]oLed2:PlayChrono()[/b:1hn7c876] @ 20,34 Button "Reset" size 60,20 of oDlg ACTION[b:1hn7c876] oLed2:ResetChrono()[/b:1hn7c876] @ 20,50 Button "Save partials" size 60,20 of oDlg [b:1hn7c876]ACTION ( Aadd(aPartial,oLed2:cTxtLin1) )[/b:1hn7c876] @ 20,70 Button "Show Partials" size 60,20 of oDlg ACTION [b:1hn7c876]xbrowse(aPartial)[/b:1hn7c876] [img:1hn7c876]https&#58;//i&#46;postimg&#46;cc/DwP3jPHK/tled&#46;jpg[/img:1hn7c876] download from <!-- m --><a class="postlink" href="https://github.com/silviofalconi/Tled">https://github.com/silviofalconi/Tled</a><!-- m -->
chronometer
Mr. Silvio You already have it.
chronometer
<!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
chronometer
Silvio, did you try compile TLED with Harbour?? I strongly REFUSE to use xHarbour... Euclides
chronometer
??? why ? I compile with xharbour and harbour what's mean ?
chronometer
hi to all I need a chronometer in a dialog. two buttons, one start and one stop and a field with chornometer: START HH:MM:SS STOP any example? thank you
chronometer
[code=fw:orrdo9f3]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oSay, oTimer, oFont, oBold, nSecs<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-34</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">120</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"START"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nSecs := SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">170</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nSecs == <span style="color: #00C800;">nil</span>, <span style="color: #ff0000;">"00:00:00"</span>, SECTOTIME<span style="color: #000000;">&#40;</span> SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nSecs <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">160</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">CENTER</span> VCENTER <span style="color: #0000ff;">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_YELLOW, CLR_CYAN<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">360</span> <span style="color: #0000ff;">BTNBMP</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"STOP"</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nSecs := <span style="color: #00C800;">nil</span>, oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bInit</span> := <||<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nSecs == <span style="color: #00C800;">nil</span>,,oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimer<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> oTimer:<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 />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:orrdo9f3]
chronometer
very good mr.Rao thank you!
chronometer
Anyway, thanks Mr. Rao! I have a very complicated routine to do almost the same thing... (back from the Clipper code) I changed a little bit the code with your permission (I hope) and works fine to me. It shows the result time (in cents of seconds) and resets the value with the second "STOP" It can be tested just hiting the Enter Key. [code=fw:2r2xcv38]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oDlg, oSay, oTimer, oFont, oBold, nSecs, cTimStop:=<span style="color: #ff0000;">"00:00:00::00"</span>, oBt1, oBt2<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-34</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">120</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">BTNBMP</span> oBt1 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"START"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nSecs := SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBt2:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">155</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nSecs == <span style="color: #00C800;">nil</span>, cTimStop, SECTOTIME<span style="color: #000000;">&#40;</span> SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nSecs,.T. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">190</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">CENTER</span> VCENTER <span style="color: #0000ff;">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_YELLOW, CLR_CYAN<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">375</span> <span style="color: #0000ff;">BTNBMP</span> oBt2 <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"STOP"</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> cTimStop := iif<span style="color: #000000;">&#40;</span>nSecs = <span style="color: #00C800;">nil</span>, <span style="color: #000000;">&#40;</span> oBt1:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"00:00:00::00"</span><span style="color: #000000;">&#41;</span>, &nbsp;SECTOTIME<span style="color: #000000;">&#40;</span> SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nSecs,.T.<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>, nSecs := <span style="color: #00C800;">nil</span> , oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bInit</span> := <||<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nSecs == <span style="color: #00C800;">nil</span>,,oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimer<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> oTimer:<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 />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2r2xcv38] Always is nice to see (and learn) your solutions... Regards, Euclides
chronometer
hi mr Rao, your function works good but what happened when I press started button at 11:59:40 pm ? reset Seconds? Users have to use this chrono all days, 24/24 7/7, night and day and will be work always.
chronometer
[quote="damianodec":1vgukvk1]hi mr Rao, your function works good but what happened when I press started button at 11:59:40 pm ? reset Seconds? Users have to use this chrono all days, 24/24 7/7, night and day and will be work always.[/quote:1vgukvk1] Please try: [code=fw:1vgukvk1]<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 />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nSecsLapsed<br /><br />&nbsp; &nbsp;nSecsLapsed := ChronoMeter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;? nSecsLapsed, SECTOTIME<span style="color: #000000;">&#40;</span> nSecsLapsed, .t. <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> ChronoMeter<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oDlg, oSay, oBtnStart, oBtnStop, oTimer, oFont, oBold<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nStartSec, nSecsLapsed := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-16</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Segoe UI"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-32</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">120</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">40</span> <span style="color: #0000ff;">BTNBMP</span> oBtnStart <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"START"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span> nStartSec == <span style="color: #00C800;">nil</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> nStartSec := SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBtnStop:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">170</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || SECTOTIME<span style="color: #000000;">&#40;</span> nSecsLapsed, .t. <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">160</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">CENTER</span> VCENTER <span style="color: #0000ff;">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_HGREEN, CLR_BLACK<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">40</span>,<span style="color: #000000;">360</span> <span style="color: #0000ff;">BTNBMP</span> oBtnStop <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nStartSec == <span style="color: #00C800;">nil</span> .and. nSecsLapsed > <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"CLEAR"</span>, <span style="color: #ff0000;">"STOP"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span>,<span style="color: #000000;">40</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg FLAT <span style="color: #0000ff;">UPDATE</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">WHEN</span> nStartSec != <span style="color: #00C800;">nil</span> .or. nSecsLapsed > <span style="color: #000000;">0</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nStartSec == <span style="color: #00C800;">nil</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nSecsLapsed > <span style="color: #000000;">0</span>, nSecsLapsed := <span style="color: #000000;">0</span>, <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> nSecsLapsed := SecsLapsed<span style="color: #000000;">&#40;</span> nStartSec <span style="color: #000000;">&#41;</span>, nStartSec := <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, ;<br />&nbsp; &nbsp; &nbsp; oDlg:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, oBtnStart:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">bInit</span> := <||<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">100</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nStartSec == <span style="color: #00C800;">nil</span>,,<span style="color: #000000;">&#40;</span> nSecsLapsed := SecsLapsed<span style="color: #000000;">&#40;</span> nStartSec <span style="color: #000000;">&#41;</span>,oSay:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimer<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VALID</span> <span style="color: #000000;">&#40;</span> oTimer:<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 />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><span style="color: #00C800;">return</span> nSecsLapsed<br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SecsLapsed<span style="color: #000000;">&#40;</span> nStart <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nLapsed := <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> nStart != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; nLapsed &nbsp;:= SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nStart<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> nLapsed < <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLapsed &nbsp; += <span style="color: #000000;">86400.0</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> nLapsed<br />&nbsp;</div>[/code:1vgukvk1]
chronometer
Sorry, I saw there is a oldest release on github and now there is the right release of Tled 1.00 run also on Harbour [img:3u0ohoea]https&#58;//i&#46;postimg&#46;cc/Zqp0yycx/tled&#46;jpg[/img:3u0ohoea] [code=fw:3u0ohoea]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><span style="color: #00C800;">CLASS</span> TLed <span style="color: #0000ff;">FROM</span> TControl<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;CLASSDATA lRegistered AS LOGICAL<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;lBorder &nbsp; &nbsp; &nbsp; &nbsp; AS LOGICAL <span style="color: #0000ff;">INIT</span> .T.<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nBorderLine &nbsp; &nbsp; AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">3</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nColorBorder &nbsp; &nbsp;AS NUMERIC <span style="color: #0000ff;">INIT</span> &nbsp;nRGB<span style="color: #000000;">&#40;</span> &nbsp; <span style="color: #000000;">3</span>, &nbsp;<span style="color: #000000;">56</span>, <span style="color: #000000;">147</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nColorBack &nbsp; &nbsp; &nbsp;AS NUMERIC <span style="color: #0000ff;">INIT</span> &nbsp;nRGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">89</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">214</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nColorLedOFF &nbsp; &nbsp;AS NUMERIC <span style="color: #0000ff;">INIT</span> &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">125</span>, <span style="color: #000000;">165</span>, <span style="color: #000000;">224</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nColorLedON &nbsp; &nbsp; AS NUMERIC <span style="color: #0000ff;">INIT</span> &nbsp;nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">247</span>, <span style="color: #000000;">192</span>, <span style="color: #000000;">91</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nLedWidth &nbsp; &nbsp; &nbsp; AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">3</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nLedHeight &nbsp; &nbsp; &nbsp;AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">5</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nLedSpace &nbsp; &nbsp; &nbsp; AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cTxtLin1 &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">"Linea 1"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cTxtLin2 &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">"Linea 2"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cMessage &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> aLinea1 &nbsp; &nbsp; &nbsp; &nbsp; AS ARRAY &nbsp; <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> aLinea2 &nbsp; &nbsp; &nbsp; &nbsp; AS ARRAY &nbsp; <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> lBlink &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AS LOGICAL <span style="color: #0000ff;">INIT</span> .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> lStatus &nbsp; &nbsp; &nbsp; &nbsp; AS LOGICAL <span style="color: #0000ff;">INIT</span> .F. <span style="color: #B900B9;">//internal</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> lTimeDate &nbsp; &nbsp; &nbsp; AS LOGICAL <span style="color: #0000ff;">INIT</span> .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> lStatusTime &nbsp; &nbsp; AS LOGICAL <span style="color: #0000ff;">INIT</span> .F. &nbsp;<span style="color: #B900B9;">//internal</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> lBeep &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AS LOGICAL <span style="color: #0000ff;">INIT</span> .F.<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;oTimer &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;READONLY &nbsp; <span style="color: #B900B9;">//internal</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;oOut &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;READONLY &nbsp; &nbsp;<span style="color: #B900B9;">//internal</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nInterval &nbsp; &nbsp; &nbsp; AS NUMERIC <span style="color: #0000ff;">INIT</span> &nbsp;<span style="color: #000000;">700</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nLedLines &nbsp; &nbsp; &nbsp; AS NUMERIC <span style="color: #0000ff;">INIT</span> &nbsp;<span style="color: #000000;">2</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp;nLedCharacters &nbsp;AS NUMERIC <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">20</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; lChronometer &nbsp; AS LOGICAL <span style="color: #0000ff;">INIT</span> .F.<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; oTimerKrono &nbsp; &nbsp;READONLY<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; n_secs &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//FOR CHRONPMETER</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nTop, nLeft, oWnd, cMessage, nBorderLine, lPixel, lBorder , nColorBack <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> nId, oWnd <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br />&nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp;<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 />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> _FillRect<span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight, nColor <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Initiate<span style="color: #000000;">&#40;</span> hDlg <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">Initiate</span><span style="color: #000000;">&#40;</span> hDlg <span style="color: #000000;">&#41;</span>, ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> CheckLines<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> GetCode<span style="color: #000000;">&#40;</span> cChar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Resize<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> AdjustText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> TimeDate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Blink<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> StopTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> StopBlink<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">oOut</span>:<span style="color: #000000;">deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Chronometer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> StopChrono<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">oTimerKrono</span>:<span style="color: #000000;">deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ResetChrono<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">StopChrono</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">cTxtLin1</span>:=space<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"00:00:00:000"</span>, ::<span style="color: #0000ff;">refresh</span><span style="color: #000000;">&#40;</span>.t.<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> PlayChrono<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span>::<span style="color: #000000;">lChronometer</span>, ::<span style="color: #000000;">StopChrono</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">cTxtLin1</span>:=space<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"00:00:00:000"</span>, ::<span style="color: #000000;">n_secs</span>:=seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,::<span style="color: #000000;">oTimerKrono</span>:<span style="color: #0000ff;">activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; <span style="color: #00C800;">ENDCLASS</span><br /><br /><br /><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nTop, nLeft, oWnd, cMessage, nBorderLine, lPixel, lBorder , nColorBack<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TLed<br /><br /><span style="color: #00C800;">DEFAULT</span> &nbsp;nTop &nbsp; &nbsp; := <span style="color: #000000;">0</span>, nLeft := <span style="color: #000000;">0</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nBorderLine := <span style="color: #000000;">3</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lPixel &nbsp; := .f. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lBorder &nbsp;:= .t. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nColorBack := nRGB<span style="color: #000000;">&#40;</span> &nbsp;<span style="color: #000000;">89</span>, <span style="color: #000000;">135</span>, <span style="color: #000000;">214</span> <span style="color: #000000;">&#41;</span> ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cMessage &nbsp; := <span style="color: #ff0000;">"Fivewin TLed &nbsp; &nbsp; &nbsp; &nbsp;(*) For Harbour (*)"</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nStyle</span> &nbsp; &nbsp;= nOR<span style="color: #000000;">&#40;</span> WS_CHILD, WS_VISIBLE, WS_TABSTOP <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nId</span> &nbsp; &nbsp; &nbsp; = ::<span style="color: #000000;">GetNewId</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp; &nbsp;= oWnd<br /><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nTop</span> &nbsp; &nbsp; &nbsp;= <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lPixel, nTop, nTop * SAY_CHARPIX_H <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nLeft</span> &nbsp; &nbsp; = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lPixel, nLeft, nLeft * SAY_CHARPIX_W <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">cMessage</span> &nbsp;= cMessage<br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nLedLines</span> = <span style="color: #000000;">2</span><br /><br /><br /><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">AdjustText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;* &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span> nOR<span style="color: #000000;">&#40;</span> CS_VREDRAW, CS_HREDRAW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">n_secs</span>:=seconds<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Create</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 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 />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lDrag</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">CheckDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> nId, oWnd <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TLed<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> StopTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TLed<br />&nbsp; &nbsp; <span style="color: #00C800;">IF</span> &nbsp;::<span style="color: #000000;">oTimer</span> != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oTimer</span>:<span style="color: #000000;">deactivate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">/*<br />&nbsp;METHOD Paint() &nbsp; &nbsp; &nbsp;CLASS TLed<br />&nbsp; &nbsp; Local aRect &nbsp; &nbsp; &nbsp; := GetClientRect( ::hWnd )<br />&nbsp; &nbsp; Local nMidLine,hPen,hOldPen<br />&nbsp; &nbsp; Local k,w<br />&nbsp; &nbsp; Local nLinea,nCar,aChar,cFila<br />&nbsp; &nbsp; Local nLineax:= 0<br />&nbsp; &nbsp; Local nLineay:= 0<br />&nbsp; &nbsp; Local nColorPixel<br />&nbsp; &nbsp; Local hDC &nbsp; &nbsp; &nbsp; &nbsp; := ::hDC<br />&nbsp; &nbsp; Local aInfo &nbsp; &nbsp; &nbsp; := ::DispBegin()<br /><br />&nbsp; &nbsp; &nbsp;//background<br />&nbsp; &nbsp;::_FillRect( aRect[1], aRect[2], aRect[3],aRect[4], ::nColorBack )<br /><br /><br /><br />&nbsp; &nbsp; &nbsp;//control and create aLinea<br />&nbsp; &nbsp;::CheckLines()<br /><br /><br /><br />&nbsp;For nHeight := 0 to ::nLedLines &nbsp;// 2 lines<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aLinea := IIF( nHeight == 0, ::aLinea1, ::aLinea2 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For nWidth := 0 to (::nLedCharacters-1) &nbsp; &nbsp; // 20 characters<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aChar := aLinea[nWidth + 1]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For k := 0 to 7 &nbsp; &nbsp;// 8 pixel<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLineax := ( nHeight * ( ( ::nLedHeight * 9 ) + ( ::nLedSpace * 8 ) ) ) + ( k * ( ::nLedHeight + &nbsp;::nLedSpace ) ) + ( ::nLedHeight + 3 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFila := aChar[k+1]<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;For w := 0 to 4<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLineay := ( nWidth * ( ( ::nLedWidth * 7 ) + ( ::nLedSpace * 4 ) ) ) + ( w * ( ::nLedWidth + ::nLedSpace ) ) + ( ::nLedHeight + 3 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColorPixel := IIF( cFila[w+1] == SYMBOL_LED, ::nColorLedON, ::nColorLedOFF)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillSolidRect(::hDC, { nLineax, nLineay, nLineax + ::nLedWidth, nLineay + ::nLedHeight} , nColorPixel)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Next<br />&nbsp; &nbsp; &nbsp; Next<br /><br /><br /><br /><br />&nbsp; &nbsp;//Border<br /><br />&nbsp; If ::lBorder<br />&nbsp; &nbsp; &nbsp; hPen := CreatePen( 0, ::nBorderLine, ::nColorBorder )<br />&nbsp; &nbsp; &nbsp; hOldPen := SelectObject( ::hDc, hPen )<br />&nbsp; &nbsp; &nbsp; nMidLine := ::nBorderLine / 2<br />&nbsp; &nbsp; &nbsp; MoveTo( ::hDC, nMidLine, nMidLine )<br />&nbsp; &nbsp; &nbsp; LineTo(::hDC, nMidLine, ::nHeight - nMidLine , hPen )<br />&nbsp; &nbsp; &nbsp; LineTo(::hDC, ::nWidth - nMidLine, ::nHeight - nMidLine , hPen )<br />&nbsp; &nbsp; &nbsp; LineTo(::hDC, ::nWidth - nMidLine , nMidLine, hPen )<br />&nbsp; &nbsp; &nbsp; LineTo(::hDC, nMidLine, nMidLine, 0, hPen )<br />&nbsp; &nbsp; ENDIF<br /><br /><br /><br /><br />&nbsp; &nbsp;::DispEnd( aInfo )<br />&nbsp; &nbsp;return 0<br />&nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CLASS</span> TLed<br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> aRect &nbsp; &nbsp; &nbsp; := GetClientRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> nMidLine,hPen,hOldPen<br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> k,w<br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> aChar,cFila<br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> nLineax:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> nLineay:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> nColorPixel<br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> hDC &nbsp; &nbsp; &nbsp; &nbsp; := ::<span style="color: #000000;">hDC</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> nHeight,nWidth<br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> aLinea<br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> aInfo &nbsp; &nbsp; &nbsp; := ::<span style="color: #000000;">DispBegin</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">//background</span><br />&nbsp; &nbsp;::_FillRect<span style="color: #000000;">&#40;</span> aRect<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>, aRect<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>,aRect<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>, ::<span style="color: #000000;">nColorBack</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; If ::lBorder<br />&nbsp; &nbsp; &nbsp; hPen := CreatePen( 0, ::nBorderLine, ::nColorBorder )<br />&nbsp; &nbsp; &nbsp; hOldPen := SelectObject( ::hDc, hPen )<br />&nbsp; &nbsp; &nbsp; nMidLine := ::nBorderLine / 2<br />&nbsp; &nbsp; &nbsp; MoveTo( ::hDC, nMidLine, nMidLine )<br />&nbsp; &nbsp; &nbsp; LineTo(::hDC, nMidLine, ::nHeight - nMidLine , hPen )<br />&nbsp; &nbsp; &nbsp; LineTo(::hDC, ::nWidth - nMidLine, ::nHeight - nMidLine , hPen )<br />&nbsp; &nbsp; &nbsp; LineTo(::hDC, ::nWidth - nMidLine , nMidLine, hPen )<br />&nbsp; &nbsp; &nbsp; LineTo(::hDC, nMidLine, nMidLine, 0, hPen )<br />&nbsp; &nbsp;ENDIF<br />&nbsp; &nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBorder</span><br />&nbsp; &nbsp; &nbsp;BoxEx<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;">nColorBorder</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//control and create aLinea</span><br />&nbsp; &nbsp;::<span style="color: #000000;">CheckLines</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">For</span> nHeight := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">nLedLines</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// 2 lines</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aLinea := IIF<span style="color: #000000;">&#40;</span> nHeight == <span style="color: #000000;">0</span>, ::<span style="color: #000000;">aLinea1</span>, ::<span style="color: #000000;">aLinea2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">For</span> nWidth := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">nLedCharacters</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp; <span style="color: #B900B9;">// 20 characters</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aChar := aLinea<span style="color: #000000;">&#91;</span>nWidth + <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">For</span> k := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">7</span> &nbsp; &nbsp;<span style="color: #B900B9;">// 8 pixel</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nLineax := <span style="color: #000000;">&#40;</span> nHeight * <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedHeight</span> * <span style="color: #000000;">9</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedSpace</span> * <span style="color: #000000;">8</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> k * <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedHeight</span> + &nbsp;::<span style="color: #000000;">nLedSpace</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedHeight</span> + <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cFila := aChar<span style="color: #000000;">&#91;</span>k<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">For</span> w := <span style="color: #000000;">0</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nLineay := <span style="color: #000000;">&#40;</span> nWidth * <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedWidth</span> * <span style="color: #000000;">7</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedSpace</span> * <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> w * <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedWidth</span> + ::<span style="color: #000000;">nLedSpace</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedHeight</span> + <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//XHARBOUR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * &nbsp;nColorPixel := IIF<span style="color: #000000;">&#40;</span> cFila<span style="color: #000000;">&#91;</span>w<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span> == SYMBOL_LED, ::<span style="color: #000000;">nClrLedON</span>, ::<span style="color: #000000;">nClrLedOFF</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">//xharbour</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//HARBOUR</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nColorPixel := &nbsp;IIF<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>cFila, w<span style="color: #000000;">+1</span>, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> &nbsp;== SYMBOL_LED, ::<span style="color: #000000;">nColorLedON</span>, ::<span style="color: #000000;">nColorLedOFF</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FillSolidRect<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">&#123;</span> nLineax, nLineay, nLineax + ::<span style="color: #000000;">nLedWidth</span>, nLineay + ::<span style="color: #000000;">nLedHeight</span><span style="color: #000000;">&#125;</span> , nColorPixel<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Next</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Next</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Next</span><br />&nbsp; &nbsp;::<span style="color: #000000;">DispEnd</span><span style="color: #000000;">&#40;</span> aInfo <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #000000;">0</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><br />&nbsp; <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TLed<br /><br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">Resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lTimeDate</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> ::<span style="color: #000000;">oTimer</span> <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">500</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #0000ff;">ACTION</span> ::<span style="color: #000000;">TimeDate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> ::<span style="color: #000000;">oTimer</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lBlink</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> ::<span style="color: #000000;">oOut</span> <span style="color: #0000ff;">INTERVAL</span> ::<span style="color: #000000;">nInterval</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #0000ff;">ACTION</span> ::<span style="color: #000000;">Blink</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> ::<span style="color: #000000;">oOut</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lChronometer</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> ::<span style="color: #000000;">oTimerKrono</span> <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">500</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWnd</span> <span style="color: #0000ff;">ACTION</span> ::<span style="color: #000000;">Chronometer</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> ::<span style="color: #000000;">oTimerKrono</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><br />&nbsp;<span style="color: #00C800;">METHOD</span> Blink<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TLed<br />&nbsp; &nbsp; <span style="color: #00C800;">STATIC</span> nSaveON, nSaveOFF<br />&nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> nSaveON := &nbsp;::<span style="color: #000000;">nColorLedON</span><br />&nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> nSaveOFF := ::<span style="color: #000000;">nColorLedOFF</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lStatus</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nColorLedON</span> := nSaveON<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nColorLedON</span> := nSaveOFF<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; IIF<span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lStatus</span> := ! ::<span style="color: #000000;">lStatus</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> &nbsp;<span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> TimeDate<span style="color: #000000;">&#40;</span>lBeep,nLang<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TLed<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> cDate:= &nbsp;DtoS<span style="color: #000000;">&#40;</span> Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> aItalian:= &nbsp;<span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Gennaio"</span>, <span style="color: #ff0000;">"Febbraio"</span>, <span style="color: #ff0000;">"Marzo"</span>, <span style="color: #ff0000;">"Aprile"</span>, <span style="color: #ff0000;">"Maggio"</span>,<span style="color: #ff0000;">"Giugno"</span>, <span style="color: #ff0000;">"Luglio"</span>, <span style="color: #ff0000;">"Agosto"</span>, <span style="color: #ff0000;">"Settembre"</span>, <span style="color: #ff0000;">"Ottobre"</span>, <span style="color: #ff0000;">"Novembre"</span>, <span style="color: #ff0000;">"Dicembre"</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> aSpanish := <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Enero"</span>, <span style="color: #ff0000;">"Febrero"</span>, <span style="color: #ff0000;">"Marzo"</span>, <span style="color: #ff0000;">"Abril"</span>, <span style="color: #ff0000;">"Mayo"</span>, <span style="color: #ff0000;">"Abril"</span>,<span style="color: #ff0000;">"Junio"</span>, <span style="color: #ff0000;">"Julio"</span>, <span style="color: #ff0000;">"Agosto"</span>, <span style="color: #ff0000;">"Septiembre"</span>, <span style="color: #ff0000;">"Octubre"</span>, <span style="color: #ff0000;">"Noviembre"</span>, <span style="color: #ff0000;">"Diciembre"</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> aEnglish &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"January"</span>, <span style="color: #ff0000;">"Febrary"</span>, <span style="color: #ff0000;">"March"</span>, <span style="color: #ff0000;">"April"</span>, <span style="color: #ff0000;">"May"</span>, <span style="color: #ff0000;">"June"</span>, <span style="color: #ff0000;">"July"</span>, <span style="color: #ff0000;">"August"</span>,<span style="color: #ff0000;">"September"</span>, <span style="color: #ff0000;">"October"</span>, <span style="color: #ff0000;">"November"</span>, <span style="color: #ff0000;">"December"</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Local</span> cMessage<br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">default</span> nlang := <span style="color: #000000;">1</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nLang = <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aMesi &nbsp;:= &nbsp;aItalian<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nLang = <span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aMesi &nbsp;:= &nbsp;aEnglish<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nLang = <span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aMesi &nbsp;:= &nbsp;aSpanish<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><br /><br /><br /><br />&nbsp; &nbsp; cMessage := <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> cDate, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">" | "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aMesi<span style="color: #000000;">&#91;</span> Val<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cDate, <span style="color: #000000;">5</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" | "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cDate, <span style="color: #000000;">4</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lStatusTime</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin1</span> := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#41;</span> + Time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin2</span> := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> - Len<span style="color: #000000;">&#40;</span> cMessage<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> /<span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + cMessage<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lBeep</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Msgbeep<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; * ::<span style="color: #000000;">resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;IIF<span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lStatusTime</span> := ! ::<span style="color: #000000;">lStatusTime</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> &nbsp;<span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Chronometer<span style="color: #000000;">&#40;</span>cMessage<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TLed<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">default</span> cMessage := <span style="color: #ff0000;">"Chronometer Led "</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lStatusTime</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin1</span> := Space<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> + CalTime<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">n_Secs</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin2</span> := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> - Len<span style="color: #000000;">&#40;</span> cMessage<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> /<span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + cMessage<br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nLedLines</span> = <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; * ::<span style="color: #000000;">resize</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;IIF<span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">lStatusTime</span> := ! ::<span style="color: #000000;">lStatusTime</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> &nbsp;<span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">Function</span> CalTime<span style="color: #000000;">&#40;</span>n_Secs<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> _nTotSecs:=SECONDS<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>-n_Secs<br /><span style="color: #00C800;">Return</span> <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>SecsToTime<span style="color: #000000;">&#40;</span>_nTotSecs<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">16</span><span style="color: #000000;">&#41;</span><br /><br /><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> SecsToTime<span style="color: #000000;">&#40;</span> nTimeInSecs <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nHours := Int<span style="color: #000000;">&#40;</span> nTimeInSecs / <span style="color: #000000;">3600</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nMins &nbsp;:= Int<span style="color: #000000;">&#40;</span> nTimeInSecs % <span style="color: #000000;">3600</span> / <span style="color: #000000;">60</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nSecs &nbsp;:= Int<span style="color: #000000;">&#40;</span> nTimeInSecs - <span style="color: #000000;">&#40;</span> nHours * <span style="color: #000000;">3600</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">&#40;</span> nMins * <span style="color: #000000;">60</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nMillisec := Int<span style="color: #000000;">&#40;</span>GETTICKCOUNT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">return</span> StrZero<span style="color: #000000;">&#40;</span> nHours, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":"</span> + StrZero<span style="color: #000000;">&#40;</span> nMins, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":"</span> + ;<br />&nbsp; &nbsp; &nbsp; &nbsp;StrZero<span style="color: #000000;">&#40;</span> nSecs, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> &nbsp;+ <span style="color: #ff0000;">":"</span> + <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>nMillisec<span style="color: #000000;">&#41;</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><br />&nbsp;<span style="color: #00C800;">METHOD</span> _FillRect<span style="color: #000000;">&#40;</span> nTop, nLeft, nBottom, nRight, nColor <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TLed<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oBrush, hBru, hOld, nMid<br /><br />&nbsp; &nbsp;hBru := CreateSolidBrush<span style="color: #000000;">&#40;</span> nColor <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;hOld := SelectObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, hBru <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; FillRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">&#123;</span> nTop, nLeft, nBottom, nRight <span style="color: #000000;">&#125;</span>, hBru <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SelectObject<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, hOld <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;DeleteObject<span style="color: #000000;">&#40;</span> hBru <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#40;</span><span style="color: #00C800;">Nil</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">/*<br />&nbsp;METHOD Resize() &nbsp;CLASS TLed<br /><br />&nbsp; &nbsp; Local y, x<br />&nbsp; &nbsp; Local nLedValLines<br />&nbsp; &nbsp; Local nWidthChars:= (::nLedCharacters*6.87)+0.5 &nbsp;//138 &nbsp; // 20 cr<br />&nbsp; &nbsp; Local nHeightsymbol := 7<br />&nbsp; &nbsp; Local nLines:= 2<br />&nbsp; &nbsp; Local nSpaces:= (::nLedCharacters*2)*2<br /><br />&nbsp; &nbsp; if ::nLedlines &nbsp;== 0<br />&nbsp; &nbsp; &nbsp; &nbsp;nLedValLines := &nbsp;7<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp;nLedValLines := 18 //19<br />&nbsp; &nbsp; endif<br /><br /><br />&nbsp; y := ( ::nLedHeight * nLedValLines) + ( ::nLedSpace * (nHeightsymbol*nLines) ) + 8<br />&nbsp; x := ( ::nLedWidth * nWidthChars ) + ( ::nLedHeight * 2 ) + ( ::nLedSpace * nSpaces ) + 8<br /><br /><br />&nbsp; &nbsp;::nWidth := x<br />&nbsp; &nbsp;::nHeight := y<br /><br />&nbsp; &nbsp;IIF( ! Empty( ::hWnd ), ::Refresh(.f.), )<br /><br />RETURN Nil<br /><br />*/</span><br /><br />&nbsp;<span style="color: #00C800;">METHOD</span> Resize<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TLed<br /><br />&nbsp;<span style="color: #00C800;">Local</span> y, x<br />&nbsp;<span style="color: #00C800;">Local</span> nLedValLines<br />&nbsp;<span style="color: #00C800;">Local</span> nWidthChars:= <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">nLedCharacters*</span><span style="color: #000000;">6.87</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+0.5</span> &nbsp;<span style="color: #B900B9;">//138 &nbsp; // 20 cr</span><br />&nbsp;<span style="color: #00C800;">Local</span> nHeightsymbol := <span style="color: #000000;">7</span><br />&nbsp;<span style="color: #00C800;">Local</span> nLines:= <span style="color: #000000;">2</span><br />&nbsp;<span style="color: #00C800;">Local</span> nSpaces:= <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">nLedCharacters*</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>*<span style="color: #000000;">2</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nLedlines</span> &nbsp;== <span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nLedValLines := &nbsp;<span style="color: #000000;">7</span><br />&nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp;nLedValLines := <span style="color: #000000;">18</span> <span style="color: #B900B9;">//19</span><br />&nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;y := <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedHeight</span> * nLedValLines <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedSpace</span> * <span style="color: #000000;">14</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">8</span><br />&nbsp; &nbsp;x := <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedWidth</span> * nWidthChars <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedHeight</span> * <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedSpace</span> * <span style="color: #000000;">80</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">8</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nWidth</span> := x<br />&nbsp; &nbsp;::<span style="color: #000000;">nHeight</span> := y<br /><br />&nbsp; &nbsp;IIF<span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> &nbsp;::<span style="color: #000000;">hWnd</span> &nbsp;<span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> AdjustText<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #00C800;">CLASS</span> TLed<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cLin1, cLin2<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> cTmp := ::<span style="color: #000000;">cMessage</span><br /><br />&nbsp; &nbsp;IIF<span style="color: #000000;">&#40;</span> Len<span style="color: #000000;">&#40;</span> cTmp <span style="color: #000000;">&#41;</span> >= <span style="color: #000000;">41</span>, cTmp := <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cTmp, <span style="color: #000000;">40</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> Len<span style="color: #000000;">&#40;</span> cTmp <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">40</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin1</span> := <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cTmp, ::<span style="color: #000000;">nLedCharacters</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin2</span> := <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> cTmp, ::<span style="color: #000000;">nLedCharacters</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin1</span> := <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span> cTmp, ::<span style="color: #000000;">nLedCharacters</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin1</span> := ::<span style="color: #000000;">cTxtLin1</span> + Space<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedCharacters</span> - Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cTxtLin1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin2</span> := <span style="color: #0000ff;">Right</span><span style="color: #000000;">&#40;</span> cTmp, Len<span style="color: #000000;">&#40;</span> cTmp <span style="color: #000000;">&#41;</span> - ::<span style="color: #000000;">nLedCharacters</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cTxtLin2</span> := ::<span style="color: #000000;">cTxtLin2</span> + Space<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nLedCharacters</span> - Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cTxtLin2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;END<br /><br />&nbsp; &nbsp;IIF<span style="color: #000000;">&#40;</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span>.f.<span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /><br /><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><span style="color: #B900B9;">/*<br />METHOD CheckLines() &nbsp; CLASS TLed<br /><br />&nbsp; Local nI<br />&nbsp; &nbsp;::aLinea1 := {}<br />&nbsp; &nbsp;::aLinea2 := {}<br /><br /><br />&nbsp; &nbsp;For nI := 1 to ::nLedCharacters<br />&nbsp; &nbsp; &nbsp; IF ni <= LEN( ::cTxtLin1 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd( ::aLinea1, ::GetCode( alltrim( ::cTxtLin1[nI] ) ) )<br />&nbsp; &nbsp; &nbsp; ELSE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd( ::aLinea1, ::GetCode( " " ) )<br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; IF ni <= LEN( ::cTxtLin2 )<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd( ::aLinea2, ::GetCode( alltrim( ::cTxtLin2[nI] ) ) )<br />&nbsp; &nbsp; &nbsp; ELSE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd( ::aLinea2, ::GetCode( " " ) )<br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;Next<br /><br /><br />&nbsp; &nbsp;RETURN Nil */</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> CheckLines<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #00C800;">CLASS</span> TLed<br /><br />&nbsp; <span style="color: #00C800;">Local</span> nI<br />&nbsp; &nbsp;::<span style="color: #000000;">aLinea1</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">aLinea2</span> := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">For</span> nI := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> ::<span style="color: #000000;">nLedCharacters</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ni <= LEN<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cTxtLin1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aLinea1</span>, ::<span style="color: #000000;">GetCode</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>::<span style="color: #000000;">cTxtLin1</span>, ni, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aLinea1</span>, ::<span style="color: #000000;">GetCode</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ni <= LEN<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cTxtLin2</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aLinea2</span>, ::<span style="color: #000000;">GetCode</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>::<span style="color: #000000;">cTxtLin2</span>, ni, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aLinea2</span>, ::<span style="color: #000000;">GetCode</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; END<br />&nbsp; &nbsp;<span style="color: #00C800;">Next</span><br /><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------//</span><br /><br /><br /><br /><span style="color: #00C800;">METHOD</span> GetCode<span style="color: #000000;">&#40;</span> cChar <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TLed<br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> aChar, nChar<br />&nbsp; &nbsp; &nbsp; &nbsp; nChar := <span style="color: #0000ff;">ASC</span><span style="color: #000000;">&#40;</span> cChar <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">DO</span> <span style="color: #00C800;">CASE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">32</span> &nbsp;<span style="color: #B900B9;">//space</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">33</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii33<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">34</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii34<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">35</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii35<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">36</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii36<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">37</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii37<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">38</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii38<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">39</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii39<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">40</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii40<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">41</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii41<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">42</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii42<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">43</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii43<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">44</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii44<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">45</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii45<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">46</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii46<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">47</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii47<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">48</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii48<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">49</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii49<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">50</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii50<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">51</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii51<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">52</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii52<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">53</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii53<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">54</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii54<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">55</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii55<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">56</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii56<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">57</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii57<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">58</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii58<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">51</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii51<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">53</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii53<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">54</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii54<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">55</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii55<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">56</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii56<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">57</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii57<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">58</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii58<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">59</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii59<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii60<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">61</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii61<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">62</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii62<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">63</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii63<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">64</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii64<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">65</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii65<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">66</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii66<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">67</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii67<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">68</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii68<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">69</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii69<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">70</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii70<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">71</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii71<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">72</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii72<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">73</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii73<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">74</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii74<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">75</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii75<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">76</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii76<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">77</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii77<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">78</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii78<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">79</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii79<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">80</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii80<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">81</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii81<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">82</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii82<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">83</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii83<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">84</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii84<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">85</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii85<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">86</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii86<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">87</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii87<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">88</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii88<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">89</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii89<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">90</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii90<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">91</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii91<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">92</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii92<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">93</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii93<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">94</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii94<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">95</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii95<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">96</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii96<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">97</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii97<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">98</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii98<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">99</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii99<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">100</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii100<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">101</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii101<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">102</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii102<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">103</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii103<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">104</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii104<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">105</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii105<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">106</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii106<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">106</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii106<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">107</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii107<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">108</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii108<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">109</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii109<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">110</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii110<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">111</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii111<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">112</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii112<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">113</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii113<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">114</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii114<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">115</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii115<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">116</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii116<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">117</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii117<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">118</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii118<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">119</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii119<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">120</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii120<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">121</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii121<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">122</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii122<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">123</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii123<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">124</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii124<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">125</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii125<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">126</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii126<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">128</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii128<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">161</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii161<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">170</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii170<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">186</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii186<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">224</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii224<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">225</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii225<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">232</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii232<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">233</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii233<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">236</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii236<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">237</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii237<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">242</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii242<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">243</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii243<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">247</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii247<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">249</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii249<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">CASE</span> nChar=<span style="color: #000000;">250</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aChar := CodeAScii250<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">OTHERWISE</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; aChar := &nbsp;CodeAScii32<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDCASE</span><br /><span style="color: #00C800;">RETURN</span> aChar<br /><br /><br /> </div>[/code:3u0ohoea] do not forget to add the Code Ascii Table function
chronometer
Silvio: Excellent work and contribution. Regards
chronometer
I created the [b:pnbnjy3u]Tled class i[/b:pnbnjy3u]n 2009 because I needed to visualize the total for the orders and simulate the turret of the cash registers, then stupidly I gave it to someone I trusted and instead this person gave to the whole world. In fact, someone from a latent programming language has cloned it and another person I do not want to name has inserted it into a forum and a download section as if it had been created by him. I am very angry about this. I tried to warn the administrator of the forum and I also told Antonio Linares but unfortunately it was not possible to do anything no one answered me. The Tled base is compatible with harbor and xharbour, instead the multiple tLed ie with the ability to create infinite lines works only for xharbour for now, later if I have time I will try to fix it for harbor. However, they are available on my github page where you can also find other classes created with Antonio Perricone and the late Stephan Haupt The same thing happened to the [b:pnbnjy3u]Trating class[/b:pnbnjy3u], this class has been cloned by the creators of Minigui in fact in the examples of the language there is a "rating" folder where is inserted the test that I made at the beginning with Mr. Uwe (esckoenig) on this forum. I am very sorry for this but not only nobody gave me reason but nobody even asked Grygory ( Minigui) for an explanation.
chronometer
With this class is simply... [img:jr99s4au]https&#58;//i&#46;postimg&#46;cc/HL2kgWv6/crono&#46;png[/img:jr99s4au] I did this when I had to simulate a panel of the old LCD in an office where there is always the queue of people and each has its number as in supermarkets or at the post office "Now we serve the number ....", I really like using it when I make invoices to see the total on the video with the turret display [b:jr99s4au]sample for a date display with Beep[/b:jr99s4au] with 2 lines [code=fw:jr99s4au]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> oDlg,oDisplay<br />   <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">550</span>,<span style="color: #000000;">200</span><br /><br />   oDisplay:=TLed<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;">1</span>,<span style="color: #000000;">1</span>,oDlg<span style="color: #000000;">&#41;</span><br />           oDisplay:<span style="color: #000000;">lTimeDate</span> :=.t.<br />           oDisplay:<span style="color: #000000;">lBeep</span>:=.t.<br />   <span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Dialog</span> oDlg<br />   <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:jr99s4au] [img:jr99s4au]https&#58;//i&#46;postimg&#46;cc/dVNdGYKN/date&#46;png[/img:jr99s4au]
chronometer
Silvio, CodeAScii...() unresolved external
chronometer
You must link another file where are the code.see on my github
chronometer
thanks
chronometer
to try compile only : [b:1gsopdru]this test [/b:1gsopdru] [code=fw:1gsopdru]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> test<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> oDlg,oDisplay<br />   <span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">Dialog</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">550</span>,<span style="color: #000000;">200</span><br /><br />   oDisplay:=TLed<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;">1</span>,<span style="color: #000000;">1</span>,oDlg<span style="color: #000000;">&#41;</span><br />           oDisplay:<span style="color: #000000;">lTimeDate</span> :=.t.<br />           oDisplay:<span style="color: #000000;">lBeep</span>:=.t.<br />   <span style="color: #0000ff;">Activate</span> <span style="color: #0000ff;">Dialog</span> oDlg<br />   <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:1gsopdru] and only [b:1gsopdru]TLed.prg[/b:1gsopdru] you found on this url [url:1gsopdru]https&#58;//github&#46;com/silviofalconi/tLed-1&#46;0[/url:1gsopdru]
cicle of date
I wish make a cicle type ddateInit:="31.08.2013" dDatefinal:="31.08.2019" DO while ctod(ddateInit)== ctod(dDatefinal) ...make some procedures ddateInit+=3 //add 3 days EndDo why it is bad ?
cicle of date
[code=fw:3tr8yfyo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;ddateInit := ddateInit + <span style="color: #000000;">3</span> <br />&nbsp;</div>[/code:3tr8yfyo]
cicle of date
Silvio, a test with 50 days SET DATE GERMAN ddateInit := ctod("31.08.2013") dDatefinal := ctod("31.08.2019") DO while dDatefinal >= ddateInit ddateInit+=50 //add 3 days MsgAlert( ddateInit ) EndDo regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
cicle of date
THE PROBLEM IS skip records by putting in empty record archives