topic
stringlengths
1
63
text
stringlengths
1
577k
uestudio OT
whats version yours using?
uestudio OT
The current version that is available from <!-- m --><a class="postlink" href="http://www.ultraedit.com/index.php?name=Downloads&d_op=viewdownload&cid=13">http://www.ultraedit.com/index.php?name ... oad&cid=13</a><!-- m -->
uestudio OT
Hello Richard, The problem might be with which source file is getting linked first. Initially I had a similar problem. Try this. In the list of projects on the left side of the screen (see Antonio's image) move the mouse pointer over the project file name (test) and right click the mouse. At the bottom of the list of options you will find "Change Files Order..." Select this. A window will pop up where you can select and move to the top which program you want to link first. While on the subject of hidden or missing information, if you want to change the name of a resource file element, select the resource to be renamed in that left column and press F2. Also, if you move project files to another computer and UEStudio is not installed in exactly the same volume and folder, you will find all the syntax highlighting has disappeared. Look at your project file settings. The problem is the setting stored in the project file for Wordfile.txt. Regards, Ken
uestudio OT
Antonio and Ken Thanks for your efforts, Now my Uestudio is set and i can compile and link correct. Still i have different behaviour compared to my previous compiler (xbuild), it has to be compiler switch, i am going to review. Can you brievly explain the meaning of the following and what the correct default setting should be ? Automatic Memvar Declaration = yes|no Variables Are Assumed = yes|no Thanks in advance, Richard
uestudio OT
Hello Richard, If you simply type Harbour.exe, you will get a list of options. Included are the following: /a automatic memvar declaration and /v variables are assumed M-> In the old Clipper Quick Programming and Utilities Guide I found the following definitions: /a Any variable included in a PRIVATE, PUBLIC or PARAMETERS statement is automatically declared as MEMVAR. /v Forces the compiler to assume that all references to undeclared or unaliased variable names are public or private variables. The default is to treat ambiguous references as fields. The /v option has the same effect as using the dynamic variable alias (MEMVAR->). I am not certain how relevant these settings are when using FiveWin but when I was using Clipper, they were standard entries in my makefile. I have asked the people at xHarbour to incude the various Harbour.exe options in their next revision of the xHarbour manual. The developers at UEStudio were trying to create a single config file for both FiveWin and the xHarbour text console as well as the ability to use the debugger in both. However, it is not possible in the existing config to switch between gtgui.lib and gtwin.lib along with adding the /b switch for Harbour.exe and adding the debug.lib in the linker. More importantly, programmers using FiveWin are not likely to write a program using the DOS text console. Thererfore, I am currently in the process of modifying the config file. Instead of one file to do both, I will have one for each. I was hoping to quickly finish this but interruptions keep delaying me. Once this is done I will post it as well as send it along to the developers at UltraEdit to be included in their next release. Programmers using other xHarbour GUI drivers will also require their own config files. Hope this helps, Ken
uestudio OT
where i found the configuration files to xharbour?? thanks
uestudio OT
Nop, Follow this link to the post <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=5832">http://fivetechsoft.com/forums/viewtopic.php?t=5832</a><!-- m --> Regards, Ken
uestudio OT
Ken Thanks for info. I was not sure about hese 2 parameters and i do not need them anyway. My UESTUDIO is fully configured now, i have made changes to your initial file as i am using 3rd party libraries like tsbrowse, twbrose, tsbutton, vrd Uestudio is very interesting and now i plan to use it all the time. I am dropping xhb commercial (it is a pity i have renewed my subscription 2 weeks ago....) and switching completely to uestudio. Btw i am using Vista. Now there is no more need for xhb builder, uestudio is much more powerful. Thanks for the help. For Antonio, have you set an application file for fwppc ? If not i am going to prepare one asap. Best regards Richard
uestudio OT
Can someone please post some screenshots of the debugging with UE. Thanks in advance Otto
uestudio OT
Richard, > For Antonio, have you set an application file for fwppc ? If not i am going to prepare one asap. > No, we just use a call to buildce.bat file for quick tests from UEStudio. We do appreciate your help on setting a FWPPC config file for UEStudio, thanks!
uestudio config file
Hello Antonio After loading my fwh 10.01 I copied the uestudio config file (application) to replace mine I had not backed up mine... It works ok but i am missing line numbers at error.log Basically it is a /l flag at harbour commands but i can bot find where it is set Can you help ? At the same time, please change the following UseDosNames = 1 to UseDosNames = 0 , this will allow long exe names not to be truncated Richard
uestudio config file
Best regards, Otto [code=fw:2g3uafx0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #000000;">&#91;</span>.PRG<span style="color: #000000;">&#93;</span><br />Out = $In.c<br />DebugFlag = /b<br />ReleaseFlag = /l<br />Cmd0 = harbour $I $<span style="color: #000000;">&#40;</span>HOPT<span style="color: #000000;">&#41;</span> $R /o$O<br />&nbsp;</div>[/code:2g3uafx0]
uestudio config file
Otto Thanks , i did not see it Probably need to clean my glasses... Regards
uestudio config file
Richard, [quote:3urnftty] At the same time, please change the following UseDosNames = 1 to UseDosNames = 0 [/quote:3urnftty] Updated for next FWH build, thanks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
uestudio download?
Onde posso fazer download do UESTUDIO? <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
uestudio download?
SGS, from <!-- m --><a class="postlink" href="http://www.ultraedit.com/products/uestudio.html">http://www.ultraedit.com/products/uestudio.html</a><!-- m --> Regards, Felix
uestudio download?
Ellos proporcionan una versión de prueba, plenamente operativa, durante 30 dias.
uestudio y ctag
He conseguido que uEstudio cree el fichero tags con todas las funciones del proyecto. 1º He creado un fichero (con nombre Harbour.ctags) con el siguiente código: [code=fw:eo87irfq]<div class="fw" id="{CB}" style="font-family: monospace;">--langdef=Harbour <br />--langmap=Harbour:.prg.ch<br /><br />--regex-Harbour=/^FUNCTION <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/f,<span style="color: #00C800;">function</span>/ <br />--regex-Harbour=/^<span style="color: #000000;">&#91;</span>Ff<span style="color: #000000;">&#93;</span>unction <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/f,<span style="color: #00C800;">function</span>/ <br /><br />--regex-Harbour=/^FUNC <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/f,<span style="color: #00C800;">function</span>/ <br />--regex-Harbour=/^<span style="color: #000000;">&#91;</span>Ff<span style="color: #000000;">&#93;</span>unc <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/f,<span style="color: #00C800;">function</span>/ <br /><br />--regex-Harbour=/^PROCEDURE <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/p,procedure/<br />--regex-Harbour=/^<span style="color: #000000;">&#91;</span>Pp<span style="color: #000000;">&#93;</span>rocedure <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/p,procedure/<br /><br />--regex-Harbour=/^PROC <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/p,procedure/<br />--regex-Harbour=/^<span style="color: #000000;">&#91;</span>Pp<span style="color: #000000;">&#93;</span>roc <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/p,procedure/<br /><br />--regex-Harbour=/^#DEFINE <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/d,<span style="color: #0000ff;">define</span>/ <br />--regex-Harbour=/^#<span style="color: #000000;">&#91;</span>Dd<span style="color: #000000;">&#93;</span>efine <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/d,<span style="color: #0000ff;">define</span>/ <br /><br />--regex-Harbour=/<span style="color: #00C800;">CLASS</span> <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/c,<span style="color: #00C800;">class</span>/ <br />--regex-Harbour=/<span style="color: #000000;">&#91;</span>Cc<span style="color: #000000;">&#93;</span>lass <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/c,<span style="color: #00C800;">class</span>/ <br /><br />--regex-Harbour=/<span style="color: #00C800;">DATA</span> <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/m,<span style="color: #00C800;">data</span>/ <br />--regex-Harbour=/<span style="color: #000000;">&#91;</span>Dd<span style="color: #000000;">&#93;</span>ata <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/m,<span style="color: #00C800;">data</span>/ <br /><br />--regex-Harbour=/<span style="color: #00C800;">METHOD</span> <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/m,<span style="color: #00C800;">method</span>/ <br />--regex-Harbour=/<span style="color: #000000;">&#91;</span>Mm<span style="color: #000000;">&#93;</span>ethod <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/m,<span style="color: #00C800;">method</span>/ <br /><br />--regex-Harbour=/<span style="color: #0000ff;">MESSAGE</span> <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/m,<span style="color: #00C800;">method</span>/ <br />--regex-Harbour=/<span style="color: #000000;">&#91;</span>Mm<span style="color: #000000;">&#93;</span>essage <span style="color: #000000;">&#91;</span>\t<span style="color: #000000;">&#93;</span>*<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>a-zA-Z0-9_<span style="color: #000000;">&#93;</span>+<span style="color: #000000;">&#41;</span>/\<span style="color: #000000;">1</span>/m,<span style="color: #00C800;">method</span>/<br /> </div>[/code:eo87irfq] 2º "Parametros del CTAG" que se encuentra en Proyecto -> Configurar opciones de CTAG lo he cambiado con lo siguiente: [code=fw:eo87irfq]<div class="fw" id="{CB}" style="font-family: monospace;">--options=<span style="color: #ff0000;">"D:<span style="color: #000000;">\G</span>oogle_Drive<span style="color: #000000;">\D</span>escargas<span style="color: #000000;">\U</span>estudio<span style="color: #000000;">\I</span>nstalacion FWH<span style="color: #000000;">\c</span>tags<span style="color: #000000;">\H</span>arbour.ctags"</span> --language-force=Harbour -L %fi -f %fo</div>[/code:eo87irfq] Siendo "D:\Google_Drive\Descargas\Uestudio\Instalacion FWH\ctags" la ruta donde esta almacenado el fichero del punto 1 (Harbour.ctags) 3º En la configuración del proyecto, pestaña opciones lo he cambiado a: He activado "Soporte CTAG heredado" He introducido la ruta del archivo ctag que quiero que se cree en el proyecto He activado "Crear archivo CTAG al cargar el proyecto" Listo. Con esto cada vez que entro en el proyecto, se crea el archivo ctag del proyecto y puedo pulsar F11 para acceder a la definición de la función
uestudio y ctag
He visto este tema: [url:8zo9fsrx]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=28213[/url:8zo9fsrx] En el que parece que se puede llamar a la definición de una función que se encuentra en otro prg. He intentado hacer pruebas, pero no consigo que "ctags" cargue las funciones de todos los prgs del proyecto. ¿Alguien me puede guiar un poco, sobre como conseguirlo? Gracias.
uestudio y ctag
Hello, F11 SearchFindSymbol seek a Function in file CTAG You have to set the path of the file CTAG in Projet -> Option CTAG The problem is how to create the file This is a sample of the CTAG file [code=fw:3kqh9c2p]<div class="fw" id="{CB}" style="font-family: monospace;">!_TAG_FILE_FORMAT   <span style="color: #000000;">1</span>   /extended format; --format=<span style="color: #000000;">1</span> will not append ; <span style="color: #0000ff;">to</span> lines/<br />!_TAG_FILE_SORTED   <span style="color: #000000;">1</span>   /<span style="color: #000000;">0</span>=unsorted, <span style="color: #000000;">1</span>=sorted, <span style="color: #000000;">2</span>=foldcase/<br />!_TAG_PROGRAM_AUTHOR    Darren Hiebert  /[email protected]/<br />!_TAG_PROGRAM_NAME  Exuberant Ctags <span style="color: #B900B9;">//</span><br />!_TAG_PROGRAM_URL   http:<span style="color: #B900B9;">//ctags.sourceforge.net    /official site/</span><br />!_TAG_PROGRAM_VERSION   <span style="color: #000000;">5.6</span> <br /><span style="color: #B900B9;">//--------------------------------------------------------------------------------------------------</span><br /><span style="color: #B900B9;">//CCODICE=CODICEDARICERCARE</span><br /><span style="color: #B900B9;">//NCORTO=CORTODELL'ARTICOLOATTUALE</span><br />VEDISECODICELIBERO  d:\prgwin\Mastro\cl_ArBrw.prg   <span style="color: #000000;">363</span><br />RICALCOLALISTINIARTICOLI    d:\prgwin\Mastro\cl_ArBrw.prg   <span style="color: #000000;">453</span><br />::<span style="color: #000000;">OBRW</span>:<span style="color: #000000;">UPSTABLE</span> d:\prgwin\Mastro\cl_ArBrw.prg   <span style="color: #000000;">57</span><br /> </div>[/code:3kqh9c2p] instead F12 IntellitipFindSymbolDef automatically seek the functions in the project file Regards Maurizio <!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
uestudio y ctag
Hello, thanks for replying, How do I file ctag? Do I have to create the file manually every time? UEStudio indicates that the file can be automatically created.
uestudio y ctag
I create the file I use DIRE.DBF where I put the list of the directory to Scan Regards MAurizio <!-- m --><a class="postlink" href="http://www.nipeservice.com">http://www.nipeservice.com</a><!-- m --> [code=fw:2za8rofw]<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;">static</span> oMeter2 <br /><span style="color: #00C800;">Static</span> lAuto<br /><span style="color: #00C800;">static</span> aKey ,aDatiW<br /><br /><span style="color: #B900B9;">//-----------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span>cStart<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOcal</span> bAction := <span style="color: #000000;">&#123;</span> | oMeter, oText, oDlg, lEnd |  CreaTag<span style="color: #000000;">&#40;</span> oMeter, oText, oDlg, @lEnd <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />   lAuto := .F.<br />   <span style="color: #00C800;">IF</span> cStart # <span style="color: #00C800;">nil</span> .AND. upper<span style="color: #000000;">&#40;</span>cStart<span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">'AUTO'</span><br />        lAuto := .T.<br />    <span style="color: #00C800;">endif</span><br />   <br />  MyMsgMeter<span style="color: #000000;">&#40;</span> bAction,,<span style="color: #ff0000;">"Wait"</span> <span style="color: #000000;">&#41;</span> <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">Static</span> <span style="color: #00C800;">function</span> CreaTag<span style="color: #000000;">&#40;</span>oMeter, oText, oDlg, lEnd<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">Local</span> aDir := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">Local</span> aFile := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">Local</span> cSubDir := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">Local</span> cFile := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">Local</span> cString := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">Local</span> nX ,nY := <span style="color: #000000;">1</span><br />   <span style="color: #00C800;">local</span> nT := <span style="color: #000000;">1</span><br />   <span style="color: #00C800;">Local</span> aDAti := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">Local</span> lOk := .F.<br />   <span style="color: #00C800;">Local</span> cFileExt := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">Local</span> cRiga := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">Local</span> cText := + ;<br />                           <span style="color: #ff0000;">'!_TAG_FILE_FORMAT   1   /extended format; --format=1 will not append ; to lines/'</span> + CRLF + ;<br />                        <span style="color: #ff0000;">'!_TAG_FILE_SORTED  1   /0=unsorted, 1=sorted, 2=foldcase/'</span> + CRLF + ;<br />                        <span style="color: #ff0000;">'!_TAG_PROGRAM_AUTHOR   Darren Hiebert  /[email protected]/'</span>+ CRLF + ;<br />                        <span style="color: #ff0000;">'!_TAG_PROGRAM_NAME Exuberant Ctags //'</span>+ CRLF + ;<br />                        <span style="color: #ff0000;">'!_TAG_PROGRAM_URL  <!-- m --><a class="postlink" href="http://ctags.sourceforge.net&nbsp;">http://ctags.sourceforge.net&nbsp;</a><!-- m -->   /official site/'</span>+ CRLF + ;<br />                        <span style="color: #ff0000;">'!_TAG_PROGRAM_VERSION  5.6 //'</span> + CRLF<br />   <span style="color: #00C800;">Local</span> cDati := cText<br />   <span style="color: #00C800;">Local</span> cFileDat :=  <span style="color: #ff0000;">"c:<span style="color: #000000;">\F</span>WMY<span style="color: #000000;">\p</span>rova.tag"</span><br />   <span style="color: #00C800;">Local</span> cDir := <span style="color: #ff0000;">"d:<span style="color: #000000;">\p</span>rgwin<span style="color: #000000;">\"</span> + space(20)<br /><br />  * Local cFileDat :=  "</span>c:\temp\list.tag<span style="color: #ff0000;">"<br />  * Local cDir := "</span>c:\fwh\<span style="color: #ff0000;">"<br />   <br />   Local nOutFile := 0<br />   Local nTot := 0    <br />   Local aDbf := {}<br />   Local lNew := .f.<br />   Local cChiave := "</span><span style="color: #ff0000;">"<br />   lOCAL nKey := 1<br /><br />   aKey := {}<br />   aDatiW := {}<br />    <br />   <br />    <br />   REQUEST DBFCDX<br />   rddsetdefault( "</span>dbfcdx<span style="color: #ff0000;">" )<br /> <br />   IF ! lAuto<br />    MsgGet("</span><span style="color: #ff0000;">", "</span><span style="color: #0000ff;">Name</span> file cTags <span style="color: #ff0000;">", @cFileDat ) <br />   <br />    MsgGet("</span><span style="color: #ff0000;">", "</span><span style="color: #0000ff;">Folder</span> <span style="color: #0000ff;">to</span> scan <span style="color: #000000;">&#40;</span>include subdirectoris<span style="color: #000000;">&#41;</span> <span style="color: #ff0000;">", @cDir ) <br />    <br />    <br />    IF MsgNoYes( "</span>Re-read the directory ?<span style="color: #ff0000;">", "</span><span style="color: #ff0000;">"  )<br />       ferase("</span>DIRE.DBF<span style="color: #ff0000;">")<br />       lNew := .T.<br />      ENDIF <br />   endif<br />   <br />   <br />  if ! file("</span>DIRE.DBF<span style="color: #ff0000;">")                            <br />     AADD (aDbf, {"</span>RIGA<span style="color: #ff0000;">",    "</span>C<span style="color: #ff0000;">",  50, 0 })<br />     dbcreate("</span>DIRE<span style="color: #ff0000;">", aDbf , "</span>DBFCDX<span style="color: #ff0000;">")<br />  ENDIF<br />  USE ("</span>DIRE<span style="color: #ff0000;">") VIA "</span>DBFCDX<span style="color: #ff0000;">"<br />   <br />   <br />   cDir := trim(cDir)<br />   aDir :=  DIRECTORY(cDir,"</span>D<span style="color: #ff0000;">")<br />   IF lNew <br />    ZAP <br />    FOR nX := 1 to len(aDir)<br />         IF aDir[nX,5] == "</span>D<span style="color: #ff0000;">"<br />              cSubDir := cDir + aDir[nX,1] + "</span>\<span style="color: #ff0000;">"  <br />            dbappend()<br />             field->RIGA := cSubDir     <br />         ENDIF<br />      NEXT<br />   ENDIF<br />   IF ! lAuto<br />      BROWSE()   <br />   ENDIF<br />   dbgotop()<br />   <br />   nOutfile := FCREATE(cFileDat, 0)<br /><br />   FWRITE(nOutfile, cText, len(cText))<br /><br />   do while ! eof()<br />       aFile := DIRECTORY((trim(field->RIGA)))<br />           FOR nY := 1 to len(aFile)<br />              cFile :=  aFile[nY,1]<br />              IF cFileExt(cFile) == "</span>PRG<span style="color: #ff0000;">"<br />                  nTot++    <br />              ENDIF <br />           NEXT   <br />     dbskip()<br />   enddo<br />   <br />   oMeter2:nTotal:= nTot   <br />   nTot := 1<br />       <br />   *For nX := 1 to len(aDir)<br />   dbgotop()<br />   nX := 0<br />   do while ! eof()<br />    nX++    <br />           cSubdir := trim(field->RIGA)<br />           aFile := DIRECTORY(cSubDir)<br />       <br />           for nY := 1 to len(aFile)<br />             cFile :=  aFile[nY,1]<br />             IF cFileExt(cFile) == "</span>PRG<span style="color: #ff0000;">"<br />                oMeter:cText :=  cSubDir + "</span>\<span style="color: #ff0000;">" + cFile + "</span>   <span style="color: #ff0000;">" + str(nX)  +   str(len(aDir))<br />               cDati :=  ScriviFile(cSubdir + cFile,oMeter,@cChiave)<br />               IF ! empty(cDAti)<br />                    nKey++<br />               ENDIF   <br />               nTot++<br />               oMeter2:Set(nTot )<br />               oMeter2:cText := str(nTot)+ "</span>/<span style="color: #ff0000;">" + str(oMeter2:nTotal)<br />              endif    <br />              IF lEnd<br />                  exit<br />              endIF<br />           NEXT<br />           <br />     dbskip()      <br />    enddo   <br />    <br />  ASort( aKey ,,, {|x,y| x[1] > y[1] } )<br />  ASort(aDatiW)<br />  FOR nX := 1 to len(aDatiW)    <br />       FWRITE(nOutfile, aDAtiW[nX], len(aDAtiW[nX]))<br />  NEXT  <br />  <br />  <br />  <br />  FCLOSE(nOutfile)<br /><br />    <br />return .t.<br />//---------------------------------------------------------------------------------------------<br />Static function ScriviFile(cFileExt,oMeter,cChiave)<br />Local cFile := "</span><span style="color: #ff0000;">"<br />Local nX := 0<br />Local nT := 1<br />Local cString := "</span><span style="color: #ff0000;">"<br />Local lOk := .F.<br />Local cDati := "</span><span style="color: #ff0000;">"   <br /><br />   cChiave := "</span><span style="color: #ff0000;">"<br />   cString := MEMOREAD(cFileExt)<br />   nT :=  MLCOUNT(cString,254)<br />   oMeter:nTotal := nT  // CARICAVERIFICHe<br /><br />   for nX := 1 TO nT<br />     lOk := .F.<br />       cFile :=  UPPER(memoline(cString,254,nX))<br />      <br />       IF at("</span><span style="color: #00C800;">FUNCTION</span><span style="color: #ff0000;">",cFile) > 0 <br />         cFile := STRTRAN(cFile, "</span><span style="color: #00C800;">FUNCTION</span><span style="color: #ff0000;">", "</span><span style="color: #ff0000;">")<br />          cFile := STRTRAN(cFile, "</span><span style="color: #00C800;">STATIC</span><span style="color: #ff0000;">", "</span><span style="color: #ff0000;">")<br />          lOk := .T.    <br />       ENDIF    <br />       if Lok ==.f.<br />        <br />        IF at("</span><span style="color: #00C800;">METHOD</span><span style="color: #ff0000;">",cFile) > 0 <br />           IF at("</span><span style="color: #00C800;">CLASS</span><span style="color: #ff0000;">",cFile) > 0 <br />               cFile := STRTRAN(cFile, "</span><span style="color: #00C800;">METHOD</span><span style="color: #ff0000;">", "</span><span style="color: #ff0000;">")<br />               lOk := .T.    <br />               <br />            endIF   <br />        ENDIF   <br />       ENDIF   // RECNO<br />       IF lOk <br />         cFile := STRTRAN(cFile, "</span> <span style="color: #ff0000;">", "</span><span style="color: #ff0000;">")<br />          cFile := SUBSTR(cFile,1,AT("</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">",cFile)-1)<br />          cFile := trim(cFile)<br />          IF substr(cFile,1,1) == "</span>*<span style="color: #ff0000;">"<br />             cFile := "</span><span style="color: #ff0000;">"<br />          ENDIF  <br />          IF ! empty(cFile)<br />             cChiave := alltrim(cFile)<br />             cFile += chr(9) +  cFileExt     + chr(9) + alltrim(str(nX))<br />             cDati += cFile + CRLF  <br />             aadd(aDAtiW,cFile + CRLF)<br />             <br />          ENDIF<br />         endif<br />       oMeter:Set(nX )<br />       <br />    next<br /><br />Return cDati<br />//======================================================================================================<br />function MyMsgMeter( bAction, cMsg, cTitle )<br /><br />   local oDlg, oMeter, oText, oBtn, oFont<br />   local lEnd := .f., lCancel := .f.<br />   local nVal,nVal2 := 0<br /><br />   DEFAULT bAction := { || nil },;<br />           cMsg := "</span>Processing...<span style="color: #ff0000;">", cTitle := "</span>Please, wait<span style="color: #ff0000;">"<br /><br />   DEFINE FONT oFont NAME GetSysFont() SIZE 0, -8<br /><br />   DEFINE DIALOG oDlg FROM 5, 5 TO 13, 45 TITLE cTitle FONT oFont<br /><br />   @ 0.2, 0.5  SAY oText VAR cMsg SIZE 130, 10 OF oDlg<br /><br />   @ 1,   0.5  METER oMeter  VAR nVal TOTAL 10 SIZE 150, 10 OF oDlg<br />   <br />   @ 2,   0.5  METER oMeter2 VAR nVal2 TOTAL 10 SIZE 150, 10 OF oDlg<br />   <br />   <br /><br />   @  2.2,  10.4  BUTTON oBtn PROMPT "</span>&Cancel<span style="color: #ff0000;">" OF oDlg ;<br />      ACTION ( lEnd:= .t., lCancel:= .t. ) SIZE 32, 11<br /><br />   oDlg:bStart = { || Eval( bAction, oMeter, oText, oDlg, @lEnd, oBtn ),;<br />                      lEnd := .t., oDlg:End() }<br /><br />   ACTIVATE DIALOG oDlg CENTERED ;<br />      VALID lEnd<br /><br />   oFont:End()<br /><br />return lCancel<br /><br /><br /></span></div>[/code:2za8rofw]
uestudio y ctag
Ok, thank you very much for your help I will use that code. On this website, as I found ctags to include new programming languages??. [url:1uf6kimh]http&#58;//ctags&#46;sourceforge&#46;net/EXTENDING&#46;html[/url:1uf6kimh] I will investigate.
ukulele orchestra - Sympathy For The Devil
[url:38agl2qw]https&#58;//www&#46;youtube&#46;com/watch?v=1ann6Xd49oM[/url:38agl2qw] Best regards, Otto
ultraedit para mac
Que bien verte por aqui Jose Luis ,se que te has pasado a Mac y como yo sigues a Berto ( como ves sigo tu blog ) <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> ... .el tener ultraedit para mac es estupendo aunque yo no cambiaré el Xcode .Gracias por la noticia. Saludos.
ultraedit para mac
Hola, Pues si, me he pasado a Mac y quiero aprender Obj-C y Cocoa. Espero poder terminar unas cosas que tengo entre manos y poder comenzar en serio con el tema pronto. Saludos,
ultraedit para mac
Hola, Igual esto os interesa <!-- m --><a class="postlink" href="http://www.ultraedit.com/products/mac-text-editor.html">http://www.ultraedit.com/products/mac-text-editor.html</a><!-- m --> Saludos,
ultraedit studio
Hi all! Just started using UE studio. I can't find syntax highlighting specific for xharbour. How is it done? How do I get syntax highlighting to work case insensitive? How do I get it to recognize FW? I'm not refering to build-compile-make cycle. For now I'm only concern with syntax highlighting. Thank you, Reinaldo.
ultraedit studio
Hi Reinaldo, here you are <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=6773&highlight=uestudio">http://fivetechsoft.com/forums/viewtopi ... t=uestudio</a><!-- m --> Best regards, Felix
ultraedit studio
Reinaldo, Add this text at the end of c:\Program Files\IDM Computer Solutions\UEStudio '06\wordfile.txt : (You can include all FWH keywords also) /L12"Clipper" Nocase Line Comment = // Block Comment On = /* Block Comment Off = */ File Extensions = PRG CH /Function String = "%*^{Function^}^{Method^}*(" /Function String 1 = "%^{Class^}%[a-zA-Z_0-9^]" /Function String 2 = "%^{Class^}%[a-zA-Z_0-9^]%^{From^}%[a-zA-Z_0-9^]" /Function String 3 = "%*^{Procedure^}*" /C1 .and. .not. .or. .t. .f. #include #define #ifdef #endif #else aadd abs aclone acopy adel aeval afill ains alert alias alltrim as asc array activate action append asize ascan begin button buttonbar brush break case class classdata close color colors checkbox create character column centered commit copy constructor date do data dblclick declare deleted default delete design device dialog define dbcloseall dbskip dbclosearea dbsetorder dbseek dbrelation dbsetrelation dbgobottom dbgotop dbgoto dbsetfilter dbusearea dbcommit dbrecall dbdelete dbunlock dbappend exit else elseif endif export empty endclass endcase end endmenu enddo endpage endprint erase eof eval exact file for function from of footer font filter field fieldget fieldput fcount flock ferase fields get go goto gotop hidden header headers icon id if iif inline index init in left len locate listbox listview loop lower maximized mdichild method memvar msgInfo msgBeep message menu menuitem msglogo next numeric name of otherwise on off order ordsetfocus path pixel protected print page parameters procedure prompts preview picture quit return recall resource resources redefine read report replace right rlock recno sizes sequence self super set say separator size style sysrefresh shared select store skip seek softseek time title tone to tooltip top total transform var val valid valtype while when window with use update upper zap /C2 new /C3 local static public private nil : , ; @ | { } ( ) . [ ] < > = ! + - * / %
ultraedit studio
Antonio; That's exactly what I was looking for. Thank you! Reinaldo.
ultraedit studio
Reinaldo, what editor did ypu use before. Regards, Otto
un Campo en un Listbox pero FIELDS
Hola amigos del foro quiero poder poner en FIELD un campo q' cambie por ejemplo: en una bodega si tengo el FIELD q' detecte o si hay 2 o 3 o nn bodegas desde ya gracias
un Campo en un Listbox pero FIELDS
Felipe, Usa FIELD->bodegas te refieres a eso ?
un Campo en un Listbox pero FIELDS
Bueno la idea que quiero es la siguiente: Tengo una Tabla : Bodegas (3Bodegas) Tabla : Stock Tabla : Articulos en el Listbox deberia quedar asi REDEFINE LISTBOX oLbx FELDS; (cArticulos)->Detalle,CargaStock((cArticulo)->Codigo,Bodega1),; CargaStock((cArticulo)->Codigo,Bodega2),; CargaStock((cArticulo)->Codigo,Bodega3); Esto si hay 3 no Hay problema pero si hay 20 tendria que poner 20 veces pero la idea no esa, la idea es carga todo en uana variable y que pueda servir para una como para n bodegas dbGoTop() DO WHILE !Eof() //Los N ombres de Bodega cTitulo :=cTitulo + '"'+Alltrim((cBodega)->Ma_Corta)+'",' bodega :=(cBodega)->Ma_Codi //capturo el codigo cCampo :=cCampo + "CargaStock((cArticulo)->Codigo,bodega," bodega)," // La Funcion cSize :=cSize + "50," //aqui le asigno el Size DBSKIP() EndDo oLbx:aheaders := &cTitulo oLbx:acolsizes := &cSize Los aheaders y acolsizes funcionan bien pero Field no REDEFINE LISTBOX oLbx fIELDS cCampo PERO DE ESTA FORMA me funciona Bien: cCampo :={ || { (cArticulo)->Detalle,CargaStock((cArticulo)->Codigo,"1 ") } } REDEFINE LISTBOX oLbx fIELDS "" oLbx:bLine := (cCampo) PERO SI TENGO 2 0 3 O NNN BODEGAS bueno espero que entienda Saludos
un Campo en un Listbox pero FIELDS
Y si cambias esta funcion [color=red:4lihqgbn]cCampo :={ || { (cArticulo)->Detalle,CargaStock((cArticulo)->Codigo) } } REDEFINE LISTBOX oLbx fIELDS "" oLbx:bLine := (cCampo) [/color:4lihqgbn] y en la funcion CargaStock(nCodArt) le haces que recorra toda la base en busca de las N bodegas y te devuelva una cadena con el texto de todas las existencias en la bodegas?? Espero te sirva...
un Campo en un Listbox pero FIELDS
Bueno lo quero es que me muestre el Stock por bodega como este ejemplo: Detalle Bodega 1 Bodega 2 Bodega 3 Bodega 4 nnnnnn Bodegas
un Campo en un Listbox pero FIELDS
Felipe: Usa vectores para la definicion del browse: Local VEC_FIELD1 := { {|| ART->COD} ,; { || ART->CLAVE } ,; VEC_ENC1 := { OEMTOANSI("C¢d."),; " Clave",; VEC_SIZE1 := {70,109,226,77,77,64,109,73,40,110,52,52,52,90,90},; VEC_JUSTIF := {2,2,0,2,2,2,0,0,0,0,0,2,2,0,0},; Solo que en tu caso haces las evaluaciones necesarias y vas añadiendo posiciones a los vectores segun las bodegas que necesites, y despues en la definicion del browse usas esos vectores: REDEFINE LISTBOX oBrw fields ID 999 OF oDlg ; oBrw:SetCols( vec_field1, vec_enc1, vec_size1 ) oBrw:aJustify :=vec_justif Saludos,
un Campo en un Listbox pero FIELDS
Me uno al hilo para exponer mi caso. El que Daniel hace un tiempo me orientó y, en su propuesta me sugería la siguiente alternativa (tambien intento generar un browse de campos dinámicos): [code:v8p15hv2] DO CASE CASE oPJA&#58;nLenAlter == 2 aO&#91;_LstAlt&#93;&#58;bLine&#58;= &#123;|nAt| nAt&#58;= aO&#91;_LstAlt&#93;&#58;nAt, ; &#123; oPJA&#58;aAlternativas&#91;nAt,1&#93;, ; Trans&#40; oPJA&#58;aAlternativas&#91;nAt,2&#93;, PIC_SEIS &#41;, ; Trans&#40; oPJA&#58;aAlternativas&#91;nAt,3&#93;, PIC_SEIS &#41; ; &#125; &#125; CASE oPJA&#58;nLenAlter == 3 aO&#91;_LstAlt&#93;&#58;bLine&#58;= &#123;|nAt| nAt&#58;= aO&#91;_LstAlt&#93;&#58;nAt, ; &#123; oPJA&#58;aAlternativas&#91;nAt,1&#93;, ; Trans&#40; oPJA&#58;aAlternativas&#91;nAt,2&#93;, PIC_SEIS &#41;, ; Trans&#40; oPJA&#58;aAlternativas&#91;nAt,3&#93;, PIC_SEIS &#41;, ; Trans&#40; oPJA&#58;aAlternativas&#91;nAt,2&#93;, PIC_SEIS &#41; ; &#125; &#125;[/code:v8p15hv2] Esto funciona correctamente, aunque, leyendo la propuesa de cmsfot, me percato que me ahorraría mucho código a la par de que puedo elever el límite superior de campos. Por lo que lo implementé así: [code:v8p15hv2] for each arr in oPJA&#58;aAlternativas if HB_EnumIndex&#40;&#41;==1 cBLine&#58;= "&#123;|nAt| nAt&#58;= aO&#91;_LstAlt&#93;&#58;nAt, &#123; oPJA&#58;aAlternativas&#91;nAt,1&#93;, " else cBLine+= "Trans&#40; oPJA&#58;aAlternativas&#91;nAt,2&#93;, PIC_SEIS &#41;, " end next ? cBLine&#58;= Left&#40; cBLine, Len&#40; cBLine &#41; -2&#41; +" &#125; &#125;" aO&#91;_LstAlt&#93;&#58;bLine&#58;= &#40; cBLine &#41; aO&#91;_LstAlt&#93;&#58;SetArray&#40; oPJA&#58;aAlternativas &#41;[/code:v8p15hv2] Ahora bien, al ejecutar la app me arroja el siguiente error: Application =========== Path and name: D:\FUEN32\PRU32\MGPJA.EXE (32 bits) Size: 1,362,944 bytes Time from start: 0 hours 2 mins 37 secs Error occurred at: 13/12/2005, 09:05:40 Error description: Error BASE/1005 Class: 'CHARACTER' has no property: _EVAL Args: Stack Calls =========== Called from __EVAL(0) Called from WBRWPANE(0) Called from TWBROWSE:PAINT(1103) Called from TWBROWSE:DISPLAY(2892) Called from TWBROWSE:HANDLEEVENT(0) Called from _FWH(0) Called from WINRUN(0) Called from TMDIFRAME:ACTIVATE(0) Called from MAIN(46) Que es lo que no puede resolver?, cual es el problema?
un Campo en un Listbox pero FIELDS
Antonio gracias por ayudarme, mira el LIstbox lo tengo asi: REDEFINE LISTBOX oLbx fIELDS GenColumns(); ID 102 OF oDlg; oLbx:aheaders := {"Descripcion","Stock"} oLbx:acolsizes := {400,100} STATIC function GenColumns() local bLine:="" bLine:={ || { (cExi_Suc)->Ma_Des1,cExi_Suc)->Bod_001i } } return(bLine) Lo tengo asi y igual no me muestra nada pero igual como te desia me puedo mover para arriba y abajo desde ya gracias
un Campo en un Listbox pero FIELDS
Felipe: Enviame el pedazo de codigo en un prg que yo pueda compilar y probar aca con las dbf involucradas a <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> y te lo miro. Despues publicamos aca la solucion definitiva si queres. Saludos,
un dialogo con dos xbrowse
Estimados, estoy haciendo un dialogo que contenga dos browse con datos de dos bases de datos (dbf), sin ordenar estos archivos, el tema es que una base llamada documentos tiene 1 registro y la otra base llamada arqueo tiene 9 registros, cuando presento el dialogo, me muestra 9 lineas con el mismo registro en documentos y 9 lineas en arqueo, es decir, me muestra la cantidad de lineas del xbrowse activo con mayor dato que seria arqueo, no me respeta y muestra lo que corresponde a cada archivo. dejo parte de mi codigo Contador := 0 Select 90 SET ORDER TO 2 Vta_Vfa1->(OrdScope(0, cFecha1 )) Vta_Vfa1->(OrdScope(1, cFecha2 )) Seek cFecha1 If Found() Do While .not. eof() If Vta_Vfa1->Fem_Fac >= cFecha1 .and. Vta_Vfa1->Fem_Fac <= cFecha2 Tot_Venta := Tot_Venta + Vta_Vfa1->Tot_Fac Contador ++ Endif Select 90 skip Enddo Endif If Contador # 0 Select 55 Append Blank Replace (Archi)->Tip_Doc with "FVE" Replace (Archi)->Nro_Doc with Contador Replace (Archi)->Tot_Doc with Tot_Venta Endif DEFINE FONT oFon2 NAME "Arial" SIZE 0,-10 Bold DEFINE DIALOG oDlg2 RESOURCE "CIERRE_CAJA" Title "RESUMEN DE LAS VENTAS DEL DIA.." Select 55 Go top oBrw1:=TxBrowse():New(oDlg2) oBrw1:nMarqueeStyle := MARQSTYLE_HIGHLROW // Con cursor de todo el renglón oBrw1:nColDividerStyle := LINESTYLE_RAISED oBrw1:nRowDividerStyle := LINESTYLE_RAISED oBrw1:lColDividerComplete := (.T.) // (.T.) Mantiene siempre llena la pantalla oBrw1:nHeaderHeight := 35 // Altura de los encabezados oBrw1:nRowHeight := 25 // Altura del renglón oBrw1:nHeaderLines := 2 // Número de líneas de encabezados oBrw1:nDataLines := 2 // Número de líneas de detalle oBrw1:nFooterHeight := 20 // Altura del footer oBrw1:nFooterLines := 2 // Número de líneas en el footer oBrw1:lFooter := (.T.) // Sí queremos línea de footer oBrw1:lHScroll := (.T.) // Quitamos el scroll horizontal oBrw1:oFont := oFon2 oBrw1:bClrHeader := {|| { nRGB(000,000,000), nRGB(128,255,128) } } oBrw1:bClrFooter := {|| { nRGB(000,000,000), nRGB(150,200,200) } } oBrw1:bClrSel := {|| { nRGB(000,000,000), nRGB(128,255,128) } } oCol1 := oBrw1:AddCol() oCol1:bStrData := { || (Archi)->Tip_Doc } oCol1:cHeader := "T/Doc." oCol1:nHeadStrAlign := AL_CENTER //LEFT oCol1:nDataStrAlign := AL_RIGHT //LEFT oCol1:nWidth := 50 oCol1 := oBrw1:AddCol() oCol1:bStrData := { || Transform((Archi)->Nro_Doc,"999999999") } oCol1:cHeader := "Numero"+CRLF+"Docto." oCol1:nHeadStrAlign := AL_CENTER //LEFT oCol1:nDataStrAlign := AL_RIGHT //LEFT oCol1:nWidth := 70 oCol1 := oBrw1:AddCol() oCol1:bStrData := { || Transform( (Archi)->Tot_Doc,"@E 999,999,999") } oCol1:cHeader := "Total" oCol1:nHeadStrAlign := AL_CENTER //LEFT oCol1:nDataStrAlign := AL_RIGHT //LEFT oCol1:nWidth := 70 oBrw1:CreateFromResource(1000) SELECT 52 GO TOP oBrw5:=TxBrowse():New(oDlg2) oBrw5:nMarqueeStyle := MARQSTYLE_HIGHLROW // Con cursor de todo el renglón oBrw5:nColDividerStyle := LINESTYLE_RAISED oBrw5:nRowDividerStyle := LINESTYLE_RAISED oBrw5:lColDividerComplete := (.t.) // (.T.) Mantiene siempre llena la pantalla oBrw5:nHeaderHeight := 35 // Altura de los encabezados oBrw5:nRowHeight := 25 // Altura del renglón oBrw5:nHeaderLines := 2 // Número de líneas de encabezados oBrw5:nDataLines := 2 // Número de líneas de detalle oBrw5:nFooterHeight := 10 // Altura del footer oBrw5:nFooterLines := 1 // Número de líneas en el footer oBrw5:lFooter := (.F.) // Sí queremos línea de footer oBrw5:lHScroll := (.F.) // Quitamos el scroll horizontal oBrw5:oFont := oFon2 oBrw5:bClrHeader := {|| { nRGB(000,000,000), nRGB(128,255,128) } } oBrw5:bClrFooter := {|| { nRGB(000,000,000), nRGB(150,200,200) } } oBrw5:bClrSel := {|| { nRGB(000,000,000), nRGB(128,255,128) } } oCol5 := oBrw5:AddCol() oCol5:bStrData := { || ARQUEO->COD_PAGO } oCol5:cHeader := "Codigo" oCol5:nHeadStrAlign := AL_CENTER //LEFT oCol5:nDataStrAlign := AL_RIGHT //LEFT oCol5:nWidth := 70 oCol5 := oBrw5:AddCol() oCol5:bStrData := { || ARQUEO->NOM_PAGO } oCol5:cHeader := "Nombre.." oCol5:nHeadStrAlign := AL_CENTER //LEFT oCol5:nDataStrAlign := AL_LEFT //LEFT oCol5:nWidth := 250 oCol5 := oBrw5:AddCol() oCol5:bStrData := { || Transform( ARQUEO->STOTAL,"@E 999,999,999") } oCol5:cHeader := "Total" oCol5:nHeadStrAlign := AL_CENTER //LEFT oCol5:nDataStrAlign := AL_RIGHT //LEFT oCol5:nWidth := 70 oCol5:=oBrw5:AddCol() oCol5:AddResource("BOTONSI");oCol5:AddResource("BOTONNO") oCol5:cHeader := "Ct" oCol5:nDataStrAlign := AL_RIGHT oCol5:bBmpData := { || iif( ARQUEO->SUMARQUEO, 1, 2) } oBrw5:CreateFromResource(1001) FWH 8.12, bcc55, xHarbour
un dialogo con dos xbrowse
Luis: Prueba especificando en cada Browse la DBF que debe tomar, no uso DBFs pero con Tablas es así: oBrw:SetAdo(oRsHdr) Supongo que debe ser algo como oBrw5:SetDbf(cAlias) oBrw5:CreateFromResource(1001) Saludos
un dialogo con dos xbrowse
Como dice Armando, debes establecer el alias para cada uno de los browses. [code=fw:3ecyq54f]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">local</span> cAlias1, cAlias5<br /><br /><span style="color: #0000ff;">Select</span> <span style="color: #000000;">55</span><br />Go top<br />cAlias1:=<span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrw1:=TxBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>oDlg2<span style="color: #000000;">&#41;</span><br />oBrw1:<span style="color: #000000;">cAlias</span> := cAlias1<br /><br /><br /><span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">52</span><br />GO TOP<br />cAlias5:=<span style="color: #0000ff;">Alias</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oBrw5:=TxBrowse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>oDlg2<span style="color: #000000;">&#41;</span><br />oBrw5:<span style="color: #000000;">cAlias</span> := cAlias5<br /><br />&nbsp;</div>[/code:3ecyq54f]
un novizio su xharbour
Buongiorno a VoiDopo un periodo di inattività di programmazione in Clipper avrei bisogno di almeno ricompilare in un nuovo linguaggio per Win. Ho trovato questo xharbour e penso che sia l'ideale. Ma avrei bisogno di sapere come si usa perche a parte un manuale sulle varie funzioni non ho trovato niente. Qualcuno mi può aiutare?? come faccio a compilare un gruppo di file prg in xharb. Esiste qualcosa di documentazione (possibilmente in Ita) da popter scaricare.Grazie per ogni aiutoFrugo
un novizio su xharbour
Frugo,We recommend UEStudio as a visual proyect manager, with source code editor, built-in resources editor, etc. Please review this video:<!-- m --><a class="postlink" href="http://forums.fivetechsoft.com/viewtopic.php?t=12233">http://forums.fivetechsoft.com/viewtopic.php?t=12233</a><!-- m -->
un pequeño cambio para tprinter
Uno de los methodos introducidos recientemente no me funciona como se esperaba. Al centrar en vez coger el ancho de la pagina y calcular su centro , se usaba el "area de impresión de la impresora" por lo que el centro se calculaba despalzado. He creado dos nuevos metodos y corregido el anterior y ahora si me funciona correcto : METHOD CmVertPhySize() INLINE ::GetPhySize()[2] / 10 METHOD CmHorzPhySize() INLINE ::GetPhySize()[1] / 10 METHOD CmtrTextToCenter( cText, oFont ) INLINE ; ( ::CmHorzPhySize() /2 ) - ::CmtrGetTextWidth( cText, oFont ) / 2 Saludos a Todos.
un pequeño cambio para tprinter
Manuel, gracias, incluido para el próximo build <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
un pequeño ejemplo ...meteo.prg
Segui un poco con el ejemplo del uso de servicio meteorológico y lo he completado un poco mas . Aqui dejo el código del ejemplo, funciona bien si no usas proxi , lo colocas como meteo.prg en samples y lo compilas . [code=fw:3hecmpgo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// Our first DialogBox sample</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> obmp ,cBmp <br />&nbsp; <span style="color: #00C800;">local</span> oDlg, oIco ,cCity:= <span style="color: #ff0000;">"Marbella"</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> cUrl := <span style="color: #ff0000;">"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"</span><br />&nbsp; <span style="color: #00C800;">local</span> ofont<br />&nbsp; &nbsp;<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;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">14</span> <br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad a buscar"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">240</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">142</span>,<span style="color: #000000;">35</span> <span style="color: #0000ff;">pixel</span> NOBORDER <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;obmp:<span style="color: #000000;">lTransparent</span> := .t.<br />&nbsp; &nbsp; &nbsp;cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;oBmp:display()</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Introduce la ciudad a buscar :"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cCity <span style="color: #0000ff;">size</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg <br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">105</span>, <span style="color: #000000;">85</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">105</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFont ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> &nbsp;DlgBarTitle<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">" &nbsp;Servicio Metereologico"</span>,<span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphaBmp<span style="color: #000000;">\w</span>eather.bmp"</span> ,<span style="color: #000000;">44</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<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> cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oImage<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cResp := loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nZeroZeroClr<br />&nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// oImage:LoadFromString( cResp )</span><br />&nbsp; &nbsp; oImage:<span style="color: #000000;">LoadFromMemory</span><span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oImage:<span style="color: #000000;">HasAlpha</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oImage:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">endif</span><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: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp := <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br />&nbsp; <br /><span style="color: #00C800;">Return</span> cResp<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato := &nbsp;<span style="color: #ff0000;">"json"</span> &nbsp;<span style="color: #B900B9;">// "xml" &nbsp; </span><br /><span style="color: #00C800;">local</span> cUnits:= <span style="color: #ff0000;">"c"</span><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br />cDir:= cDir + <span style="color: #ff0000;">" where text= '"</span>+ cCity +<span style="color: #ff0000;">"' ) and u='"</span>+cUnits+<span style="color: #ff0000;">"'&format="</span> + Formato<br />&nbsp;<br />&nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// memowrit("eltiempo.txt",cResp )</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// msginfo("grabado")</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// winexec( "notepad.exe eltiempo.txt" )</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</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 /><span style="color: #00C800;">function</span> Leejson<span style="color: #000000;">&#40;</span>cResp <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hvar<br /><span style="color: #00C800;">local</span> hvar1,hvar2<br /><span style="color: #00C800;">local</span> cTexto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> oDlg, cBmp<br /><span style="color: #00C800;">local</span> nValor<br /><span style="color: #00C800;">local</span> oBmp<br /><span style="color: #00C800;">local</span> ofont1,ofont2<br /><br />hb_jsondecode<span style="color: #000000;">&#40;</span> cResp, @hvar <span style="color: #000000;">&#41;</span><br /><br />hvar1:= hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"results"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"channel"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> ofont1 <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">16</span> bold<br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">13</span> <br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Resultados"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">400</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br />&nbsp;<br />&nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span> ,<span style="color: #000000;">80</span> <span style="color: #0000ff;">SAY</span> alltrim<span style="color: #000000;">&#40;</span>hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"title"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Font</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha : "</span>+ alltrim<span style="color: #000000;">&#40;</span>hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"created"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"wind"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Viento"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Sensacion Termica :"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"chill"</span><span style="color: #000000;">&#93;</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">186</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"temperature"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Direcccion "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"direction"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Velocidad "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"atmosphere"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">85</span>, <span style="color: #000000;">95</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Atmosfera "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1 <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Humedad "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"humidity"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" %"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Presion Barometrica "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp; <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp; <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;nValor:= hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"rising"</span><span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> &nbsp;nValor == <span style="color: #ff0000;">"0"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Estable"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"1"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Subiendo"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"2"</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Bajando"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Tendencia Barometrica: "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> cTexto <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"astronomy"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">160</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Orto "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunrise"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Ocaso "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunset"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; <br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"item"</span><span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; cTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"condition"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; cTexto:=<span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+cTexto+<span style="color: #ff0000;">".gif"</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">12</span> &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cargaBmp<span style="color: #000000;">&#40;</span>cTexto,oBmp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; @ <span style="color: #000000;">184</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2<br />&nbsp; &nbsp;<br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">paint</span> <span style="color: #000000;">&#40;</span> cargaBmp<span style="color: #000000;">&#40;</span>cTexto,obmp<span style="color: #000000;">&#41;</span>, DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; ofont1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; ofont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<br /><br />&nbsp;<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> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, nHeight, nCorrec , lColor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nDlgHeight := oDlg:<span style="color: #000000;">nHeight</span><br /><span style="color: #00C800;">Local</span> aColor &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.40</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.60</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nHeight &nbsp;:= <span style="color: #000000;">72</span><br /><span style="color: #00C800;">DEFAULT</span> nCorrec &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> lColor &nbsp; := .F.<br /><br />nDlgHeight:= nDlgHeight+ncorrec<br /><span style="color: #00C800;">IF</span> lColor<br />&nbsp; &nbsp;GradienTfill<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">hDC</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight<span style="color: #000000;">-20</span>,oDlg:<span style="color: #000000;">nWidth</span>, aColor ,.t.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight -<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DlgBarTitle<span style="color: #000000;">&#40;</span> oWnd, cTitle, cBmp ,nHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTitle<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nColText := <span style="color: #000000;">180</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRowImg &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cTitle &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nHeight := <span style="color: #000000;">48</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nHeight < <span style="color: #000000;">48</span><br />&nbsp; &nbsp; &nbsp; nColText := <span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp; nRowImg &nbsp;:= <span style="color: #000000;">12</span><br />&nbsp; &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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> &nbsp;<span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+1</span>, nHeight<span style="color: #000000;">+1</span> <span style="color: #0000ff;">of</span> oWnd SHADOWSIZE <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ &nbsp;nRowImg, &nbsp;<span style="color: #000000;">10</span> &nbsp;TITLEIMG &nbsp;<span style="color: #0000ff;">OF</span> oTitle BITMAP cBmp &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> REFLEX ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TRANSPARENT<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; @ &nbsp;nRowImg<span style="color: #000000;">-2</span> , &nbsp;nColText TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nShadow</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nClrLine1</span> := nrgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nClrLine2</span> := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oWnd:<span style="color: #000000;">oTop</span>:= oTitle<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /><br /><span style="color: #00C800;">RETURN</span> oTitle<br /><br /><br />&nbsp;</div>[/code:3hecmpgo]
un pequeño ejemplo ...meteo.prg
Gracias distinguido por compartir. Sólo faltaría hacerlo funcionar con PROXY. Saludos, Adhemar
un pequeño ejemplo ...meteo.prg
Imponente, gracias.
un pequeño ejemplo ...meteo.prg
[quote="acuellar":679o7noe]Gracias distinguido por compartir. Sólo faltaría hacerlo funcionar con PROXY. Saludos, Adhemar[/quote:679o7noe] Seria ( en teoria ) añadir estas dos lineas en las dos llamadas a ohttp ...no lo he probado pero si tu tienes proxi agradecería me comentaras si funciona . [code=fw:679o7noe]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cProxi:= <span style="color: #ff0000;">"192.10.1.1:8080"</span> <span style="color: #B900B9;">// tu configuracion proxi . &nbsp;</span><br /><br />&nbsp;oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY,cProxi &nbsp;<span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// linea nueva</span><br /><br />&nbsp;oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br /><br />&nbsp;</div>[/code:679o7noe]
un pequeño ejemplo ...meteo.prg
Ya hice los cambios indicados y no funciona [code=fw:zr5ikqre]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; cProxi:= <span style="color: #ff0000;">"192.10.1.7:8080"</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY,cProxi &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error al cargar el tiempo"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br />&nbsp;</div>[/code:zr5ikqre] Saludos, Adhemar
un pequeño ejemplo ...meteo.prg
Gracias Manuel!!!
un pequeño ejemplo ...meteo.prg
Adhemar. ¿ Has declarado el valor de HTTPREQUEST_PROXYSETTING_PROXY ? # define HTTPREQUEST_PROXYSETTING_PROXY 2 si con eso no funciona .... ¿ Poniendo los ajustes del proxi asi ? : para el archivo json : oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_PROXY, "proxy_server:80" , "*.yahooapis.com" ) y para la imagen : oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_PROXY, "proxy_server:80" , "*.yimg.com" )
un pequeño ejemplo ...meteo.prg
Se ve excelente, gracias!
un pequeño ejemplo ...meteo.prg
Se puede acomodar la prevision de varios dias .... lo pongo a lo feo , seria bueno hacerlo "bonito" ... el primer dia es el presente y da la maxinma y la mínima . [code=fw:19jvd0hb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />  hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"item"</span><span style="color: #000000;">&#93;</span> <br />      <br />       <span style="color: #B900B9;">// codigo nuevo insertado despues de "item" </span><br />  <br />     aHTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"forecast"</span><span style="color: #000000;">&#93;</span><br />    <br />     <span style="color: #00C800;">for</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aHTexto<span style="color: #000000;">&#41;</span><br />     <br />          hDias:=aHTexto<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> <br />          <br />         cTexto:= <span style="color: #ff0000;">"Fecha: "</span> + hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"date"</span><span style="color: #000000;">&#93;</span> +CRLF<br />         cTexto+= <span style="color: #ff0000;">"Dia  : "</span> + hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"day"</span><span style="color: #000000;">&#93;</span> +CRLF <br />         cTexto+= <span style="color: #ff0000;">"Maxima: "</span> + hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"high"</span><span style="color: #000000;">&#93;</span> +CRLF <br />         cTexto+= <span style="color: #ff0000;">"Minima: "</span> + hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"low"</span><span style="color: #000000;">&#93;</span> +CRLF  <br />         cTexto+= <span style="color: #ff0000;">"Prevision:"</span> + hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"text"</span><span style="color: #000000;">&#93;</span> +CRLF  <br />         cTexto+= <span style="color: #ff0000;">"Codigo de imagen :"</span> + hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span> +CRLF  <br />         <br />         <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> cTexto <span style="color: #000000;">&#41;</span> <br />     <span style="color: #00C800;">next</span><br /><br /><br /> </div>[/code:19jvd0hb]
un pequeño ejemplo ...meteo.prg
thanks Manuel, two questions ... how I can control ( on the test) if I must use proxy or not ? for the week status we can use xbrowse as array but I not found the possibility how show the image
un pequeño ejemplo ...meteo.prg
it return a code : [code=fw:20bsitu7]<div class="fw" id="{CB}" style="font-family: monospace;">Code&nbsp; &nbsp; Description<br /><span style="color: #000000;">0</span>&nbsp; &nbsp;tornado<br /><span style="color: #000000;">1</span>&nbsp; &nbsp;tropical storm<br /><span style="color: #000000;">2</span>&nbsp; &nbsp;hurricane<br /><span style="color: #000000;">3</span>&nbsp; &nbsp;severe thunderstorms<br /><span style="color: #000000;">4</span>&nbsp; &nbsp;thunderstorms<br /><span style="color: #000000;">5</span>&nbsp; &nbsp;mixed rain and snow<br /><span style="color: #000000;">6</span>&nbsp; &nbsp;mixed rain and sleet<br /><span style="color: #000000;">7</span>&nbsp; &nbsp;mixed snow and sleet<br /><span style="color: #000000;">8</span>&nbsp; &nbsp;freezing drizzle<br /><span style="color: #000000;">9</span>&nbsp; &nbsp;drizzle<br /><span style="color: #000000;">10</span>&nbsp; freezing rain<br /><span style="color: #000000;">11</span>&nbsp; showers<br /><span style="color: #000000;">12</span>&nbsp; showers<br /><span style="color: #000000;">13</span>&nbsp; snow flurries<br /><span style="color: #000000;">14</span>&nbsp; light snow showers<br /><span style="color: #000000;">15</span>&nbsp; blowing snow<br /><span style="color: #000000;">16</span>&nbsp; snow<br /><span style="color: #000000;">17</span>&nbsp; hail<br /><span style="color: #000000;">18</span>&nbsp; sleet<br /><span style="color: #000000;">19</span>&nbsp; dust<br /><span style="color: #000000;">20</span>&nbsp; foggy<br /><span style="color: #000000;">21</span>&nbsp; haze<br /><span style="color: #000000;">22</span>&nbsp; smoky<br /><span style="color: #000000;">23</span>&nbsp; blustery<br /><span style="color: #000000;">24</span>&nbsp; windy<br /><span style="color: #000000;">25</span>&nbsp; cold<br /><span style="color: #000000;">26</span>&nbsp; cloudy<br /><span style="color: #000000;">27</span>&nbsp; mostly cloudy <span style="color: #000000;">&#40;</span>night<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">28</span>&nbsp; mostly cloudy <span style="color: #000000;">&#40;</span>day<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">29</span>&nbsp; partly cloudy <span style="color: #000000;">&#40;</span>night<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">30</span>&nbsp; partly cloudy <span style="color: #000000;">&#40;</span>day<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">31</span>&nbsp; clear <span style="color: #000000;">&#40;</span>night<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">32</span>&nbsp; sunny<br /><span style="color: #000000;">33</span>&nbsp; fair <span style="color: #000000;">&#40;</span>night<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">34</span>&nbsp; fair <span style="color: #000000;">&#40;</span>day<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">35</span>&nbsp; mixed rain and hail<br /><span style="color: #000000;">36</span>&nbsp; hot<br /><span style="color: #000000;">37</span>&nbsp; isolated thunderstorms<br /><span style="color: #000000;">38</span>&nbsp; scattered thunderstorms<br /><span style="color: #000000;">39</span>&nbsp; scattered thunderstorms<br /><span style="color: #000000;">40</span>&nbsp; scattered showers<br /><span style="color: #000000;">41</span>&nbsp; heavy snow<br /><span style="color: #000000;">42</span>&nbsp; scattered snow showers<br /><span style="color: #000000;">43</span>&nbsp; heavy snow<br /><span style="color: #000000;">44</span>&nbsp; partly cloudy<br /><span style="color: #000000;">45</span>&nbsp; thundershowers<br /><span style="color: #000000;">46</span>&nbsp; snow showers<br /><span style="color: #000000;">47</span>&nbsp; isolated thundershowers<br /><span style="color: #000000;">3200</span>&nbsp; &nbsp; not available<br /><br /><br />&nbsp;</div>[/code:20bsitu7] for a sample : <!-- m --><a class="postlink" href="https://s.yimg.com/zz/combo?a/i/us/we/52/28.gif">https://s.yimg.com/zz/combo?a/i/us/we/52/28.gif</a><!-- m -->
un pequeño ejemplo ...meteo.prg
Gracias Manuel Con solo declarar [code=fw:i7kf2dm2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /># <span style="color: #0000ff;">define</span> HTTPREQUEST_PROXYSETTING_PROXY <span style="color: #000000;">2</span><br /> </div>[/code:i7kf2dm2] Funcionó perfecto. Cómo sería para obtener la mínima y la máxima del día?? Saludos, Adhemar
un pequeño ejemplo ...meteo.prg
I'm thinkg so: Local aforecast:= array(7,6) aHTexto:=hVar2["forecast"] for i=1 to len(aHTexto) hDias:=aHTexto[i] cData:= hDias["date"] cDay:= hDias["day"] cMax:= str(hDias["high"] ) cMin:= str(hDias["low"] ) cPrev:= hDias["text"] cImage:="http://l.yimg.com/a/i/us/we/52/"+hDias["code"]+".gif" AaDd(aForecast[i],{cData,cDay,cMax,cMin,cPrev,cImage}) next but there is something no run
un pequeño ejemplo ...meteo.prg
Perfecto. Gracias Manuel. Saludos, Adhemar
un pequeño ejemplo ...meteo.prg
Silvio , necesitas recoger las imagenes de internet . Tienes dos formas : 1.- grabar imagen en un temp 2.- cargarlas sobre la marcha. Cuidado con los tiempos de carga de las imagenes , tienes que dar timepo a que se cogan de internet o fallará. [code=fw:xibat5jp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp := <span style="color: #00C800;">nil</span><br /><br />   <span style="color: #00C800;">Try</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      memowrit<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"cResp, "</span>temp1.img<span style="color: #ff0000;">")<br />        Catch<br />      MsgStop( "</span>Error<span style="color: #ff0000;">" )<br />      Return cResp<br />   End Try<br />  <br />Return cResp<br /><br /><br /></span></div>[/code:xibat5jp]
un pequeño ejemplo ...meteo.prg
Please Manuel, Local aforecast:= {} Local header_date:= I18n("Data") Local header_day:= I18n("Giorno") Local header_max:= I18n("Massima") Local header_min:= I18n("Minima") Local header_prev:= I18n("Previsione") Local header_image:= I18n(" ") Local oBrwForecast DEFINE DIALOG oDlg TITLE "Risultati" [b:19t8srxt]SIZE 500, 550 [/b:19t8srxt]pixel color CLR_BLACK,CLR_WHITE aHTexto:=hVar2["forecast"] for i=1 to len(aHTexto) hDias:=aHTexto[i] /* cTexto:= "Data: " + hDias["date"] +CRLF cTexto+= "giorno : " + hDias["day"] +CRLF cTexto+= "Massima: " + hDias["high"] +CRLF cTexto+= "Minima: " + hDias["low"] +CRLF cTexto+= "Previsione:" + hDias["text"] +CRLF cTexto+= "Codigo de imagen :" + hDias["code"] +CRLF*/ * msginfo( cTexto ) cData:= hDias["date"] cDay:= hDias["day"] cMax:= hDias["high"] cMin:= hDias["low"] cPrev:= hDias["text"] cImage:= hDias["code"] // "http://l.yimg.com/a/i/us/we/52/"+hDias["code"]+".gif" [b:19t8srxt] AaDd(aForecast,{cData,cDay,cMax,cMin,cPrev,cImage})[/b:19t8srxt] next @ 185,10 XBROWSE oBrwForecast SIZE 250,060 PIXEL OF oDlg; DATASOURCE aForecast ; COLUMNS 1,2,3,4,5,6 ; HEADERS header_date,header_day,header_max,header_min,header_prev,header_image; COLSIZES 45, 45,45,50,80,45 WITH OBJECT oBrwForecast :nMarqueeStyle := MARQSTYLE_HIGHLROW :lHScroll := .f. :CreateFromCode() END It showed on horizontal 1 record one day instead I wish show on vertical ...mhm,.. perhaps it need a matricial math but Inot Know how make it
un pequeño ejemplo ...meteo.prg
after run ok... now gime me an error when load forecast but it load the array the same ... I not understood why
un pequeño ejemplo ...meteo.prg
[quote="Silvio.Falconi":1zrlzf1x]after run ok... now gime me an error when load forecast but it load the array the same ... I not understood why[/quote:1zrlzf1x] Probablemente una de las llamadas a los bmps esté fallando por falta de tiempo en la carga ( se carga antes la pantalla que se descarga el bmp ) .
un pequeño ejemplo ...meteo.prg
Silvio , Nueva versión con tu propuesta <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> : [code=fw:2fyj22om]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><br /><span style="color: #B900B9;">// Our first DialogBox sample</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> obmp ,cBmp <br />&nbsp; <span style="color: #00C800;">local</span> oDlg, oIco ,cCity:= <span style="color: #ff0000;">"Marbella"</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> cUrl := <span style="color: #ff0000;">"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"</span><br />&nbsp; <span style="color: #00C800;">local</span> ofont<br />&nbsp; &nbsp;<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;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">14</span> <br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad a buscar"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">240</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">142</span>,<span style="color: #000000;">35</span> <span style="color: #0000ff;">pixel</span> NOBORDER <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;obmp:<span style="color: #000000;">lTransparent</span> := .t.<br />&nbsp; &nbsp; &nbsp;cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;oBmp:display()</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Introduce la ciudad a buscar :"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cCity <span style="color: #0000ff;">size</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg <br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">105</span>, <span style="color: #000000;">85</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">105</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFont ; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> &nbsp;DlgBarTitle<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">" &nbsp;Servicio Metereologico"</span>,<span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphaBmp<span style="color: #000000;">\w</span>eather.bmp"</span> ,<span style="color: #000000;">44</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp;<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> cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oImage<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cResp := loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nZeroZeroClr<br />&nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// oImage:LoadFromString( cResp )</span><br />&nbsp; &nbsp; oImage:<span style="color: #000000;">LoadFromMemory</span><span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oImage:<span style="color: #000000;">HasAlpha</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oImage:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">endif</span><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: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp := <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br />&nbsp; <br /><span style="color: #00C800;">Return</span> cResp<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato := &nbsp;<span style="color: #ff0000;">"json"</span> &nbsp;<span style="color: #B900B9;">// "xml" &nbsp; </span><br /><span style="color: #00C800;">local</span> cUnits:= <span style="color: #ff0000;">"c"</span><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br />cDir:= cDir + <span style="color: #ff0000;">" where text= '"</span>+ cCity +<span style="color: #ff0000;">"' ) and u='"</span>+cUnits+<span style="color: #ff0000;">"'&format="</span> + Formato<br />&nbsp;<br />&nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// memowrit("eltiempo.txt",cResp )</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// msginfo("grabado")</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// winexec( "notepad.exe eltiempo.txt" )</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</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 /><span style="color: #00C800;">function</span> Leejson<span style="color: #000000;">&#40;</span>cResp <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hvar<br /><span style="color: #00C800;">local</span> hvar1,hvar2<br /><span style="color: #00C800;">local</span> cTexto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> oDlg, cBmp<br /><span style="color: #00C800;">local</span> nValor<br /><span style="color: #00C800;">local</span> oBmp<br /><span style="color: #00C800;">local</span> ofont1,ofont2<br /><span style="color: #00C800;">Local</span> oBrwForecast<br /><br /><span style="color: #00C800;">local</span> aForecast:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><span style="color: #00C800;">local</span> i<br /><span style="color: #00C800;">local</span> cImage,cMin,cMax,cData,cDay<br /><span style="color: #00C800;">local</span> ahTexto,hDias,cPrev<br /><span style="color: #00C800;">local</span> cUrl<br /><br />hb_jsondecode<span style="color: #000000;">&#40;</span> cResp, @hvar <span style="color: #000000;">&#41;</span><br /><br />hvar1:= hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"results"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"channel"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> ofont1 <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">16</span> bold<br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">13</span> <br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Resultados"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">550</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br />&nbsp;<br />&nbsp;<br />&nbsp; &nbsp; @ <span style="color: #000000;">10</span> ,<span style="color: #000000;">80</span> <span style="color: #0000ff;">SAY</span> alltrim<span style="color: #000000;">&#40;</span>hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"title"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Font</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha : "</span>+ alltrim<span style="color: #000000;">&#40;</span>hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"created"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"wind"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Viento"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Sensacion Termica :"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"chill"</span><span style="color: #000000;">&#93;</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">186</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"temperature"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Direcccion "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"direction"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Velocidad "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"atmosphere"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">85</span>, <span style="color: #000000;">95</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Atmosfera "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1 <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Humedad "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"humidity"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" %"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Presion Barometrica "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp; <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp; <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;nValor:= hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"rising"</span><span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> &nbsp;nValor == <span style="color: #ff0000;">"0"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Estable"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"1"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Subiendo"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"2"</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Bajando"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Tendencia Barometrica: "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> cTexto <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"astronomy"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">160</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Orto "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunrise"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Ocaso "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunset"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />&nbsp; <br />&nbsp; <br />&nbsp; <br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"item"</span><span style="color: #000000;">&#93;</span> <br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<br /><br />aHTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"forecast"</span><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">for</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aHTexto<span style="color: #000000;">&#41;</span><br /><br /><br />hDias:=aHTexto<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br /><br /><br />cData:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"date"</span><span style="color: #000000;">&#93;</span><br />cDay:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"day"</span><span style="color: #000000;">&#93;</span><br />cMax:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"high"</span><span style="color: #000000;">&#93;</span><br />cMin:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"low"</span><span style="color: #000000;">&#93;</span><br />cPrev:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"text"</span><span style="color: #000000;">&#93;</span><br />cUrl:= <span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">".gif"</span><br /><br />cImage:= loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span> &nbsp; <br /><br />Aadd<span style="color: #000000;">&#40;</span>aForecast,<span style="color: #000000;">&#123;</span>cData,cDay,cMax,cMin,cPrev,cImage<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">next</span><br /><br /><br />@ <span style="color: #000000;">185</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">XBROWSE</span> oBrwForecast <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">230</span>,<span style="color: #000000;">060</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg;<br />DATASOURCE aForecast ;<br />COLUMNS <span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span> ;<br />HEADERS <span style="color: #ff0000;">"Fecha"</span>,<span style="color: #ff0000;">"Dia"</span>,<span style="color: #ff0000;">"maxima"</span>,<span style="color: #ff0000;">"minima"</span>,<span style="color: #ff0000;">"prevision"</span>,<span style="color: #ff0000;">"imagen"</span> ;<br />COLSIZES <span style="color: #000000;">45</span>, <span style="color: #000000;">45</span>,<span style="color: #000000;">45</span>,<span style="color: #000000;">50</span>,<span style="color: #000000;">80</span>,<span style="color: #000000;">45</span><br /><br />WITH OBJECT oBrwForecast<br />:<span style="color: #000000;">nMarqueeStyle</span> := MARQSTYLE_HIGHLROW<br />&nbsp;:<span style="color: #000000;">lHScroll</span> := .f.<br /><br /><br />&nbsp;:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<br />END<br />&nbsp; &nbsp;<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; cTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"condition"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; cTexto:=<span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+cTexto+<span style="color: #ff0000;">".gif"</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">12</span> &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; cargaBmp<span style="color: #000000;">&#40;</span>cTexto,oBmp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; @ <span style="color: #000000;">260</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2<br />&nbsp; &nbsp;<br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">paint</span> &nbsp;DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span> <br />&nbsp; <br />&nbsp; ofont1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; ofont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<br /><br />&nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, nHeight, nCorrec , lColor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nDlgHeight := oDlg:<span style="color: #000000;">nHeight</span><br /><span style="color: #00C800;">Local</span> aColor &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.40</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.60</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nHeight &nbsp;:= <span style="color: #000000;">72</span><br /><span style="color: #00C800;">DEFAULT</span> nCorrec &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> lColor &nbsp; := .F.<br /><br />nDlgHeight:= nDlgHeight+ncorrec<br /><span style="color: #00C800;">IF</span> lColor<br />&nbsp; &nbsp;GradienTfill<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">hDC</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight<span style="color: #000000;">-20</span>,oDlg:<span style="color: #000000;">nWidth</span>, aColor ,.t.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight -<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DlgBarTitle<span style="color: #000000;">&#40;</span> oWnd, cTitle, cBmp ,nHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTitle<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nColText := <span style="color: #000000;">180</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRowImg &nbsp;:= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cTitle &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nHeight := <span style="color: #000000;">48</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nHeight < <span style="color: #000000;">48</span><br />&nbsp; &nbsp; &nbsp; nColText := <span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp; nRowImg &nbsp;:= <span style="color: #000000;">12</span><br />&nbsp; &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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> &nbsp;<span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+1</span>, nHeight<span style="color: #000000;">+1</span> <span style="color: #0000ff;">of</span> oWnd SHADOWSIZE <span style="color: #000000;">0</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;@ &nbsp;nRowImg, &nbsp;<span style="color: #000000;">10</span> &nbsp;TITLEIMG &nbsp;<span style="color: #0000ff;">OF</span> oTitle BITMAP cBmp &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> REFLEX ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TRANSPARENT<br />&nbsp; &nbsp;<br />&nbsp; &nbsp; @ &nbsp;nRowImg<span style="color: #000000;">-2</span> , &nbsp;nColText TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nShadow</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nClrLine1</span> := nrgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nClrLine2</span> := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oWnd:<span style="color: #000000;">oTop</span>:= oTitle<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; <br /><br /><span style="color: #00C800;">RETURN</span> oTitle<br /><br />&nbsp;</div>[/code:2fyj22om]
un pequeño ejemplo ...meteo.prg
Manuel, here not load the array into xbrowse and the xbrowse is empty ... Mesa Aquí xbrowse permanece vacío y la matriz no cobrar probablemente tal vez tenemos que cargar la imagen después y no antes. Podemos guardar el vínculo de la imagen y cuando creo la tabla xbrowse la imagen podría cobrar I tried with Aadd(aForecast,{cData,cDay,cMax,cMin,cPrev,[b:x120yzni]cUrl[/b:x120yzni]} ) ... WITH OBJECT oBrwForecast:aCols[6] :nEditType := TYPE_IMAGE :lBmpStretch := .F. :lBmpTransparent := .t. :bStrImage := { || loadBmp(aForecast[6])} :bStrData :={ || ""} END pero se necesita mucho tiempo para cargar la imagen
un pequeño ejemplo ...meteo.prg
Manuel, un gran aporte Gracias
un pequeño ejemplo ...meteo.prg
perfecto si muestra el xbrw con los días de la semana, gracias.
un pequeño ejemplo ...meteo.prg
[quote="sysctrl2":ogi84q03]perfecto si muestra el xbrw con los días de la semana, gracias.[/quote:ogi84q03] but here not load images
un pequeño ejemplo ...meteo.prg
A veces si a veces no ... depende de la velocidad de conexión , no encuentro como solucionarlo <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> . Una soluciuon es tener descargados ya las imágenes , o grabarlas en un archivo temporal .... Mañana lo repienso a ver si lo solucionamos [img:3haegd0e]http&#58;//i59&#46;tinypic&#46;com/2icbb6o&#46;png[/img:3haegd0e]
un pequeño ejemplo ...meteo.prg
[b:1h7f27vs]I found the solution [/b:1h7f27vs] !!!!!!!!!!!!!!!!! [img:1h7f27vs]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2014/12/meteo&#46;jpg[/img:1h7f27vs] no xbrowse !!!! the code ( to make best) [code=fw:1h7f27vs]<div class="fw" id="{CB}" style="font-family: monospace;"> <br /><br /><br /><span style="color: #B900B9;">// Our first DialogBox sample</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> obmp ,cBmp<br />&nbsp; <span style="color: #00C800;">local</span> oDlg, oIco ,cCity:= <span style="color: #ff0000;">"Marbella"</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> cUrl := <span style="color: #ff0000;">"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"</span><br />&nbsp; <span style="color: #00C800;">local</span> ofont<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;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">14</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad a buscar"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">240</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">142</span>,<span style="color: #000000;">35</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br /><br />&nbsp; &nbsp; &nbsp;obmp:<span style="color: #000000;">lTransparent</span> := .t.<br />&nbsp; &nbsp; &nbsp;cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;oBmp:display()</span><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Introduce la ciudad a buscar :"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cCity <span style="color: #0000ff;">size</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">105</span>, <span style="color: #000000;">85</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">105</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> &nbsp;DlgBarTitle<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">" &nbsp;Servicio Metereologico"</span>,<span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphaBmp<span style="color: #000000;">\w</span>eather.bmp"</span> ,<span style="color: #000000;">44</span> <span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .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: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oImage<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cResp := loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nZeroZeroClr<br />&nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// oImage:LoadFromString( cResp )</span><br />&nbsp; &nbsp; oImage:<span style="color: #000000;">LoadFromMemory</span><span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oImage:<span style="color: #000000;">HasAlpha</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oImage:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">endif</span><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: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp := <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br /><br /><span style="color: #00C800;">Return</span> cResp<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato := &nbsp;<span style="color: #ff0000;">"json"</span> &nbsp;<span style="color: #B900B9;">// "xml"</span><br /><span style="color: #00C800;">local</span> cUnits:= <span style="color: #ff0000;">"c"</span><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br />cDir:= cDir + <span style="color: #ff0000;">" where text= '"</span>+ cCity +<span style="color: #ff0000;">"' ) and u='"</span>+cUnits+<span style="color: #ff0000;">"'&format="</span> + Formato<br /><br />&nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// memowrit("eltiempo.txt",cResp )</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// msginfo("grabado")</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// winexec( "notepad.exe eltiempo.txt" )</span><br /><br />&nbsp; &nbsp; &nbsp;leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</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 /><span style="color: #00C800;">function</span> Leejson<span style="color: #000000;">&#40;</span>cResp <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hvar<br /><span style="color: #00C800;">local</span> hvar1,hvar2<br /><span style="color: #00C800;">local</span> cTexto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> oDlg, cBmp<br /><span style="color: #00C800;">local</span> nValor<br /><span style="color: #00C800;">local</span> oBmp<br /><span style="color: #00C800;">local</span> ofont1,ofont2<br /><span style="color: #00C800;">Local</span> oBrwForecast<br /><br /><br /><span style="color: #00C800;">local</span> i<br /><span style="color: #00C800;">local</span> cImage,cMin,cMax,cData,cDay<br /><span style="color: #00C800;">local</span> ahTexto,hDias,cPrev<br /><span style="color: #00C800;">local</span> cUrl<br /><br />hb_jsondecode<span style="color: #000000;">&#40;</span> cResp, @hvar <span style="color: #000000;">&#41;</span><br /><br />hvar1:= hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"results"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"channel"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> ofont1 <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">16</span> bold<br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">13</span><br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Resultados"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">600</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br /><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">10</span> ,<span style="color: #000000;">80</span> <span style="color: #0000ff;">SAY</span> alltrim<span style="color: #000000;">&#40;</span>hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"title"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Font</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha : "</span>+ alltrim<span style="color: #000000;">&#40;</span>hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"created"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"wind"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Viento"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Sensacion Termica :"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"chill"</span><span style="color: #000000;">&#93;</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">186</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"temperature"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Direcccion "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"direction"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Velocidad "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"atmosphere"</span><span style="color: #000000;">&#93;</span><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">85</span>, <span style="color: #000000;">95</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Atmosfera "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Humedad "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"humidity"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" %"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Presion Barometrica "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp; <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp; <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp;nValor:= hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"rising"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> &nbsp;nValor == <span style="color: #ff0000;">"0"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Estable"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"1"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Subiendo"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"2"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Bajando"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Tendencia Barometrica: "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> cTexto <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"astronomy"</span><span style="color: #000000;">&#93;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">160</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Orto "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunrise"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Ocaso "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunset"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"item"</span><span style="color: #000000;">&#93;</span><br /><br /><br /><br /><br />aHTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"forecast"</span><span style="color: #000000;">&#93;</span><br />nRow:=<span style="color: #000000;">185</span><br />nCol:= <span style="color: #000000;">5</span><br /><span style="color: #00C800;">for</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aHTexto<span style="color: #000000;">&#41;</span><br /><br /><br />hDias:=aHTexto<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br /><br /><br />cData:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"date"</span><span style="color: #000000;">&#93;</span><br />cDay:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"day"</span><span style="color: #000000;">&#93;</span><br />cMax:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"high"</span><span style="color: #000000;">&#93;</span><br />cMin:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"low"</span><span style="color: #000000;">&#93;</span><br />cPrev:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"text"</span><span style="color: #000000;">&#93;</span><br />cUrl:= <span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">".gif"</span><br /><br /><br /><br /><br />@ nRow,nCol <span style="color: #0000ff;">say</span> cData <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol <span style="color: #0000ff;">say</span> cDay <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol <span style="color: #0000ff;">say</span> cMax <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol <span style="color: #0000ff;">say</span> cMin <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />&nbsp;@ nRow,nCol <span style="color: #0000ff;">say</span> cPrev <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">10</span><br /><br />&nbsp; @ nRow,nCol &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br /><br />&nbsp; &nbsp; &nbsp; cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp<span style="color: #000000;">&#41;</span><br /><br />nCol+=<span style="color: #000000;">50</span><br />nRow:=<span style="color: #000000;">185</span><br /><span style="color: #00C800;">next</span><br /><br /><br /><br /><br /><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; cTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"condition"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; cTexto:=<span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+cTexto+<span style="color: #ff0000;">".gif"</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">12</span> &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br /><br />&nbsp; &nbsp; &nbsp; cargaBmp<span style="color: #000000;">&#40;</span>cTexto,oBmp<span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">280</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2<br /><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">paint</span> &nbsp;DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; ofont1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; ofont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, nHeight, nCorrec , lColor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nDlgHeight := oDlg:<span style="color: #000000;">nHeight</span><br /><span style="color: #00C800;">Local</span> aColor &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.40</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.60</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nHeight &nbsp;:= <span style="color: #000000;">72</span><br /><span style="color: #00C800;">DEFAULT</span> nCorrec &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> lColor &nbsp; := .F.<br /><br />nDlgHeight:= nDlgHeight+ncorrec<br /><span style="color: #00C800;">IF</span> lColor<br />&nbsp; &nbsp;GradienTfill<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">hDC</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight<span style="color: #000000;">-20</span>,oDlg:<span style="color: #000000;">nWidth</span>, aColor ,.t.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight -<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DlgBarTitle<span style="color: #000000;">&#40;</span> oWnd, cTitle, cBmp ,nHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTitle<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nColText := <span style="color: #000000;">180</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRowImg &nbsp;:= <span style="color: #000000;">0</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cTitle &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nHeight := <span style="color: #000000;">48</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nHeight < <span style="color: #000000;">48</span><br />&nbsp; &nbsp; &nbsp; nColText := <span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp; nRowImg &nbsp;:= <span style="color: #000000;">12</span><br />&nbsp; &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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> &nbsp;<span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+1</span>, nHeight<span style="color: #000000;">+1</span> <span style="color: #0000ff;">of</span> oWnd SHADOWSIZE <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;@ &nbsp;nRowImg, &nbsp;<span style="color: #000000;">10</span> &nbsp;TITLEIMG &nbsp;<span style="color: #0000ff;">OF</span> oTitle BITMAP cBmp &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> REFLEX ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TRANSPARENT<br /><br />&nbsp; &nbsp; @ &nbsp;nRowImg<span style="color: #000000;">-2</span> , &nbsp;nColText TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nShadow</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nClrLine1</span> := nrgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nClrLine2</span> := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oWnd:<span style="color: #000000;">oTop</span>:= oTitle<br /><br /><br /><br /><span style="color: #00C800;">RETURN</span> oTitle<br /><br />&nbsp;</div>[/code:1h7f27vs]
un pequeño ejemplo ...meteo.prg
Silvio . Yeaaaaa very very good <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
un pequeño ejemplo ...meteo.prg
[img:2c8l7wao]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2014/12/METEO2&#46;jpg[/img:2c8l7wao] other modifies [code=fw:2c8l7wao]<div class="fw" id="{CB}" style="font-family: monospace;"><br />aHTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"forecast"</span><span style="color: #000000;">&#93;</span><br />nRow:=<span style="color: #000000;">185</span><br />nCol:= <span style="color: #000000;">5</span><br /><span style="color: #00C800;">for</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aHTexto<span style="color: #000000;">&#41;</span><br />hDias:=aHTexto<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />cData:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"date"</span><span style="color: #000000;">&#93;</span><br />cDay:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"day"</span><span style="color: #000000;">&#93;</span><br />cMax:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"high"</span><span style="color: #000000;">&#93;</span><br />cMin:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"low"</span><span style="color: #000000;">&#93;</span><br />cPrev:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"text"</span><span style="color: #000000;">&#93;</span><br />cUrl:= <span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">".gif"</span><br />@ nRow,nCol <span style="color: #0000ff;">say</span> cData <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol<span style="color: #000000;">+15</span> <span style="color: #0000ff;">say</span> cDay <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol<span style="color: #000000;">+15</span> <span style="color: #0000ff;">say</span> cMax <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol<span style="color: #000000;">+15</span> <span style="color: #0000ff;">say</span> cMin <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol <span style="color: #0000ff;">say</span> cPrev <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">10</span><br />@ nRow,nCol &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br />cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp<span style="color: #000000;">&#41;</span><br />nCol+=<span style="color: #000000;">50</span><br />nRow:=<span style="color: #000000;">185</span><br /><span style="color: #00C800;">next</span><br /><br />@ <span style="color: #000000;">170</span>, <span style="color: #000000;">2</span> GROUP oGroup <span style="color: #0000ff;">TO</span> <span style="color: #000000;">260</span>,<span style="color: #000000;">248</span> LABEL <span style="color: #ff0000;">"Forecast Week"</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> TRANSPARENT</div>[/code:2c8l7wao] when the data hDias["text"] is small it is not on center ...how I can resolve it ?
un pequeño ejemplo ...meteo.prg
Another Manuel, why the text are on english language ? is there a code to set the language ? on <!-- m --><a class="postlink" href="https://developer.yahoo.com/weather/documentation.html#codes">https://developer.yahoo.com/weather/doc ... html#codes</a><!-- m --> I not found the language but on <!-- m --><a class="postlink" href="https://developer.yahoo.com/weather/">https://developer.yahoo.com/weather/</a><!-- m --> I see the lang [code=fw:1kfx2161]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #ff0000;">"query"</span>: <span style="color: #000000;">&#123;</span><br />  <span style="color: #ff0000;">"count"</span>: <span style="color: #000000;">1</span>,<br />  <span style="color: #ff0000;">"created"</span>: <span style="color: #ff0000;">"2014-12-09T22:13:09Z"</span>,<br />  <span style="color: #ff0000;">"lang"</span>: <span style="color: #ff0000;">"it-IT"</span>,<br />  <span style="color: #ff0000;">"results"</span>: <span style="color: #000000;">&#123;</span><br />   <span style="color: #ff0000;">"channel"</span>: <span style="color: #000000;">&#123;</span><br />    <span style="color: #ff0000;">"title"</span>: <span style="color: #ff0000;">"Yahoo! Weather - Nome, AK"</span>,<br />    <span style="color: #ff0000;">"link"</span>: <span style="color: #ff0000;">"http://us.rd.yahoo.com/dailynews/rss/weather/Nome__AK/*http://weather.yahoo.com/forecast/USAK0170_f.html"</span>,<br />    <span style="color: #ff0000;">"description"</span>: <span style="color: #ff0000;">"Yahoo! Weather for Nome, AK"</span>,<br />    <span style="color: #ff0000;">"language"</span>: <span style="color: #ff0000;">"en-us"</span>,<br />    <span style="color: #ff0000;">"lastBuildDate"</span>: <span style="color: #ff0000;">"Tue, 09 Dec 2014 8:54 am AKST"</span>,<br />    <span style="color: #ff0000;">"ttl"</span>: <span style="color: #ff0000;">"60"</span>,<br />    <span style="color: #ff0000;">"location"</span>: <span style="color: #000000;">&#123;</span><br />     <span style="color: #ff0000;">"city"</span>: <span style="color: #ff0000;">"Nome"</span>,<br />     <span style="color: #ff0000;">"country"</span>: <span style="color: #ff0000;">"United States"</span>,<br />     <span style="color: #ff0000;">"region"</span>: <span style="color: #ff0000;">"AK"</span><br />    <span style="color: #000000;">&#125;</span>,</div>[/code:1kfx2161] there is hvar1["language"] at hvar1:= hvar["query"]["results"]["channel"] I add afet the title @ 10 ,190 SAY alltrim(hvar1["language"] ) OF oDlg SIZE 180, 20 ; pixel Font ofont1 color CLR_BLACK,CLR_WHITE and return me [b:1kfx2161]en_Us[/b:1kfx2161] How we can set the lang on texts ? or we must translate this on Italian or Germany or Espanol... only english ? Code Description 0 tornado 1 tropical storm 2 hurricane 3 severe thunderstorms 4 thunderstorms 5 mixed rain and snow 6 mixed rain and sleet 7 mixed snow and sleet 8 freezing drizzle 9 drizzle 10 freezing rain 11 showers 12 showers 13 snow flurries 14 light snow showers 15 blowing snow 16 snow 17 hail 18 sleet 19 dust 20 foggy 21 haze 22 smoky 23 blustery 24 windy 25 cold 26 cloudy 27 mostly cloudy (night) 28 mostly cloudy (day) 29 partly cloudy (night) 30 partly cloudy (day) 31 clear (night) 32 sunny 33 fair (night) 34 fair (day) 35 mixed rain and hail 36 hot 37 isolated thunderstorms 38 scattered thunderstorms 39 scattered thunderstorms 40 scattered showers 41 heavy snow 42 scattered snow showers 43 heavy snow 44 partly cloudy 45 thundershowers 46 snow showers 47 isolated thundershowers 3200 not available
un pequeño ejemplo ...meteo.prg
Silvio por el momento Yahoo solo funciona en ingles.
un pequeño ejemplo ...meteo.prg
Manuel, I tried .. I am on yahoo console and I try to insert Lang="it-IT" and here run ok <!-- m --><a class="postlink" href="https://developer.yahoo.com/yql/console/#h=select+*+from+geo.places+where+text%3D%22sfo%22">https://developer.yahoo.com/yql/console ... D%22sfo%22</a><!-- m --> for a sample select * from geo.places where text="Teramo,Ab" and lang="it-IT" return right me I put in [b:3b42pj1j]bold[/b:3b42pj1j] italian text { "query": { "count": 1, "created": "2014-12-09T23:21:40Z", "lang": "en-US", "diagnostics": { "publiclyCallable": "true", "url": { "execution-start-time": "1", "execution-stop-time": "18", "execution-time": "17", "content": "http://wws.geotech.yahooapis.com/v1/places.q(Teramo%2CAb);start=0;count=10?lang=it-IT" }, "user-time": "18", "service-time": "17", "build-version": "0.2.212" }, "results": { "place": { "lang": "it-IT", "uri": "http://where.yahooapis.com/v1/place/724792", "woeid": "724792", "placeTypeName": { "code": "7", "content": "Città" }, "name": "Teramo", "country": { "code": "IT", [b:3b42pj1j] "type": "Paese",[/b:3b42pj1j] "woeid": "23424853", "content": "Italia" }, "admin1": { "code": "", [b:3b42pj1j] "type": "Regione",[/b:3b42pj1j] "woeid": "7153350", "content": "Abruzzi" }, "admin2": { "code": "IT-TE", [b:3b42pj1j] "type": "Provincia", "woeid": "12591815",[/b:3b42pj1j] "content": "Teramo" }, "admin3": { "code": "", [b:3b42pj1j] "type": "Comune",[/b:3b42pj1j] "woeid": "12676370", "content": "Teramo" }, "locality1": { [b:3b42pj1j] "type": "Città",[/b:3b42pj1j] "woeid": "724792", "content": "Teramo" }, "locality2": null, "postal": { [b:3b42pj1j] "type": "Codice Postale",[/b:3b42pj1j] "woeid": "12846808", "content": "64100" }, "centroid": { "latitude": "42.660728", "longitude": "13.706400" }, "boundingBox": { "southWest": { "latitude": "42.653450", "longitude": "13.682890" }, "northEast": { "latitude": "42.668060", "longitude": "13.729030" } }, "areaRank": "1", "popRank": "10", "timezone": { [b:3b42pj1j] "type": "Fuso Orario",[/b:3b42pj1j] "woeid": "28350914", "content": "Europe/Rome" } } } } } THE REST QUERY How do I use this?
un pequeño ejemplo ...meteo.prg
I tried from test cDir := "https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)" cDir:= cDir + " where text= '"+ cCity +"' and lang='"+cLanguage+"' ) and u='"+cUnits+"'&format=" + Formato but not run ---make error ...
un pequeño ejemplo ...meteo.prg
strange very strange on console on yahoo web site I have the text in italian language but when I insert this string on fwh test not run ...and it not make error [b:3s6be1uh]select * from weather.forecast where woeid in (select woeid from geo.places(1) where text="TERAMO,AB" and lang="it-IT") [/b:3s6be1uh] why ?
un pequeño ejemplo ...meteo.prg
[quote="acuellar":34clo0ec]Ya hice los cambios indicados y no funciona [code=fw:34clo0ec]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Try</span><br />      cProxi:= <span style="color: #ff0000;">"192.10.1.7:8080"</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY,cProxi  <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        <br />     leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />   Catch<br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error al cargar el tiempo"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> cResp<br />   End <span style="color: #00C800;">Try</span><br /> </div>[/code:34clo0ec] Saludos, Adhemar[/quote:34clo0ec] Dear Acuellar , can post all source code with proxy funcs? ( because I not understood how)
un pequeño ejemplo ...meteo.prg
I tried with a test of Mercado [code=fw:30q1hjq1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_DEFAULT &nbsp; <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_PRECONFIG <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_DIRECT &nbsp; &nbsp;<span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_PROXY &nbsp; &nbsp; <span style="color: #000000;">2</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: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> Tipo_de_cambio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"US Dollar"</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #00C800;">Function</span> Tipo_de_cambio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Local</span> oHttp, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cResp := <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>,<span style="color: #ff0000;">"http://www.peru.gob.pe/"</span>,.f.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;* oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_DEFAULT <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// toma valores del registro</span><br />&nbsp; &nbsp; &nbsp;oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY, <span style="color: #ff0000;">"proxy.itc.pascal:80"</span>, <span style="color: #ff0000;">"172.15.5.1"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// explícito</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br /><br />&nbsp; &nbsp;cResp := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span> cResp, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Tipo de cambio C: S/. "</span>, cResp <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;cResp := StrTran<span style="color: #000000;">&#40;</span> StrTran<span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Substr</span><span style="color: #000000;">&#40;</span> cResp, <span style="color: #000000;">1</span>, <span style="color: #00C800;">At</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"</b>"</span>, cResp <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"C: S/."</span>, <span style="color: #ff0000;">"Compra: S/."</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">"V: S/."</span>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"Venta: S/."</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> cResp</div>[/code:30q1hjq1] If I insert oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_PROXY, "proxy.itc.pascal:80", "172.15.5.1" ) it run ok but if I insert it on Meteo test not run
un pequeño ejemplo ...meteo.prg
Manuel, I made [code=fw:2x3o7947]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl,lProxy<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp := <span style="color: #00C800;">nil</span><br /><br />cProxi:= <span style="color: #ff0000;">"172.15.5.1:8080"</span><br /><br /><span style="color: #00C800;">IF</span> lProxy<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>,cUrl,.f.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY, cProxi <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br /><br /><span style="color: #00C800;">ELSE</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp;End <span style="color: #00C800;">Try</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br />&nbsp;<span style="color: #00C800;">ENDIF</span><br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp</div>[/code:2x3o7947] why not run ? my proxy "172.15.5.1:8080" but it not request user and password ?
un pequeño ejemplo ...meteo.prg
silvio , has colocado el #define ? : #define HTTPREQUEST_PROXYSETTING_PROXY 2 otra cosa : el set proxi antes del get ... oHttp := CreateObject("winhttp.winhttprequest.5.1") oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_PROXY, cProxi ) // set proxi previous ohttp:open oHttp:Open("GET",cUrl,.f.)
un pequeño ejemplo ...meteo.prg
Manuel, yes I tried also with #define HTTPREQUEST_PROXYSETTING_DEFAULT 0 #define HTTPREQUEST_PROXYSETTING_PRECONFIG 0 #define HTTPREQUEST_PROXYSETTING_DIRECT 1 #define HTTPREQUEST_PROXYSETTING_PROXY 2 #define HTTPREQUEST_SETCREDENTIALS_FOR_SERVER 0 #define HTTPREQUEST_SETCREDENTIALS_FOR_PROXY 1 cProxi:= "172.15.5.1" cUserName := myuser cPassword:= mypassw nProxyPort:= 8080 cProxyNo := "*.yimg.com" oHttp := CreateObject("winhttp.winhttprequest.5.1") Try if lProxy oHttp:SetProxy(HTTPREQUEST_PROXYSETTING_PROXY,cProxyServer+":"+alltrim(str(nProxyPort)),cProxyNo) endif oHttp:SetTimeouts(30000,30000,30000,30000) oHttp:Open("GET",cUrl,.F.) if lProxy oHttp:SetCredentials(cUserName,cPassword,HTTPREQUEST_SETCREDENTIALS_FOR_SERVER) endif oHttp:Send() cResp := oHttp:ResponseBody() oHttp:WaitForResponse() Catch cResp:="Error" End Try IT NOT MAKE ERROR but not load any image
un pequeño ejemplo ...meteo.prg
PErhaps I found the error Function loadBmp(cUrl) local oHttp local cResp := nil [b:17thnl8k]lProxy:=.T.[/b:17thnl8k] [b:17thnl8k]cProxyNo := "*.yimg.com"[/b:17thnl8k] Try oHttp := CreateObject( "winhttp.winhttprequest.5.1" ) [b:17thnl8k] if lProxy oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_PROXY, PROXY_SCHOOL+":"+alltrim(str(NPORT)) ) endif[/b:17thnl8k] oHttp:Open("GET", cUrl, .f. ) [b:17thnl8k] if lProxy oHttp:SetCredentials(USERNAME,PASSWORD,HTTPREQUEST_SETCREDENTIALS_FOR_PROXY) endif[/b:17thnl8k] oHttp:Send() cResp := oHttp:ResponseBody() oHttp:WaitForResponse() Catch MsgStop( "Error" ) Return cResp End Try Return cResp [b:17thnl8k]Now I see the image[/b:17thnl8k] [b:17thnl8k]but then Function llamada(cCity) not run [/b:17thnl8k] make error [code=fw:17thnl8k]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato :=  <span style="color: #ff0000;">"json"</span>  <span style="color: #B900B9;">// "xml"</span><br /><span style="color: #00C800;">local</span> cUnits:= <span style="color: #ff0000;">"c"</span><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br />cDir:= cDir + <span style="color: #ff0000;">" where text= '"</span>+ cCity +<span style="color: #ff0000;">"' ) and u='"</span>+cUnits+<span style="color: #ff0000;">"'&format="</span> + Formato<br /><br /><br />lProxy:=.T.<br /><br /><br />  <span style="color: #00C800;">Try</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">if</span> lProxy<br />         oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY, PROXY_SCHOOL+<span style="color: #ff0000;">":"</span>+alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>NPORT<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br /><br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br /><br />       <span style="color: #00C800;">if</span> lProxy<br />         oHttp:<span style="color: #000000;">SetCredentials</span><span style="color: #000000;">&#40;</span>USERNAME,PASSWORD,HTTPREQUEST_SETCREDENTIALS_FOR_PROXY<span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br /><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />        cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />        leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br /><br />  Catch<br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> cResp<br />   End <span style="color: #00C800;">Try</span><br /><br />   <span style="color: #00C800;">Return</span> cResp</div>[/code:17thnl8k]
un pequeño ejemplo ...meteo.prg
I tried also with [code=fw:3u4q5rxi]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato :=  <span style="color: #ff0000;">"json"</span>  <span style="color: #B900B9;">// "xml"</span><br /><span style="color: #00C800;">local</span> cUnits:= <span style="color: #ff0000;">"c"</span><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br />cDir:= cDir + <span style="color: #ff0000;">" where text= '"</span>+ cCity +<span style="color: #ff0000;">"' ) and u='"</span>+cUnits+<span style="color: #ff0000;">"'&format="</span> + Formato<br /><br /><br />lProxy:=.T.<br /><br /><br />  <span style="color: #00C800;">Try</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">if</span> lProxy<br />         oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY, PROXY_SCHOOL+<span style="color: #ff0000;">":"</span>+alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>NPORT<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> , <span style="color: #ff0000;">"*.yahooapis.com"</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #00C800;">endif</span><br /><br /><br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br /><br />       <span style="color: #00C800;">if</span> lProxy<br />         oHttp:<span style="color: #000000;">SetCredentials</span><span style="color: #000000;">&#40;</span>USERNAME,PASSWORD,HTTPREQUEST_SETCREDENTIALS_FOR_PROXY<span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br /><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />        leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br /><br />  Catch<br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> cResp<br />   End <span style="color: #00C800;">Try</span><br /><br />   <span style="color: #00C800;">Return</span> cResp</div>[/code:3u4q5rxi] Manuel perhaps it need another command ?
un pequeño ejemplo ...meteo.prg
Sorry, Manuel Now run also with proxy with My foot ( n.47) I moved the network cable <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
un pequeño ejemplo ...meteo.prg
For all and also for my Great friend Manuel Now it is complete ...what need also ? [b:27rl2g1v]Add the possibility to insert proxy setup[/b:27rl2g1v] ON init it ask you if want use proxy if yes it ask you proxy datas and save them on inifile ( meteo.ini) [code=fw:27rl2g1v]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Our first DialogBox sample</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"constant.ch"</span><br /><br /><br /><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_DEFAULT &nbsp; <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_PRECONFIG <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_DIRECT &nbsp; &nbsp;<span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_PROXY &nbsp; &nbsp; <span style="color: #000000;">2</span><br /><br /><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_SETCREDENTIALS_FOR_SERVER &nbsp;<span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_SETCREDENTIALS_FOR_PROXY &nbsp; <span style="color: #000000;">1</span><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> &nbsp;Meteo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> obmp ,cBmp<br />&nbsp; <span style="color: #00C800;">local</span> oDlg, oIco ,cCity:= <span style="color: #ff0000;">"Marbella"</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> cUrl := <span style="color: #ff0000;">"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"</span><br />&nbsp; <span style="color: #00C800;">local</span> ofont<br />&nbsp; <span style="color: #00C800;">local</span> lProxy<br />&nbsp; <span style="color: #00C800;">Local</span> cIniFile &nbsp;:= cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Meteo.ini"</span><br /><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;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">14</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br /><br />&nbsp; &nbsp; lProxy:=Request_Proxy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; cSection :=<span style="color: #ff0000;">"Config"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cIniFile &nbsp;:= cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Meteo.ini"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; PROXY_SCHOOL &nbsp;:= GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Proxy"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; NPORT &nbsp; &nbsp; := val<span style="color: #000000;">&#40;</span>GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Port"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; USERNAME := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Username"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; PASSWORD := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Password"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br />&nbsp; &nbsp; <span style="color: #B900B9;">// ?PROXY_SCHOOL</span><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad a buscar"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">240</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span> &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">142</span>,<span style="color: #000000;">35</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br /><br />&nbsp; &nbsp; &nbsp;obmp:<span style="color: #000000;">lTransparent</span> := .t.<br />&nbsp; &nbsp; &nbsp;cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp,lProxy<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// &nbsp;oBmp:display()</span><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Introduce la ciudad a buscar :"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cCity <span style="color: #0000ff;">size</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">105</span>, <span style="color: #000000;">85</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> llamada<span style="color: #000000;">&#40;</span>cCity,lProxy<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">105</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">FONT</span> oFont ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>DlgBarTitle<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">" &nbsp;Servicio Metereologico"</span>,<span style="color: #ff0000;">"c:<span style="color: #000000;">\w</span>ork<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphaBmp<span style="color: #000000;">\w</span>eather.bmp"</span> ,<span style="color: #000000;">44</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> &nbsp;;<br />&nbsp; &nbsp; <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <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 /><span style="color: #B900B9;">//--------------------------------------------------------------------------//</span><br /><br /><br /><span style="color: #00C800;">Function</span> Request_Proxy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> &nbsp; lReturn<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> MsgyesNo<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Devo usare il proxy ?"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; lReturn :=.t.<br />&nbsp; &nbsp; &nbsp; &nbsp;Valid_Proxy<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; lReturn :=.f.<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> lReturn<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------//</span><br /><br /><br /><span style="color: #00C800;">Function</span> Valid_Proxy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> oDlgProxy,oFont<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> cIniFile &nbsp;:= cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Meteo.ini"</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> nBottom &nbsp; := <span style="color: #000000;">14</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> nRight &nbsp; &nbsp;:= <span style="color: #000000;">55</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> nWidth := &nbsp;<span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> nRight * DLG_CHARPIX_W, <span style="color: #000000;">180</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> nHeight := nBottom * DLG_CHARPIX_H<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> oBtnHelp,oBtnOK,oBtnCan<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> cUSERNAME := &nbsp;pad<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Config"</span>,<span style="color: #ff0000;">"Username"</span> &nbsp; &nbsp; &nbsp; ,<span style="color: #ff0000;">"mioUsername"</span> &nbsp; &nbsp;,cIniFile <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">30</span> ,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> cPASSWORD := &nbsp;pad<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Config"</span>,<span style="color: #ff0000;">"Password"</span> &nbsp; &nbsp; &nbsp; ,<span style="color: #ff0000;">"miapassword"</span> &nbsp; &nbsp;,cIniFile <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">30</span> ,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> cPROXY &nbsp; &nbsp;:= &nbsp;pad<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Config"</span>,<span style="color: #ff0000;">"Proxy"</span> &nbsp; &nbsp; &nbsp; ,<span style="color: #ff0000;">"miaproxy"</span> &nbsp; &nbsp;,cIniFile <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">15</span> ,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> nPORT &nbsp; &nbsp; := &nbsp;pad<span style="color: #000000;">&#40;</span>GetPvProfString<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Config"</span>,<span style="color: #ff0000;">"Port"</span> &nbsp; ,<span style="color: #ff0000;">"8080"</span> &nbsp; &nbsp;,cIniFile <span style="color: #000000;">&#41;</span> , <span style="color: #000000;">4</span> ,<span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &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;">"MS Sans Serif"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">8</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlgProxy <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Inserimento Proxy"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">230</span>,<span style="color: #000000;">600</span> &nbsp;<span style="color: #0000ff;">pixel</span><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">12</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Proxy:"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">60</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">45</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> cPROXY <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">26</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Porta:"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">24</span>, <span style="color: #000000;">45</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> nPORT &nbsp; <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">44</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">12</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Codice utente:"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">175</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> cUSERNAME <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">44</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">26</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Password:"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">8</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">24</span>, <span style="color: #000000;">175</span> <span style="color: #0000ff;">GET</span> aGet<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">var</span> cPASSWORD <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">44</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> &nbsp;<span style="color: #0000ff;">FONT</span> oFont<br /><br /><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">46</span>, <span style="color: #000000;">4</span> <span style="color: #0000ff;">BUTTON</span> oBtnHelp <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"&Aiuto"</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont &nbsp;<span style="color: #0000ff;">ACTION</span> Helpindex<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">46</span>, <span style="color: #000000;">160</span> <span style="color: #0000ff;">BUTTON</span> oBtnOK <span style="color: #0000ff;">PROMPT</span> I18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Conferma"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #00C800;">DEFAULT</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>oDlgProxy:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span>IDOK <span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">46</span>, <span style="color: #000000;">204</span> <span style="color: #0000ff;">BUTTON</span> oBtnCan <span style="color: #0000ff;">PROMPT</span> i18n<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Annulla"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlgProxy <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">42</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">FONT</span> oFont CANCEL <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>oDlgProxy:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span>IDCANCEL<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;">DIALOG</span> oDlgProxy <span style="color: #0000ff;">CENTERED</span><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> oDlgProxy:<span style="color: #000000;">nresult</span> == IDOK<br /><br />&nbsp; &nbsp; &nbsp;SetIni<span style="color: #000000;">&#40;</span> cInifile, <span style="color: #ff0000;">"Config"</span>, <span style="color: #ff0000;">"Proxy"</span>, cPROXY <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;SetIni<span style="color: #000000;">&#40;</span> cInifile, <span style="color: #ff0000;">"Config"</span>, <span style="color: #ff0000;">"Username"</span>, cUSERNAME <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;SetIni<span style="color: #000000;">&#40;</span> cInifile, <span style="color: #ff0000;">"Config"</span>, <span style="color: #ff0000;">"Password"</span>, cPASSWORD <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;SetIni<span style="color: #000000;">&#40;</span> cInifile, <span style="color: #ff0000;">"Config"</span>, <span style="color: #ff0000;">"Port"</span>, nPORT <span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oImage,lProxy<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cResp := loadBmp<span style="color: #000000;">&#40;</span>cUrl,lProxy<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nZeroZeroClr<br />&nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// oImage:LoadFromString( cResp )</span><br />&nbsp; &nbsp; oImage:<span style="color: #000000;">LoadFromMemory</span><span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oImage:<span style="color: #000000;">HasAlpha</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oImage:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #00C800;">endif</span><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: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl,lProxy<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp := <span style="color: #00C800;">nil</span><br /><br /><br /><br />cProxyNo &nbsp;:= <span style="color: #ff0000;">"*.yimg.com"</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; cSection :=<span style="color: #ff0000;">"Config"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cIniFile &nbsp;:= cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Meteo.ini"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; PROXY_SCHOOL &nbsp; &nbsp;:= GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Proxy"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; NPORT &nbsp; &nbsp; := val<span style="color: #000000;">&#40;</span>GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Port"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; USERNAME := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Username"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; PASSWORD := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Password"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// ?PROXY_SCHOOL ,NPORT ,USERNAME ,PASSWORD</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY, PROXY_SCHOOL+<span style="color: #ff0000;">":"</span>+alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>NPORT<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;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oHttp:<span style="color: #000000;">SetCredentials</span><span style="color: #000000;">&#40;</span>USERNAME,PASSWORD,HTTPREQUEST_SETCREDENTIALS_FOR_PROXY<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Return</span> cResp<br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cCity,lProxy<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato := &nbsp;<span style="color: #ff0000;">"json"</span> &nbsp;<span style="color: #B900B9;">// "xml"</span><br /><span style="color: #00C800;">local</span> cUnits:= <span style="color: #ff0000;">"c"</span><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br />cDir:= cDir + <span style="color: #ff0000;">" where text= '"</span>+ cCity +<span style="color: #ff0000;">"' ) and u='"</span>+cUnits+<span style="color: #ff0000;">"'&format="</span> + Formato<br /><br /><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; cSection :=<span style="color: #ff0000;">"Config"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; cIniFile &nbsp;:= cFilePath<span style="color: #000000;">&#40;</span>GetModuleFileName<span style="color: #000000;">&#40;</span> GetInstance<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">"Meteo.ini"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; PROXY_SCHOOL &nbsp; &nbsp;:= GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Proxy"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; NPORT &nbsp; &nbsp; := val<span style="color: #000000;">&#40;</span>GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Port"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; USERNAME := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Username"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; PASSWORD := GetIni<span style="color: #000000;">&#40;</span>cIniFile, cSection, <span style="color: #ff0000;">"Password"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//?PROXY_SCHOOL ,NPORT ,USERNAME ,PASSWORD</span><br /><br /><br />&nbsp; <span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY, PROXY_SCHOOL+<span style="color: #ff0000;">":"</span>+alltrim<span style="color: #000000;">&#40;</span>str<span style="color: #000000;">&#40;</span>NPORT<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br /><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oHttp:<span style="color: #000000;">SetCredentials</span><span style="color: #000000;">&#40;</span>USERNAME,PASSWORD,HTTPREQUEST_SETCREDENTIALS_FOR_PROXY<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;*cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; leejson<span style="color: #000000;">&#40;</span> cResp,lProxy <span style="color: #000000;">&#41;</span><br /><br />&nbsp; Catch<br />&nbsp; &nbsp; &nbsp; MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Return</span> cResp<br /><br /><br /><br />&nbsp; <span style="color: #B900B9;">/*<br /><br />&nbsp;Try<br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject("winhttp.winhttprequest.5.1")<br />&nbsp; &nbsp; &nbsp; oHttp:Open("GET", cDir, .f. )<br />&nbsp; &nbsp; &nbsp; oHttp:Send()<br />&nbsp; &nbsp; &nbsp; cResp := oHttp:ResponseText()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oHttp:WaitForResponse()<br />&nbsp; &nbsp; &nbsp;// memowrit("eltiempo.txt",cResp )<br />&nbsp; &nbsp; &nbsp;// msginfo("grabado")<br />&nbsp; &nbsp; &nbsp;// winexec( "notepad.exe eltiempo.txt" )<br /><br />&nbsp; &nbsp; &nbsp;leejson( cResp )<br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; MsgStop( "Error" )<br />&nbsp; &nbsp; &nbsp; Return cResp<br />&nbsp; &nbsp;End Try<br />&nbsp; &nbsp; &nbsp;*/</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> Leejson<span style="color: #000000;">&#40;</span>cResp ,lProxy<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hvar<br /><span style="color: #00C800;">local</span> hvar1,hvar2<br /><span style="color: #00C800;">local</span> cTexto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> oDlg, cBmp<br /><span style="color: #00C800;">local</span> nValor<br /><span style="color: #00C800;">local</span> oBmp<br /><span style="color: #00C800;">local</span> ofont1,ofont2<br /><span style="color: #00C800;">Local</span> oBrwForecast<br /><br /><br /><span style="color: #00C800;">local</span> i<br /><span style="color: #00C800;">local</span> cImage,cMin,cMax,cData,cDay<br /><span style="color: #00C800;">local</span> ahTexto,hDias,cPrev<br /><span style="color: #00C800;">local</span> cUrl<br /><br />hb_jsondecode<span style="color: #000000;">&#40;</span> cResp, @hvar <span style="color: #000000;">&#41;</span><br /><br />hvar1:= hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"results"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"channel"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp;<span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> ofont1 <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">16</span> bold<br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">13</span><br /><br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Resultados"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">600</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br /><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">10</span> ,<span style="color: #000000;">80</span> <span style="color: #0000ff;">SAY</span> alltrim<span style="color: #000000;">&#40;</span>hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"title"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Font</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha : "</span>+ alltrim<span style="color: #000000;">&#40;</span>hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"created"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"wind"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Viento"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Sensacion Termica :"</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"chill"</span><span style="color: #000000;">&#93;</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">186</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"temperature"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Direcccion "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"direction"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Velocidad "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"atmosphere"</span><span style="color: #000000;">&#93;</span><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">85</span>, <span style="color: #000000;">95</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Atmosfera "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Humedad "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"humidity"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" %"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Presion Barometrica "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp; <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">110</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> &nbsp; <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp;nValor:= hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"rising"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> &nbsp;nValor == <span style="color: #ff0000;">"0"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Estable"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"1"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Subiendo"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"2"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Bajando"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Tendencia Barometrica: "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> cTexto <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"astronomy"</span><span style="color: #000000;">&#93;</span><br /><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">160</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Orto "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunrise"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Ocaso "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunset"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br /><br /><br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"item"</span><span style="color: #000000;">&#93;</span><br /><br /><br /><br /><br /><br />aHTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"forecast"</span><span style="color: #000000;">&#93;</span><br />nRow:=<span style="color: #000000;">185</span><br />nCol:= <span style="color: #000000;">5</span><br /><span style="color: #00C800;">for</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aHTexto<span style="color: #000000;">&#41;</span><br />hDias:=aHTexto<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />cData:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"date"</span><span style="color: #000000;">&#93;</span><br />cDay:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"day"</span><span style="color: #000000;">&#93;</span><br />cMax:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"high"</span><span style="color: #000000;">&#93;</span><br />cMin:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"low"</span><span style="color: #000000;">&#93;</span><br />cPrev:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"text"</span><span style="color: #000000;">&#93;</span><br />cUrl:= <span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">".gif"</span><br />@ nRow,nCol <span style="color: #0000ff;">say</span> cData <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol<span style="color: #000000;">+15</span> <span style="color: #0000ff;">say</span> cDay <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol<span style="color: #000000;">+15</span> <span style="color: #0000ff;">say</span> cMax <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol<span style="color: #000000;">+15</span> <span style="color: #0000ff;">say</span> cMin <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">8</span><br />@ nRow,nCol <span style="color: #0000ff;">say</span> cPrev <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />nRow+= <span style="color: #000000;">10</span><br />@ nRow,nCol &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br />cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp,lProxy<span style="color: #000000;">&#41;</span><br />nCol+=<span style="color: #000000;">50</span><br />nRow:=<span style="color: #000000;">185</span><br /><span style="color: #00C800;">next</span><br /><br />@ <span style="color: #000000;">170</span>, <span style="color: #000000;">2</span> GROUP oGroup <span style="color: #0000ff;">TO</span> <span style="color: #000000;">260</span>,<span style="color: #000000;">248</span> LABEL <span style="color: #ff0000;">"Forecast Week"</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> TRANSPARENT<br /><br /><br /><br /><br /><br /><br /><br /><br />&nbsp; &nbsp; &nbsp; cTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"condition"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; cTexto:=<span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+cTexto+<span style="color: #ff0000;">".gif"</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>,<span style="color: #000000;">12</span> &nbsp;<span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br /><br />&nbsp; &nbsp; &nbsp; cargaBmp<span style="color: #000000;">&#40;</span>cTexto,oBmp,lProxy<span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">280</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2<br /><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">paint</span> &nbsp;DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; ofont1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; ofont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><br /><br /><br /><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, nHeight, nCorrec , lColor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nDlgHeight := oDlg:<span style="color: #000000;">nHeight</span><br /><span style="color: #00C800;">Local</span> aColor &nbsp; &nbsp; := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.40</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.60</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nHeight &nbsp;:= <span style="color: #000000;">72</span><br /><span style="color: #00C800;">DEFAULT</span> nCorrec &nbsp;:= <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> lColor &nbsp; := .F.<br /><br />nDlgHeight:= nDlgHeight+ncorrec<br /><span style="color: #00C800;">IF</span> lColor<br />&nbsp; &nbsp;GradienTfill<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">hDC</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight<span style="color: #000000;">-20</span>,oDlg:<span style="color: #000000;">nWidth</span>, aColor ,.t.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />&nbsp; &nbsp;WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight -<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DlgBarTitle<span style="color: #000000;">&#40;</span> oWnd, cTitle, cBmp ,nHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oTitle<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nColText := <span style="color: #000000;">180</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> nRowImg &nbsp;:= <span style="color: #000000;">0</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cTitle &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nHeight := <span style="color: #000000;">48</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> nHeight < <span style="color: #000000;">48</span><br />&nbsp; &nbsp; &nbsp; nColText := <span style="color: #000000;">60</span><br />&nbsp; &nbsp; &nbsp; nRowImg &nbsp;:= <span style="color: #000000;">12</span><br />&nbsp; &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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ELSE</span><br />&nbsp; &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;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">30</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> &nbsp;<span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+1</span>, nHeight<span style="color: #000000;">+1</span> <span style="color: #0000ff;">of</span> oWnd SHADOWSIZE <span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;@ &nbsp;nRowImg, &nbsp;<span style="color: #000000;">10</span> &nbsp;TITLEIMG &nbsp;<span style="color: #0000ff;">OF</span> oTitle BITMAP cBmp &nbsp;<span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> REFLEX ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TRANSPARENT<br /><br />&nbsp; &nbsp; @ &nbsp;nRowImg<span style="color: #000000;">-2</span> , &nbsp;nColText TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nShadow</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nClrLine1</span> := nrgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oTitle:<span style="color: #000000;">nClrLine2</span> := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oWnd:<span style="color: #000000;">oTop</span>:= oTitle<br /><br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> oTitle<br /><br /><br /><br /><br />&nbsp;<span style="color: #00C800;">FUNCTION</span> SetIni<span style="color: #000000;">&#40;</span> cIni, cSection, cEntry, xVar <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oIni<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cIni := oApp:<span style="color: #000000;">cIniFile</span><br /><br />&nbsp; &nbsp;INI oIni FILE cIni<br />&nbsp; &nbsp; &nbsp; SET SECTION cSection ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ENTRY cEntry &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">TO</span> xVar &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oIni<br />&nbsp; &nbsp;ENDINI<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> GetIni<span style="color: #000000;">&#40;</span> cIni, cSection, cEntry, xDefault <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oIni<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> xVar := xDefault<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cIni := oApp:<span style="color: #000000;">cIniFile</span><br /><br />&nbsp; &nbsp;INI oIni FILE cIni<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">GET</span> xVar &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SECTION cSection ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ENTRY cEntry &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> xDefault ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">OF</span> oIni<br />&nbsp; &nbsp;ENDINI<br /><br /><span style="color: #00C800;">RETURN</span> xVar<br /><br /><br />&nbsp;</div>[/code:27rl2g1v]
un pequeño ejemplo ...meteo.prg
IM PRE SIO NAN TE! Felicitaciones a los que brindan este aporte... tiemble los FORECAST-SOFT <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
un pequeño ejemplo ...meteo.prg
Last release..( In italian language - only the text of forecast are not on italian language but only in english) [b:2agmbwmb][size=200:2agmbwmb]thanks to Manuel Mastintin[/size:2agmbwmb] [/b:2agmbwmb] [b:2agmbwmb]Select an proxy or not...[/b:2agmbwmb] [img:2agmbwmb]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2014/12/1&#46;jpg[/img:2agmbwmb] [b:2agmbwmb]Insert Proxy data [/b:2agmbwmb] [img:2agmbwmb]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2014/12/21&#46;jpg[/img:2agmbwmb] [b:2agmbwmb]Select a City[/b:2agmbwmb] [img:2agmbwmb]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2014/12/3&#46;jpg[/img:2agmbwmb] [b:2agmbwmb]Results[/b:2agmbwmb] [img:2agmbwmb]http&#58;//www&#46;eoeo&#46;it/wp-content/uploads/2014/12/4&#46;jpg[/img:2agmbwmb]
un pequeño ejemplo ...meteo.prg
[quote="mastintin":29kxfxyj]Segui un poco con el ejemplo del uso de servicio meteorológico y lo he completado un poco mas . Aqui dejo el código del ejemplo, funciona bien si no usas proxi , lo colocas como meteo.prg en samples y lo compilas . [code=fw:29kxfxyj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #B900B9;">// Our first DialogBox sample</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> obmp ,cBmp <br />  <span style="color: #00C800;">local</span> oDlg, oIco ,cCity:= <span style="color: #ff0000;">"Marbella"</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> cUrl := <span style="color: #ff0000;">"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"</span><br />  <span style="color: #00C800;">local</span> ofont<br />   <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">14</span> <br />    <br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco FILE <span style="color: #ff0000;">"..<span style="color: #000000;">\i</span>cons<span style="color: #000000;">\f</span>ivewin.ico"</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Ciudad a buscar"</span> ;<br />      <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">350</span>, <span style="color: #000000;">240</span><br /><br />   @ <span style="color: #000000;">30</span>,<span style="color: #000000;">10</span>  <span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">142</span>,<span style="color: #000000;">35</span> <span style="color: #0000ff;">pixel</span> NOBORDER <br />     <br />     obmp:<span style="color: #000000;">lTransparent</span> := .t.<br />     cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp<span style="color: #000000;">&#41;</span><br />     <br />   <span style="color: #B900B9;">//  oBmp:display()</span><br />       <br />   <br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Introduce la ciudad a buscar :"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">12</span> ;<br />                        <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg<br />     <br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">GET</span> cCity <span style="color: #0000ff;">size</span> <span style="color: #000000;">120</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg <br /><br />     @ <span style="color: #000000;">105</span>, <span style="color: #000000;">85</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Buscar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />              <span style="color: #0000ff;">FONT</span> oFont ; <br />              <span style="color: #0000ff;">ACTION</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><br />     @ <span style="color: #000000;">105</span>,<span style="color: #000000;">130</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">OF</span> oDlg;<br />               <span style="color: #0000ff;">FONT</span> oFont ; <br />               <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> ;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span>  DlgBarTitle<span style="color: #000000;">&#40;</span> oDlg, <span style="color: #ff0000;">"  Servicio Metereologico"</span>,<span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\b</span>itmaps<span style="color: #000000;">\a</span>lphaBmp<span style="color: #000000;">\w</span>eather.bmp"</span> ,<span style="color: #000000;">44</span> <span style="color: #000000;">&#41;</span>  ;<br />    <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .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: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oImage<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> cResp := loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> nZeroZeroClr<br /> <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span> <br />     <span style="color: #B900B9;">// oImage:LoadFromString( cResp )</span><br />    oImage:<span style="color: #000000;">LoadFromMemory</span><span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />    oImage:<span style="color: #000000;">HasAlpha</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oImage:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <span style="color: #00C800;">endif</span><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: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp := <span style="color: #00C800;">nil</span><br /><br />   <span style="color: #00C800;">Try</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />          <br />   Catch<br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> cResp<br />   End <span style="color: #00C800;">Try</span><br />  <br /><span style="color: #00C800;">Return</span> cResp<br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><br /><br /><br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oHttp<br /><span style="color: #00C800;">local</span> cResp<br /><span style="color: #00C800;">local</span> cDir<br /><span style="color: #00C800;">local</span> Formato :=  <span style="color: #ff0000;">"json"</span>  <span style="color: #B900B9;">// "xml"   </span><br /><span style="color: #00C800;">local</span> cUnits:= <span style="color: #ff0000;">"c"</span><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br />cDir:= cDir + <span style="color: #ff0000;">" where text= '"</span>+ cCity +<span style="color: #ff0000;">"' ) and u='"</span>+cUnits+<span style="color: #ff0000;">"'&format="</span> + Formato<br /> <br /> <span style="color: #00C800;">Try</span><br />      oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br />      oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #B900B9;">// memowrit("eltiempo.txt",cResp )</span><br />     <span style="color: #B900B9;">// msginfo("grabado")</span><br />     <span style="color: #B900B9;">// winexec( "notepad.exe eltiempo.txt" )</span><br />     <br />     leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />   Catch<br />      MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Error"</span> <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Return</span> cResp<br />   End <span style="color: #00C800;">Try</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 /><span style="color: #00C800;">function</span> Leejson<span style="color: #000000;">&#40;</span>cResp <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> hvar<br /><span style="color: #00C800;">local</span> hvar1,hvar2<br /><span style="color: #00C800;">local</span> cTexto:=<span style="color: #ff0000;">""</span><br /><span style="color: #00C800;">local</span> oDlg, cBmp<br /><span style="color: #00C800;">local</span> nValor<br /><span style="color: #00C800;">local</span> oBmp<br /><span style="color: #00C800;">local</span> ofont1,ofont2<br /><br />hb_jsondecode<span style="color: #000000;">&#40;</span> cResp, @hvar <span style="color: #000000;">&#41;</span><br /><br />hvar1:= hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"results"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"channel"</span><span style="color: #000000;">&#93;</span><br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">font</span> ofont1 <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">16</span> bold<br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">13</span> <br /><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Resultados"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>, <span style="color: #000000;">400</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br /> <br /> <br />     @ <span style="color: #000000;">10</span> ,<span style="color: #000000;">80</span> <span style="color: #0000ff;">SAY</span> alltrim<span style="color: #000000;">&#40;</span>hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"title"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Font</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <br />     <br />     @ <span style="color: #000000;">25</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Fecha : "</span>+ alltrim<span style="color: #000000;">&#40;</span>hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"created"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />               <br />     hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"wind"</span><span style="color: #000000;">&#93;</span><br />     <br />     @ <span style="color: #000000;">40</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Viento"</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span>  <span style="color: #0000ff;">OF</span> oDlg  ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1 <br />     @ <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Sensacion Termica :"</span> <span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />               <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     @ <span style="color: #000000;">50</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"chill"</span><span style="color: #000000;">&#93;</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">186</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"temperature"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />              <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2         <br />              <br />              <br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Direcccion "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />             <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     @ <span style="color: #000000;">60</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"direction"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />             <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2         <br />             <br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Velocidad "</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     <br />     @ <span style="color: #000000;">70</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                     <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     <br />          <br />        hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"atmosphere"</span><span style="color: #000000;">&#93;</span><br />      <br />     @ <span style="color: #000000;">85</span>, <span style="color: #000000;">95</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Atmosfera "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                      <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1 <br />                      <br />     @ <span style="color: #000000;">100</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Humedad "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     @ <span style="color: #000000;">100</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span>  hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"humidity"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" %"</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                    <span style="color: #0000ff;">pixel</span>  <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />                                        <br />                    <br />     @ <span style="color: #000000;">110</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Presion Barometrica "</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span>   <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />                        <br />     @ <span style="color: #000000;">110</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"pressure"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span>   <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />                                            <br />     <br />     nValor:= hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"rising"</span><span style="color: #000000;">&#93;</span> <br />      <br />     <span style="color: #00C800;">if</span>  nValor == <span style="color: #ff0000;">"0"</span><br />         cTexto := <span style="color: #ff0000;">"Estable"</span><br />     elseif nValor == <span style="color: #ff0000;">"1"</span><br />         cTexto := <span style="color: #ff0000;">"Subiendo"</span><br />     elseif nValor == <span style="color: #ff0000;">"2"</span>   <br />         cTexto := <span style="color: #ff0000;">"Bajando"</span><br />     <span style="color: #00C800;">endif</span><br />        <br />     @ <span style="color: #000000;">120</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Tendencia Barometrica: "</span>  <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     @ <span style="color: #000000;">120</span>, <span style="color: #000000;">130</span> <span style="color: #0000ff;">say</span> cTexto <span style="color: #0000ff;">OF</span> oDlg ;<br />                        <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />     <br />      hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"astronomy"</span><span style="color: #000000;">&#93;</span><br />     <br />     <br />     <br />     @ <span style="color: #000000;">160</span>, <span style="color: #000000;">30</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Orto "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunrise"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                         <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />                         <br />     @ <span style="color: #000000;">160</span>, <span style="color: #000000;">160</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Ocaso "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunset"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg ;<br />                         <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2 <br />  <br />      hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"item"</span><span style="color: #000000;">&#93;</span> <br />     <br />          <br />      cTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"condition"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span><br />      <br />      cTexto:=<span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+cTexto+<span style="color: #ff0000;">".gif"</span>    <br />        <br />     @ <span style="color: #000000;">10</span>,<span style="color: #000000;">12</span>  <span style="color: #0000ff;">IMAGE</span> oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br />         <br />      cargaBmp<span style="color: #000000;">&#40;</span>cTexto,oBmp<span style="color: #000000;">&#41;</span><br />         <br />    @ <span style="color: #000000;">184</span>, <span style="color: #000000;">100</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Ok"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">40</span>, <span style="color: #000000;">12</span>  <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> ;<br />      <span style="color: #0000ff;">ACTION</span> odlg:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFont2<br />   <br /> <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">on</span> <span style="color: #0000ff;">paint</span> <span style="color: #000000;">&#40;</span> cargaBmp<span style="color: #000000;">&#40;</span>cTexto,obmp<span style="color: #000000;">&#41;</span>, DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, <span style="color: #000000;">68</span>,, .t. <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#41;</span><br />  <br />  ofont1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  ofont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <br /><br /> <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">Function</span> DlgStatusBar<span style="color: #000000;">&#40;</span>oDlg, nHeight, nCorrec , lColor <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Local</span> nDlgHeight := oDlg:<span style="color: #000000;">nHeight</span><br /><span style="color: #00C800;">Local</span> aColor     := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.40</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span>, <span style="color: #000000;">200</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,;<br />                    <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0.60</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span>, <span style="color: #000000;">184</span> <span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">DEFAULT</span> nHeight  := <span style="color: #000000;">72</span><br /><span style="color: #00C800;">DEFAULT</span> nCorrec  := <span style="color: #000000;">0</span><br /><span style="color: #00C800;">DEFAULT</span> lColor   := .F.<br /><br />nDlgHeight:= nDlgHeight+ncorrec<br /><span style="color: #00C800;">IF</span> lColor<br />   GradienTfill<span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">hDC</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-2</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight<span style="color: #000000;">-20</span>,oDlg:<span style="color: #000000;">nWidth</span>, aColor ,.t.<span style="color: #000000;">&#41;</span><br />   WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">0</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ELSE</span><br />   WndBoxIn<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDc</span>,nDlgHeight -<span style="color: #000000;">&#40;</span> nHeight<span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">4</span>,nDlgHeight-<span style="color: #000000;">&#40;</span> nHeight <span style="color: #000000;">&#41;</span>,oDlg:<span style="color: #000000;">nWidth</span> - <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br /><span style="color: #B900B9;">//------------------------------------------------------------------------------</span><br /><br /><span style="color: #00C800;">FUNCTION</span> DlgBarTitle<span style="color: #000000;">&#40;</span> oWnd, cTitle, cBmp ,nHeight <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oFont<br />   <span style="color: #00C800;">LOCAL</span> oTitle<br />   <span style="color: #00C800;">LOCAL</span> nColText := <span style="color: #000000;">180</span><br />   <span style="color: #00C800;">LOCAL</span> nRowImg  := <span style="color: #000000;">0</span><br />   <br /><br />   <span style="color: #00C800;">DEFAULT</span> cTitle  := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">DEFAULT</span> nHeight := <span style="color: #000000;">48</span><br /><br />   <span style="color: #00C800;">IF</span> nHeight < <span style="color: #000000;">48</span><br />      nColText := <span style="color: #000000;">60</span><br />      nRowImg  := <span style="color: #000000;">12</span><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">10</span>, <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">ELSE</span><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">12</span>, <span style="color: #000000;">30</span><br />   <span style="color: #00C800;">endif</span><br /><br />    @ <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span>  <span style="color: #0000ff;">TITLE</span> oTitle <span style="color: #0000ff;">size</span> oWnd:<span style="color: #000000;">nWidth</span><span style="color: #000000;">+1</span>, nHeight<span style="color: #000000;">+1</span> <span style="color: #0000ff;">of</span> oWnd SHADOWSIZE <span style="color: #000000;">0</span><br />   <br />   @  nRowImg,  <span style="color: #000000;">10</span>  TITLEIMG  <span style="color: #0000ff;">OF</span> oTitle BITMAP cBmp  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">48</span>, <span style="color: #000000;">48</span> REFLEX ;<br />          TRANSPARENT<br />   <br />    @  nRowImg<span style="color: #000000;">-2</span> ,  nColText TITLETEXT <span style="color: #0000ff;">OF</span> oTitle <span style="color: #0000ff;">TEXT</span> cTitle <span style="color: #0000ff;">COLOR</span> CLR_BLACK <span style="color: #0000ff;">FONT</span> oFont<br /><br />    oTitle:<span style="color: #000000;">aGrdBack</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span>, <span style="color: #000000;">255</span> <span style="color: #000000;">&#41;</span>, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />    oTitle:<span style="color: #000000;">nShadowIntensity</span> = <span style="color: #000000;">0</span><br />    oTitle:<span style="color: #000000;">nShadow</span> = <span style="color: #000000;">0</span><br />    oTitle:<span style="color: #000000;">nClrLine1</span> := nrgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span>,<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />    oTitle:<span style="color: #000000;">nClrLine2</span> := RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">229</span>, <span style="color: #000000;">233</span>, <span style="color: #000000;">238</span> <span style="color: #000000;">&#41;</span><br />    oWnd:<span style="color: #000000;">oTop</span>:= oTitle<br />          <br /><br /><span style="color: #00C800;">RETURN</span> oTitle<br /><br /><br /> </div>[/code:29kxfxyj][/quote:29kxfxyj] Manuel Tengo un programa con éste ejemplo y dejó de funcionar. No conecta. Será que Yahoo habrá realizado algún cambio. Hay otra manera de hacerlo? Gracias por la ayuda.
un pequeño ejemplo ...meteo.prg
Sin tocar nada aqui esta funcionando bien ... Saludos.
un pequeño ejemplo ...meteo.prg
Gracias Estimado Manuel por responder Este mi programa. Porfa lo puede compilar [code=fw:1eyvymu3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#define</span> HTTPREQUEST_PROXYSETTING_PROXY <span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"ttitle.ch"</span><br /><span style="color: #B900B9;">//REQUEST HB_LANG_ESWIN</span><br />*<br /><span style="color: #00C800;">function</span> Pronostico<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> obmp ,cBmp <br />&nbsp; <span style="color: #00C800;">local</span> oIco ,cCity:= <span style="color: #ff0000;">"Santa Cruz de la Sierra, BO"</span>+space<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> cUrl := <span style="color: #ff0000;">"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"</span><br />&nbsp; <span style="color: #00C800;">Private</span> oTimer,oWnd,Alerta1,Alerta2,lProxy:=.T.,vMD<br />&nbsp; <span style="color: #00C800;">Private</span> nInt:=<span style="color: #000000;">0</span><br />&nbsp; <br />&nbsp; <span style="color: #00C800;">If</span> !hb_Ping<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"192.10.1.7"</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; lProxy:=.F.<br />&nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp;<br />&nbsp; <span style="color: #00C800;">If</span> lProxy <br />&nbsp; &nbsp; &nbsp;cProxy:= <span style="color: #ff0000;">"192.10.1.7:8080"</span><br />&nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp;<br />&nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">STYLE</span> WS_POPUP<br />&nbsp; &nbsp; <br />&nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#40;</span>Llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span>,oWnd:<span style="color: #000000;">Hide</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <br />&nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />*<br /><span style="color: #00C800;">Function</span> llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">Local</span> oHttp,cResp,cDir,Formato:=<span style="color: #ff0000;">"json"</span>,cUnits:= <span style="color: #ff0000;">"c"</span><br /><br />cDir := <span style="color: #ff0000;">"https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1)"</span><br />cDir:= cDir + <span style="color: #ff0000;">" where text= '"</span>+ cCity +<span style="color: #ff0000;">"' ) and u='"</span>+cUnits+<span style="color: #ff0000;">"'&format="</span> + Formato<br />&nbsp;nInt++<br /><br />&nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY,cProxy &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cDir, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseText</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;leejson<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp;MsgStop<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"No pudo cargar el pronóstico"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> nInt=<span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;__Quit<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; &nbsp; llamada<span style="color: #000000;">&#40;</span>cCity<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br />*<br /><span style="color: #00C800;">function</span> Leejson<span style="color: #000000;">&#40;</span>cResp<span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">local</span> hvar,hvar1,hvar2,cTexto:=<span style="color: #ff0000;">""</span>,oDlg, cBmp,nValor,oBmp,ofont1,ofont2,oBrwForecast<br /><span style="color: #00C800;">local</span> i,cImage,cMin,cMax,cData,cDay,ahTexto,hDias,cPrev,cUrl<br /><br />&nbsp;hb_jsondecode<span style="color: #000000;">&#40;</span> cResp, @hvar <span style="color: #000000;">&#41;</span><br /><br />&nbsp;hvar1:= hvar<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"query"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"results"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"channel"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp;<span style="color: #0000ff;">Define</span> <span style="color: #0000ff;">font</span> ofont1 <span style="color: #0000ff;">name</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">16</span> bold<br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">Font</span> ofont2 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Verdana"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">13</span><br />&nbsp;<br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Pronóstico del tiempo"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">500</span>,<span style="color: #000000;">395</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE;oDlg:<span style="color: #000000;">lHelpIcon</span>:=.F. <br />&nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">60000</span>*<span style="color: #000000;">3</span> <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span>oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oTimer:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;* &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">05</span> ,<span style="color: #000000;">80</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Santa Cruz de la Sierra, BO"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">Font</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br />&nbsp; &nbsp; &nbsp; cFecha:=cDow<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>+<span style="color: #ff0000;">", "</span>+StrZero<span style="color: #000000;">&#40;</span>day<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>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" de "</span>+cMonth<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>+<span style="color: #ff0000;">" del "</span>+Str<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Year</span><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><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" &nbsp;"</span>+time<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">16</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">SAY</span> cFecha <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">180</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1<br /><br />&nbsp; &nbsp; &nbsp;hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"wind"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">30</span>, <span style="color: #000000;">120</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Actual"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">20</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Sensación térmica "</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;gC:=Str<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">Round</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>Val<span style="color: #000000;">&#40;</span>hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"chill"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">-32</span><span style="color: #000000;">&#41;</span>*<span style="color: #000000;">5</span>/<span style="color: #000000;">9</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />&nbsp;<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> gC+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">186</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" C"</span><span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">40</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">say</span> alltrim<span style="color: #000000;">&#40;</span> hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"chill"</span><span style="color: #000000;">&#93;</span>+chr<span style="color: #000000;">&#40;</span><span style="color: #000000;">186</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"temperature"</span><span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Vientos "</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">50</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">" "</span>+ hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"units"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"speed"</span><span style="color: #000000;">&#93;</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp;hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"atmosphere"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Humedad "</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">say</span> &nbsp;hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"humidity"</span><span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">" %"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> &nbsp;<span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp; nValor:= hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"rising"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> &nbsp;nValor == <span style="color: #ff0000;">"0"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Estable"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"1"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Inestable subiendo"</span><br />&nbsp; &nbsp; &nbsp;elseif nValor == <span style="color: #ff0000;">"2"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTexto := <span style="color: #ff0000;">"Inestable bajando"</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Comportamiento"</span> &nbsp;<span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">70</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">say</span> cTexto <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"astronomy"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">82</span>, <span style="color: #000000;">65</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Salida del sol "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunrise"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">82</span>, <span style="color: #000000;">145</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Ocaso "</span> + hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"sunset"</span><span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br /><br />&nbsp; &nbsp; &nbsp; hvar2:= hvar1<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"item"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; aHTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"forecast"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; nRow:=<span style="color: #000000;">101</span>;nCol:= <span style="color: #000000;">5</span><br />&nbsp; &nbsp; nD=<span style="color: #000000;">0</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aHTexto<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;hDias:=aHTexto<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;cData:=<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>i=<span style="color: #000000;">1</span>,<span style="color: #ff0000;">"   &nbsp;Hoy"</span>,dToc<span style="color: #000000;">&#40;</span>Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+nD<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//hDias["date"])</span><br />&nbsp; &nbsp; &nbsp;cDay:= <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cDow<span style="color: #000000;">&#40;</span>Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>+nD<span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">" &nbsp; &nbsp;"</span>,<span style="color: #000000;">9</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//hDias["day"]</span><br />&nbsp; &nbsp; &nbsp;cMax:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"high"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;cMin:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"low"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;cPrev:= hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"text"</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp;cUrl:= <span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+hDias<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">".gif"</span> <br />&nbsp;<br />&nbsp;@ nRow,nCol<span style="color: #000000;">+3</span> <span style="color: #0000ff;">say</span> cData <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp;nRow+= <span style="color: #000000;">8</span><br />&nbsp;@ nRow,nCol<span style="color: #000000;">+6</span> <span style="color: #0000ff;">say</span> cDay <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp;nRow+= <span style="color: #000000;">8</span><br />&nbsp;@ nRow,nCol<span style="color: #000000;">+15</span> <span style="color: #0000ff;">say</span> cMax <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp;nRow+= <span style="color: #000000;">8</span><br />&nbsp;@ nRow,nCol<span style="color: #000000;">+15</span> <span style="color: #0000ff;">say</span> cMin <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />* nRow+= <span style="color: #000000;">8</span><br />* @ nRow,nCol <span style="color: #0000ff;">say</span> cPrev <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont2<br />&nbsp;nRow+= <span style="color: #000000;">10</span><br />&nbsp;@ nRow,nCol<span style="color: #000000;">+7</span> xIMAGE oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER <br />&nbsp;<br />&nbsp;cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oBmp<span style="color: #000000;">&#41;</span><br />&nbsp; obmp:<span style="color: #000000;">lTransparent</span> := .t.<br />&nbsp;nCol+=<span style="color: #000000;">50</span><br />&nbsp;nRow:=<span style="color: #000000;">101</span><br />&nbsp;nD++<br /><span style="color: #00C800;">next</span><br /><br />&nbsp; @ <span style="color: #000000;">92</span>, <span style="color: #000000;">2</span> GROUP oGroup <span style="color: #0000ff;">TO</span> <span style="color: #000000;">160</span>,<span style="color: #000000;">248</span> LABEL <span style="color: #ff0000;">"CADA DÍA"</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> TRANSPARENT <br />&nbsp; @ <span style="color: #000000;">163</span>, <span style="color: #000000;">2</span> GROUP oGroup <span style="color: #0000ff;">TO</span> <span style="color: #000000;">192</span>,<span style="color: #000000;">200</span> LABEL <span style="color: #ff0000;">"RECOMENDACIONES"</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> TRANSPARENT <br />&nbsp; Alertas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">If</span> Day<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>><span style="color: #000000;">&#40;</span><span style="color: #000000;">16</span>-vMD<span style="color: #000000;">&#41;</span> .And. Day<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><<span style="color: #000000;">&#40;</span><span style="color: #000000;">21</span>-vMD<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; @ <span style="color: #000000;">171</span>,<span style="color: #000000;">6</span> <span style="color: #0000ff;">Say</span> Alerta1 <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">190</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">FONT</span> ofont1 <span style="color: #0000ff;">color</span> CLR_HRED,CLR_WHITE<br />&nbsp; &nbsp; @ <span style="color: #000000;">181</span>,<span style="color: #000000;">6</span> <span style="color: #0000ff;">Say</span> Alerta2 <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">190</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">color</span> CLR_HRED,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1<br />&nbsp; &nbsp;<span style="color: #00C800;">Else</span> <br />&nbsp; &nbsp; @ <span style="color: #000000;">171</span>,<span style="color: #000000;">6</span> <span style="color: #0000ff;">Say</span> Alerta1 <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">190</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">FONT</span> ofont1 <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE<br />&nbsp; &nbsp; @ <span style="color: #000000;">181</span>,<span style="color: #000000;">6</span> <span style="color: #0000ff;">Say</span> Alerta2 <span style="color: #0000ff;">OF</span> oDlg &nbsp;<span style="color: #0000ff;">pixel</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">190</span>,<span style="color: #000000;">10</span> <span style="color: #0000ff;">color</span> CLR_BLACK,CLR_WHITE <span style="color: #0000ff;">FONT</span> ofont1<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; cTexto:=hVar2<span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"condition"</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #ff0000;">"code"</span><span style="color: #000000;">&#93;</span><br /><br />&nbsp; &nbsp; &nbsp; cTexto:=<span style="color: #ff0000;">"http://l.yimg.com/a/i/us/we/52/"</span>+cTexto+<span style="color: #ff0000;">".gif"</span><br /><br />&nbsp; &nbsp; &nbsp; @ <span style="color: #000000;">40</span>,<span style="color: #000000;">22</span> &nbsp;xIMAGE oBmp FILE cBmp <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">32</span>,<span style="color: #000000;">32</span> <span style="color: #0000ff;">pixel</span> NOBORDER<br />&nbsp; <br />&nbsp; &nbsp; &nbsp; cargaBmp<span style="color: #000000;">&#40;</span>cTexto,oBmp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; obmp:<span style="color: #000000;">lTransparent</span> := .t.<br /><br />&nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> oTimer:<span style="color: #0000ff;">Activate</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; ofont1:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;ofont2:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br />*<br /><span style="color: #00C800;">Function</span> cargaBmp<span style="color: #000000;">&#40;</span>cUrl,oImage<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> cResp := loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span>,nZeroZeroClr<br />&nbsp; &nbsp;<br />&nbsp; <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> cResp <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp;oImage:<span style="color: #000000;">SetBmp</span><span style="color: #000000;">&#40;</span>cResp<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br />*<br /><span style="color: #00C800;">Function</span> loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">local</span> oHttp,cResp := <span style="color: #00C800;">nil</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">Try</span><br />&nbsp; &nbsp; &nbsp; oHttp := CreateObject<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"winhttp.winhttprequest.5.1"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> lProxy<br />&nbsp; &nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">SetProxy</span><span style="color: #000000;">&#40;</span> HTTPREQUEST_PROXYSETTING_PROXY,cProxy &nbsp;<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"GET"</span>, cUrl, .f. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">Send</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; cResp := oHttp:<span style="color: #000000;">ResponseBody</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oHttp:<span style="color: #000000;">WaitForResponse</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> &nbsp; <br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;Catch<br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">//MsgStop( "Error" )</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">Return</span> cResp<br />&nbsp; &nbsp;End <span style="color: #00C800;">Try</span><br />&nbsp; <br /><span style="color: #00C800;">Return</span> cResp<br />*<br /><span style="color: #00C800;">Function</span> Alertas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;vMD:=<span style="color: #000000;">0</span><br />&nbsp; &nbsp;cFec:=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;">If</span> cDow<span style="color: #000000;">&#40;</span>ctod<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"20/"</span>+Subs<span style="color: #000000;">&#40;</span>cFec,<span style="color: #000000;">5</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"/"</span>+<span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cFec,<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: #ff0000;">"Domingo"</span><br />&nbsp; &nbsp; &nbsp;vMD:=<span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">If</span> Day<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>><span style="color: #000000;">&#40;</span><span style="color: #000000;">16</span>-vMD<span style="color: #000000;">&#41;</span> .And. Day<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><<span style="color: #000000;">&#40;</span><span style="color: #000000;">21</span>-vMD<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nDias:=<span style="color: #000000;">&#40;</span><span style="color: #000000;">20</span>-vMD<span style="color: #000000;">&#41;</span>-Day<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; &nbsp; &nbsp; &nbsp;cDia:=<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>nDias=<span style="color: #000000;">0</span>,<span style="color: #ff0000;">"Hoy último día "</span>,<span style="color: #ff0000;">"Le queda"</span>+<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>nDias=<span style="color: #000000;">1</span>,<span style="color: #ff0000;">" "</span>,<span style="color: #ff0000;">"n "</span><span style="color: #000000;">&#41;</span>+StrZero<span style="color: #000000;">&#40;</span>nDias,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>+<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>nDias=<span style="color: #000000;">1</span>,<span style="color: #ff0000;">" día"</span>,<span style="color: #ff0000;">" días"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=cDia+<span style="color: #ff0000;">" para presentar su RCIVA"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"Si presentó, ignore la recomendación."</span><br />&nbsp; &nbsp; <span style="color: #00C800;">Else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xAzar:=nRandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xAzar:=<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span>xAzar=<span style="color: #000000;">0</span>,<span style="color: #000000;">1</span>,xAzar<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span> xAzar=<span style="color: #000000;">1</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"Vacie la carpeta Deleted Items del servidor"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"para mejorar el rendimiento de su Outlook"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">2</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"Borre los correos no deseados del servidor"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"para mejorar el rendimiento de su Outlook"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"No olvide revisar sus llamadas telefónicas"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"En el sistema AGENTEL, coloque el nombre"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">4</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"No responda un correo a TODOS_MAIL "</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"Si la respuesta es personal, el 80% no lo borra"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"Lea su correo escrito antes de enviarlo "</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"Asi evitará volver a reenviar corregido"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"No imprima el contenido de un correo completo"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"Si lo necesario es lo último recibido"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"No imprima el contenido de un correo,"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"si no es muy importante, ayude a la ecología"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">8</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"Apague las luces y artefactos eléctricos"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"que no esté usando."</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">9</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"Cuide sus herramientas de trabajo"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"En la empresa son suya."</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"Mantenga su carpeta de correo peronal .PST"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"Borrando correos no necesarios o antiguos."</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ElseIf xAzar=<span style="color: #000000;">11</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta1:=<span style="color: #ff0000;">"No olvide que los formularios RCIVA deben ser entregados "</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Alerta2:=<span style="color: #ff0000;">"hasta el 20. Si TOT.GANADO>7000 debe exportar via DaVinci"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<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 />&nbsp;*<br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <hbapi.h> <br /><span style="color: #00D7D7;">#include</span> <winsock2.h><br /><span style="color: #00D7D7;">#include</span> <iphlpapi.h><br /><span style="color: #00D7D7;">#include</span> <icmpapi.h><br /><br />int hb_Ping<span style="color: #000000;">&#40;</span> const char * cp <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; HANDLE hIcmpFile;<br />&nbsp; &nbsp; unsigned long ipaddr;<br />&nbsp; &nbsp; DWORD dwRetVal;<br />&nbsp; &nbsp; char SendData<span style="color: #000000;">&#91;</span><span style="color: #000000;">32</span><span style="color: #000000;">&#93;</span> = <span style="color: #ff0000;">"Data Buffer"</span>;<br />&nbsp; &nbsp; LPVOID ReplyBuffer;<br />&nbsp; &nbsp; DWORD ReplySize;<br /><br />&nbsp; &nbsp; ipaddr = inet_addr<span style="color: #000000;">&#40;</span> cp <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ipaddr == INADDR_NONE<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">1</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; hIcmpFile = IcmpCreateFile<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>hIcmpFile == INVALID_HANDLE_VALUE<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">2</span>;<br /><br />&nbsp; &nbsp; ReplySize = sizeof<span style="color: #000000;">&#40;</span>ICMP_ECHO_REPLY<span style="color: #000000;">&#41;</span> + sizeof<span style="color: #000000;">&#40;</span>SendData<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; ReplyBuffer = <span style="color: #000000;">&#40;</span>VOID*<span style="color: #000000;">&#41;</span> malloc<span style="color: #000000;">&#40;</span>ReplySize<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>ReplyBuffer == <span style="color: #00C800;">NULL</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">3</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; dwRetVal = IcmpSendEcho<span style="color: #000000;">&#40;</span>hIcmpFile, ipaddr, SendData, sizeof<span style="color: #000000;">&#40;</span>SendData<span style="color: #000000;">&#41;</span>, <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NULL</span>, ReplyBuffer, ReplySize, <span style="color: #000000;">1000</span><span style="color: #000000;">&#41;</span>;<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>dwRetVal == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">4</span>;<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> HB_PING <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;hb_retni<span style="color: #000000;">&#40;</span> hb_Ping<span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br />&nbsp;<br />&nbsp;</div>[/code:1eyvymu3] Gracias por la ayuda.
un pequeño ejemplo ...meteo.prg
El problema está en el xIMAGE Usando IMAGE funciona pero necesita de freeimage.dll el cual quiero evitar. No logro hacerlo funcionar con xIMAGE
un pequeño ejemplo ...meteo.prg
Mira asi : [code=fw:2pfd38pb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />@ nRow,nCol<span style="color: #000000;">+7</span> &nbsp;XIMAGE oBmp SOURCE loadBmp<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">size</span> <span style="color: #000000;">142</span>,<span style="color: #000000;">35</span> NOBORDER <br /><br /><span style="color: #B900B9;">// cargaBmp(cUrl,oBmp)</span><br />&nbsp;<span style="color: #B900B9;">// obmp:lTransparent := .t.</span><br /><br />&nbsp;</div>[/code:2pfd38pb]
un pequeño ejemplo ...meteo.prg
Gracias Estimado Manuel Funciona. Pero hay un problema que no cambia la imagen. Muestra la misma. Le agregué oBmp:Refresh() y nada. Gracias por la ayuda.
un pequeño ejemplo ...meteo.prg
Estimado Manuel Dejó de funcionar el Meteo. Porfa me ayuda a confirmar que es la página. Gracias por la ayuda.
un pequeño ejemplo ...meteo.prg
Echale un ojo a esto [url:181t9m48]https&#58;//developer&#46;yahoo&#46;com/weather/[/url:181t9m48]
un pequeño ejemplo ...meteo.prg
Gracias Cristobal Ya hice la solicitud para crear un usuario. Estoy esperando que me den respuesta.