topic
stringlengths
1
63
text
stringlengths
1
577k
jkIDE: impressions / experiences / perspectives
An easier and faster url to download it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [url:22dbi5nu]http&#58;//code&#46;google&#46;com/p/visualfw/downloads/detail?name=jkide93x&#46;EXE&can=2&q=[/url:22dbi5nu]
join two select
Hi, I have two table in different database (table1 in msacces and table2 in sql server) I would like to read together. i.e. read table1 using odbc connect read table2 using odbc connect and then to use the two table by xbrowse. I do not want to use a dbf file to record table1 and then table2. any example? thanks
join two select
Table1 and table2 have the same Field... Sent from lumia 720 Tapatalk
join two select
Maybe you could use a temporary array to do a "join" then browse the array. James
jpg como fondo deja estela al arrastrar ventanas
Hola. Tengo una aplicacion que abre una ventana con un .jpg de fondo; desde esa aplicacion llamo a otros exes. El tema es que en algunas maquinas al arrastrar esos exes que abro, van dejando una estela en el logo de fondo. Obviamente es alguna caracteristica de esas PC's, pero me paso en varias diferentes, y no encontre un punto comun. Placas de video integradas, por ej, pero en algunas maquinas funciona bien con esa configuracion. Utilizo la funcion: DEFINE WINDOW oWnd FROM 4, 4 TO 25, 75 ; TITLE " Solucion de Gestion Integral de Negocios para Empresas *** Saros *** " @ 0 , 0 IMAGE oBmpMain FILENAME XLOGO OF oWnd no border ; adjust SIZE 800,600 SET MESSAGE OF oWnd TO 'Version 2.0.01 para Windows 95/98/XP/2000 ' ACTIVATE WINDOW oWnd MAXIMIZED VALID CONFIRMA(XCONFIRMA) ON INIT LOGIN(EMPRE,EMPREST,1) eso en caso de que la resulucion sea 800x600; segun la resolucion hace el adjust; probe con logos en cada resolucion, como para que no tenga que pasar de un logo en 640x480 a uno de 600x800... o sea, tengo 4 o 5 logos uno para cada resolucion de las comunes. Alguna idea acerca de lo que puede estar ocurriendo??? Insisto, es un exe "main", desde el cual llamo a otros exes que serian modulos. Gracias.
jpg como fondo deja estela al arrastrar ventanas
Diego, Esta es la solución: <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=8191">http://fivetechsoft.com/forums/viewtopic.php?t=8191</a><!-- m -->
jpg como fondo deja estela al arrastrar ventanas
Compilo el window.prg, despues hago en el build.bat IF %1==EC echo WINDOW.OBJ + >> b32.bc IF %1==ec echo WINDOW.OBJ + >> b32.bc y cuando ejecuto build ec, y corro el ec.exe, me da este error. ¿que puede ser? gracias. Atte. Application =========== Path and name: C:\FW192\SAROSH\ec.exe (32 bits) Size: 1,542,144 bytes Time from start: 0 hours 0 mins 0 secs Error occurred at: 19-11-2007, 14:49:24 Error description: Error BASE/1132 Bound error: array access Args: [ 1] = A { ... } [ 2] = N 1 Stack Calls =========== Called from: window.prg => _FWH(3162) Called from: => SENDMESSAGE(0) Called from: => TWINDOW:GETFONT(0) Called from: => TWINDOW:NEW(0) Called from: EC.prg => MAIN(168) [quote="Antonio Linares":1vpxtqhu]Diego, Esta es la solución: <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=8191">http://fivetechsoft.com/forums/viewtopic.php?t=8191</a><!-- m -->[/quote:1vpxtqhu]
jpg como fondo deja estela al arrastrar ventanas
Diego, Que versión de FWH usas ?
jpg como fondo deja estela al arrastrar ventanas
uso fwh 7.05 de mayo 2007 [quote="Antonio Linares":11g75fxx]Diego, Que versión de FWH usas ?[/quote:11g75fxx]
jpg como fondo deja estela al arrastrar ventanas
Diego, Solo se me ocurre que estés usando una versión incorrecta de window.prg. Solo tienes que modificar el método EndPaint(). Si sigue dándote errores, lo más aconsejable es que te actualices a la versión actual 7.11 que incluye todas esas mejoras y no tienes que andar recompilando, ni cambiando cosas, etc.
jpg como fondo deja estela al arrastrar ventanas
Hola Diego: Yo tengo una versión anterior a la tuya y modificando el método EndPaint de window.prg, como dice Antonio, se soluciona el problema. Saludos, Manuel
jpg en recursos
Amigos: Guarde un archivo jpg (un paisaje de un cielo) en mi archivo.res lo pongo como fondo de un dialogo, (un brush transparente), hasta aca bien porque lo muestra. Pero cuando lo muevo o algun otro dialogo se abre sobre este la imagen y los conbtroles se distorsionan. Habría alguna manera de que el dialogo se refrescara conjuntamente con la imagen ya que con un bmp no hay problema. (el jpg es mucho mas chico y la calidad de imagen es igual) Muchas gracias. Ruben Fernandez
jpg en recursos
Probe con ACTIVATE DIALOG oDlg CENTERED NOWAIT ; On MOVE oDlg:Refresh() y no funciona Pero... como el dialogo es nowait, si lo iconizo y lo vuelvo a maximizar queda bien. Gracias. Ruben Fernandez.
jpg en recursos
Rubén, Cómo creas el brush con el archivo jpg ?
jpg en recursos
Antonio: Lo he creado de varias maneras: Define BRUSH ObrushFondo RESOURCE "CIELO" //este nombre es diferente a todos las imagenes que hay en el .Res. De esta manera es cuando se distorsiona si otro dialogo pasa por encima o este se mueve. oBrushFondo = TImage():Define( "CIELO" ) DEFINE BITMAP oBrushFondo RESOURCE "CIELO" DEFINE IMAGE oBrushFondo RESOURCE "CIELO" Con image me da error TImage:New nCount Saludos. Ruben Fernandez.
jpg resolution
Hi. I keep jpg images stored a dbf/fpt file pair. It works well. Just to give an example leading to my point; at a given customer site 350k jpg images are kept on an 80GB .fpt file. I just noticed that at a more recent installation, 26k images occupy an .fpt file of 115GB. I'm suspecting that the resolution at which the jpgs were created was very high. Using BlobExport() I can extract and re-create any single jpg image file from the .fpt. My question is: is there any way to change the resolution on an already existing jpg so that it creates a smaller jpg? Thank you, Reinaldo.
jpg resolution
What I need to know is if there is a utility to convert a jpg to another jpg with less (different) resolution. Or if perhaps freeimage could be used for this purpose. Reinaldo.
jpg resolution
I use Infranview ( free ) .. It is a viewer conversion ( re-sampling ) image program . .stand alone. You can download it from here : <!-- m --><a class="postlink" href="http://www.irfanview.com/">http://www.irfanview.com/</a><!-- m --> Rick Lipkin SC Dept of Health, USA
jpg resolution
Mr.Reinaldo I am using BMP2JPG.EXE, a file which converts a BMP file to JPG file with the require percentage of quality. The Syntax is : LOCAL cExec := 'BMP2JPG.EXE' WaitRun(cExec+' -q'+LTRIM(STR(::nJpgQuality,3,0))+' -c' + ; cOutputFile+' -o -s',0) Please check your inbox for 'BMP2JPG.EXE' - Ramesh Babu P
jpg resolution
Hi Reinaldo, In IrfanView, on the "Save" or "Save as" dialog, below there is a "Show options checkbox". When clicked, shows the "JPEG/GIF Save Options" dialog. In the JPG group there is a "Save quality" scroll bar. Around 55 to 60 saves with a good quality and a good compression (1/10). HTH Regards, Euclides
jpg resolution
You can have a look at "FastStone Image Viewer". It is free and having lots of features. [url:1lz57ywn]http&#58;//www&#46;FastStone&#46;org[/url:1lz57ywn] - Ramesh Babu P
jpg resolution
Thank you very much for all the responses. I'm going to try with IrfanView. It looks like it will do the job. My plan is to use source code to extract all the images from the .fpt file creating a single .jpg for each image. Then use the IrfanView's batch convert option to convert each jpg to a lower resolution jpg in one single command. In the meanwhile I changed my scanning routines to make sure scanning happens at a standarized resolution declared on an .ini file to avoid this **unnecesary** huge files from happening in the future. Reinaldo.
jsco
where I can found jsco?
json
Hi All I am working with an api for a accounting package - I can extract information from the accounting package if oHttp:open() cItems2 := oHttp:ReadAll() MEMOWRIT( "MYRESULT1.TXT", cItems2) this is what the text file shows { "UID": "17ef4d73-cfa7-43fb-afe6-5350cbffffa9", "CompanyName": "Techdata Software", "IsIndividual": false, "DisplayID": "TEC01", "IsActive": true, "Addresses": [ { "Location": 1, "Street": "32 Pingrup Lane\r\nScarborough ", "City": null, "State": "WA", "PostCode": "6019", "Country": null, "Phone1": "08 9245 8945", "Phone2": null, "Phone3": null, "Fax": null, "Email": null, "Website": null, "ContactName": "Colin Haig", "Salutation": "Mr" } ], } I can then get the companyname hb_jsondecode(cItems2,@hJson) MsgInfo(hJson["CompanyName"]) displays "TechData Software" I need to modify the companyname or change the contact name and then be able to post back oHttp:Post(hJson,cUri) Regards Colin
json
Hello you can use hJson hb_jsondecode(cItems2,@hJson) hJson["CompanyName"] = "My New Company Name" cJson = hb_JsonEncode(hJson) oHttp:hFields["Content-Type"] = "application/json" now you can post oHttp:Post(hJson,cUri)
json
Hi Daniel cJson = hb_JsonEncode(hJson) What should the valtype of cJson be. ? oHttp:hFields["Content-Type"] = "application/json" now you can post I presume cJson shoud be passed to the post method not hJson oHttp:Post(hJson,cUri) I am still having issues with the update METHOD PostByVerb( xPostData, cQuery, cVerb ) CLASS TIPClientHTTP IF ::inetErrorCode( ::SocketCon ) == 0 MsgInfo('here') ::inetSendAll( ::SocketCon, cData ) ::bInitialized := .T. RETURN ::ReadHeaders() else MsgInfo(::inetErrorCode( ::SocketCon )) ENDIF ::ReadHeaders() - always return .f. METHOD ReadHeaders( lClear ) CLASS TIPClientHTTP cLine := ::inetRecvLine( ::SocketCon, @nPos, 500 ) cLine is always empty IF Empty( cLine ) // In case of timeout or error on receiving RETURN .F. ENDIF Thanks for your suggestion. Regards Colin
json
[quote="Colin Haig":3ipvpjxx] I presume cJson shoud be passed to the post method not hJson Colin[/quote:3ipvpjxx] yes right, sorry my mistake
json
Hola compañeros me podrian indicar que librerías si hay que utilizar para xharbour alguna librería en especial. Y si hay algún equivalente para HB_JsonDecode de harbour en xharbour Gracias
json
[url:2mcm4xa7]https&#58;//groups&#46;google&#46;com/forum/#!topic/comp&#46;lang&#46;xharbour/bQPfbLeTTuQ%5B26-50%5D[/url:2mcm4xa7]
json
compiler with xhb [code=fw:2m83hh5t]<div class="fw" id="{CB}" style="font-family: monospace;"><br />REQUEST HB_CODEPAGE_ES850<br /><br /><span style="color: #00C800;">Function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Local</span> cUtf8Str := <span style="color: #ff0000;">'"Invitaci<span style="color: #000000;">\u</span>00F3n"'</span><br /><span style="color: #00C800;">Local</span> cResult:= <span style="color: #ff0000;">""</span><br /><br />HB_SETCODEPAGE<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ES850"</span> <span style="color: #000000;">&#41;</span><br />?HB_JSONENCODE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Hola"</span>,date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, .t., pi<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br />Hb_JSONDECODE<span style="color: #000000;">&#40;</span> cUtf8Str , @cResult <span style="color: #000000;">&#41;</span><br /><br />? cResult<br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span></div>[/code:2m83hh5t]
jsondecode
hola a todos uso la version de harbour 2.1.0beta1 (Rev. 14559). y cuando uso la funcion hb_jsondecode me dice que no existe la funcion asumo que esta funcion de harbour es posterior a mi version de harbour, que puedo hacer para obtenerla ? de momento uso fivewin 10.01 y no puedo actualizar. de antemano gracias.
jsondecode
Desde que version de FWX se puede utilizar HB_JSONDECODE()
juego pacman ala Fwh
Hola buenas tardes anexo prg del archivo del juego de pacman hecho en fivewin le faltan detallitos pero ya se puede jugar [url:cljfleoj]http&#58;//www&#46;eleben&#46;com&#46;mx/pacman&#46;zip[/url:cljfleoj] [code=fw:cljfleoj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// 15 de abril del 2015</span><br /><span style="color: #B900B9;">// <!-- e --><a href="mailto:chino72vale@hotmail.com">chino72vale@hotmail.com</a><!-- e --></span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span> <br /><br />MEMVAR xTeclas<br />MEMVAR nXPos, nYPos, xDonde, oSprite, nXposa, nYposa<br />MEMVAR aMatriz, Maxren, MaxCol, Omuro, xVidas<br />MEMVAR oComida, nComida, Van, aComidas, oFantasmas, fXpos, fYpos<br />MEMVAR xfdonde, XOTRA, XPOS, osay, csay, ofanta1, ofanta2, ofanta3, ofanta4, ofanta5, Ownd<br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br /><br />    <span style="color: #00C800;">local</span> oBrush, oTimer <br />    <span style="color: #00C800;">local</span> i, y, n:=<span style="color: #000000;">0</span>, m:=<span style="color: #000000;">0</span><br />    <br />    <span style="color: #00C800;">PUBLIC</span> xTeclas, xvidas<br />    <span style="color: #00C800;">PUBLIC</span> nXPos, nYPos <br />    <span style="color: #00C800;">PUBLIC</span> Xdonde, oSprite, oMuro<br />    <span style="color: #00C800;">PUBLIC</span> aMatriz, Maxren, Maxcol, Omuro<br />    <span style="color: #00C800;">PUBLIC</span> oComida, nComida, Van, Acomidas<br />    <span style="color: #00C800;">PUBLIC</span> fXpos, fYpos, Ofantasmas<br />    <span style="color: #00C800;">PUBLIC</span> xFdonde, xotra, XPOS<br />    <span style="color: #00C800;">PUBLIC</span> OSAY, CSAY, OFANTA, OFANTA2, OFANTA3, OFANTA4, ofanta5, Ownd<br />    <br />                 <span style="color: #B900B9;">//12345678901234567890123456789</span><br />    amatriz := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"</span><span style="color: #000000;">&#125;</span>,; <br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"x  o  o o o xxxxx o o o  o  x"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"x xxx xxoxx ooooo xxoxx xxx x"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxoxxoxxxxxoxxoxxoxxxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xooooooooooooooooooooooooooox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxoxxxxxoxxxxxoxxoxxxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoooooxxoooooxoxoooooxxooooox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxxxxxoxoxoxxxxxxoxxxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxoooooooooooooxxoxxxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"toooooxxoxxxxxoxxxxxoxxooooof"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxoxxxxxoxxxxxoxxoxxxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxoooooooooooooxxoxxxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxxxxxoxoxoxxxxxxoxxxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoooooxxoooooxoxoooooxxooooox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxoxxxxxoxxxxxoxxoxoxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoooooooooooooooooooxoxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoooooxxxxoxxxoxxxxoxxxoxoxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xoxxxoxxxxooooooooooxxxoxoxox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xooooooooooxxxxxxxxooooooooox"</span><span style="color: #000000;">&#125;</span>,;<br />                 <span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span><br />                 <span style="color: #B900B9;">//65*37</span><br />    <br />    nComida:=<span style="color: #000000;">0</span><br />    XTECLAS = <span style="color: #000000;">0</span><br />    Van:=<span style="color: #000000;">0</span><br />    XPOS:=<span style="color: #000000;">0</span><br />    nXPos   = <span style="color: #000000;">450</span>     <span style="color: #B900B9;">// columna</span><br />    nYPos   = <span style="color: #000000;">540</span>     <span style="color: #B900B9;">// rengloN</span><br />    xdonde = <span style="color: #000000;">1</span><br />    Maxren:=<span style="color: #000000;">20</span><br />    Maxcol:=<span style="color: #000000;">29</span><br />    xotra:=<span style="color: #000000;">0</span><br />    xfdonde:=<span style="color: #000000;">2</span><br />    <span style="color: #B900B9;">// posicion inicial fantasma</span><br />    fXpos:=<span style="color: #000000;">5</span>*<span style="color: #000000;">30</span><br />    fYpos:=<span style="color: #000000;">15</span>*<span style="color: #000000;">30</span><br />    xVidas:=<span style="color: #000000;">0</span><br />    <br />    aComidas:=array<span style="color: #000000;">&#40;</span>MaxRen,MaxCol<span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">for</span> i:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> maxren<br />      <span style="color: #00C800;">for</span> y:= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> maxcol<br />        aComidas<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>y<span style="color: #000000;">&#93;</span>=<span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>amatriz<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,y,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">if</span> <span style="color: #0000ff;">substr</span><span style="color: #000000;">&#40;</span>amatriz<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>,y,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>=<span style="color: #ff0000;">"o"</span><br />           nComida++<br />        <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">next</span> y<br />    <span style="color: #00C800;">next</span> i<br />    <br />    omuro:=array<span style="color: #000000;">&#40;</span>maxren,maxcol<span style="color: #000000;">&#41;</span><br />    <br />    <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">50</span>,<span style="color: #000000;">125</span> <br />    @ nYpos, nxPos BITMAP oSprite FILE <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acman.bmp"</span>  <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">size</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">30</span> NOBORDER<br />    <br />    @ fxPos, fYpos BITMAP ofantasmas FILE <span style="color: #ff0000;">"recpac<span style="color: #000000;">\f</span>anta1.bmp"</span>  <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">size</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">30</span> NOBORDER<br />    <br />    oFanta1:=TFANTASMON<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">270</span>,<span style="color: #000000;">300</span>,,<span style="color: #ff0000;">"recpac<span style="color: #000000;">\f</span>anta2.bmp"</span><span style="color: #000000;">&#41;</span><br />    ofanta2:=TFANTASMON<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">360</span>,<span style="color: #000000;">360</span>,,<span style="color: #ff0000;">"recpac<span style="color: #000000;">\f</span>anta3.bmp"</span><span style="color: #000000;">&#41;</span><br />    ofanta3:=TFANTASMON<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">360</span>,<span style="color: #000000;">360</span>,,<span style="color: #ff0000;">"recpac<span style="color: #000000;">\f</span>anta4.bmp"</span><span style="color: #000000;">&#41;</span><br />    ofanta4:=TFANTASMON<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">360</span>,<span style="color: #000000;">360</span>,,<span style="color: #ff0000;">"recpac<span style="color: #000000;">\f</span>anta5.bmp"</span><span style="color: #000000;">&#41;</span><br />    ofanta5:=TFANTASMON<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">NEW</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">360</span>,<span style="color: #000000;">360</span>,,<span style="color: #ff0000;">"recpac<span style="color: #000000;">\f</span>anta6.bmp"</span><span style="color: #000000;">&#41;</span><br />    n:=<span style="color: #000000;">30</span>  <br />    <br />    <span style="color: #B900B9;">// DIBUJANDO LA PANTALLA MAESTRA</span><br />    <span style="color: #00C800;">for</span> i:= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> maxren<br />       m:=<span style="color: #000000;">30</span><br />       <span style="color: #00C800;">for</span> y:= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> maxcol<br />          <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>y<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />             @ n, m BITMAP omuro<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>y<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">of</span> ownd ; <br />                    FILE <span style="color: #ff0000;">"recpac<span style="color: #000000;">\m</span>arcos.bmp"</span> <span style="color: #0000ff;">PIXEL</span> NO BORDER<br />          <span style="color: #00C800;">ELSE</span><br />            <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>y<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"o"</span><br />                 @ n, m BITMAP omuro<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>y<span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">size</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">30</span> <span style="color: #0000ff;">of</span> ownd ; <br />                    FILE <span style="color: #ff0000;">"recpac<span style="color: #000000;">\c</span>omidita.bmp"</span> <span style="color: #0000ff;">PIXEL</span>  NOBORDER<br />             <span style="color: #00C800;">ENDIF</span><br />          <span style="color: #00C800;">endif</span><br />          m:=m<span style="color: #000000;">+30</span><br />      <span style="color: #00C800;">next</span> y<br />      n:=n<span style="color: #000000;">+30</span><br />     <br />    <span style="color: #00C800;">next</span> i<br />          <br />    <span style="color: #B900B9;">// TERMINA dibujo pantalla</span><br />    <br />    oWnd:<span style="color: #000000;">bKeyDown</span> :=<span style="color: #000000;">&#123;</span> | nKey | xteclas:=Teclas<span style="color: #000000;">&#40;</span>nKey, oSprite<span style="color: #000000;">&#41;</span>  <span style="color: #000000;">&#125;</span>        <br /> <br />                     <br />    oSprite:<span style="color: #000000;">lTransparent</span> = .t. <br />    <br />    ownd:<span style="color: #000000;">binit</span> := <span style="color: #000000;">&#123;</span> || vueltacompleta<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />    <br />           <br />    <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #B900B9;">// CENTERED</span><br /> <br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span> <br />    <br />   <br />    <br /><span style="color: #00C800;">FUNCTION</span> TERMINO<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> DEV:=.t.<br /><span style="color: #00C800;">LOCAL</span> I, Y<br /><span style="color: #00C800;">FOR</span> I:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> MAXREN<br />  <span style="color: #00C800;">FOR</span> Y:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> MAXCOL<br />     <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>y<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"o"</span><br />        dev:=.f.<br />     <span style="color: #00C800;">endif</span><br />  <span style="color: #00C800;">next</span> y<br /><span style="color: #00C800;">next</span> i<br /><span style="color: #00C800;">return</span> dev     <br />     <br />    <br /><span style="color: #00C800;">FUNCTION</span> VUELTACOMPLETA<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> I<br /><span style="color: #00C800;">local</span> xcol:=<span style="color: #000000;">15</span>, xren:=<span style="color: #000000;">18</span><br /><br />sonido_Inicial<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> <br /> <br /><span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> xdonde<><span style="color: #000000;">10</span><br /><br /><br />checapos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta1:<span style="color: #000000;">movimiento_Checapos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta2:<span style="color: #000000;">movimiento_Checapos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta3:<span style="color: #000000;">movimiento_Checapos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta4:<span style="color: #000000;">movimiento_Checapos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta5:<span style="color: #000000;">movimiento_Checapos</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />nXposa:=nXpos<br />nyPosa:=nYpos<br /><span style="color: #00C800;">IF</span> XDONDE =<span style="color: #000000;">1</span> <span style="color: #B900B9;">// abajo</span><br />   nypos = nypos <span style="color: #000000;">+30</span><br />   xren:=nypos/<span style="color: #000000;">30</span><br />   xcol:=nxpos/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      nYpos := nYpos <span style="color: #000000;">-30</span><br />   <span style="color: #00C800;">endif</span><br />  oSprite:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acmana.bmp"</span><span style="color: #000000;">&#41;</span><br />  oWnd:<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 /><br /><span style="color: #00C800;">IF</span> XDONDE =<span style="color: #000000;">0</span>  <span style="color: #B900B9;">// arriba</span><br />   nypos = nypos <span style="color: #000000;">-30</span><br />   xren:=nypos/<span style="color: #000000;">30</span><br />   xcol:=nxpos/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      nYpos := nYpos <span style="color: #000000;">+30</span><br />   <span style="color: #00C800;">endif</span><br />   oSprite:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acmant.bmp"</span><span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><span style="color: #00C800;">IF</span> XDONDE =<span style="color: #000000;">2</span>  <span style="color: #B900B9;">// izquierda</span><br />   nXpos = nXpos <span style="color: #000000;">-30</span><br />   xren:=nypos/<span style="color: #000000;">30</span><br />   xcol:=nxpos/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      nXpos := nXpos <span style="color: #000000;">+30</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"t"</span><br />         nxpos:=<span style="color: #000000;">870</span><br />      <span style="color: #00C800;">endif</span><br />      <br />   <span style="color: #00C800;">endif</span><br />   oSprite:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acmani.bmp"</span><span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><span style="color: #00C800;">IF</span> XDONDE =<span style="color: #000000;">3</span> <span style="color: #B900B9;">// derecha</span><br />   nXpos:= nXpos <span style="color: #000000;">+30</span><br />   xren:=nypos/<span style="color: #000000;">30</span> <br />   xcol:=nxpos/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      nXpos := nxpos <span style="color: #000000;">-30</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"f"</span><br />         nxpos:=<span style="color: #000000;">30</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br />   <br />  oSprite:<span style="color: #000000;">LoadBmp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acmand.bmp"</span><span style="color: #000000;">&#41;</span><br />  oWnd:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"o"</span><br />    omuro<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>:<span style="color: #000000;">end</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>:=<span style="color: #ff0000;">" "</span><br />    van ++<br />    Sonido_Comiendo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">else</span><br />   <span style="color: #B900B9;">// Sonido_sincomer()</span><br />     <br /><span style="color: #00C800;">endif</span>  <br /><br /><span style="color: #B900B9;">// corrida del fantasmon wey </span><br /><br />ofanta1:<span style="color: #000000;">Movimiento_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta2:<span style="color: #000000;">Movimiento_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta3:<span style="color: #000000;">Movimiento_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta4:<span style="color: #000000;">movimiento_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta5:<span style="color: #000000;">movimiento_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">IF</span> XFDONDE =<span style="color: #000000;">1</span> <span style="color: #B900B9;">// abajo</span><br />   fxpos = fxpos <span style="color: #000000;">+30</span><br />   xren:=fxpos/<span style="color: #000000;">30</span><br />   xcol:=fypos/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      fxpos := fxpos <span style="color: #000000;">-30</span><br />   <span style="color: #00C800;">endif</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">IF</span> XFDONDE =<span style="color: #000000;">0</span>  <span style="color: #B900B9;">// arriba</span><br />   fxpos = fxpos <span style="color: #000000;">-30</span><br />   xren:=fxpos/<span style="color: #000000;">30</span><br />   xcol:=fypos/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      fxpos := fxpos <span style="color: #000000;">+30</span><br />   <span style="color: #00C800;">endif</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">IF</span> XFDONDE =<span style="color: #000000;">2</span>  <span style="color: #B900B9;">// izquierda</span><br />   fypos = fypos <span style="color: #000000;">-30</span><br />   xren:=fxpos/<span style="color: #000000;">30</span><br />   xcol:=fypos/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />       fypos := fypos <span style="color: #000000;">+30</span><br />   <span style="color: #B900B9;">//   xfdonde:=1</span><br />   <span style="color: #B900B9;">//   fxpos:=fxpos+30</span><br />      <br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"t"</span><br />       <span style="color: #B900B9;">//fypos := fypos +30</span><br />             fYpos:=<span style="color: #000000;">840</span><br />      <span style="color: #00C800;">endif</span><br />      <br />   <span style="color: #00C800;">endif</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><span style="color: #00C800;">IF</span> XFDONDE =<span style="color: #000000;">3</span> <span style="color: #B900B9;">// derecha</span><br />   fypos:= fypos <span style="color: #000000;">+30</span><br />   xren:=fxpos/<span style="color: #000000;">30</span> <br />   xcol:=fypos/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      fypos := fypos <span style="color: #000000;">-30</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"f"</span><br />        <span style="color: #B900B9;">// fypos := fypos -30</span><br />         fYpos:=<span style="color: #000000;">60</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br />  <br /><span style="color: #B900B9;">// movimiento del fantasma</span><br /><br />Mueve_Pacman<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />Mueve_Fantasma<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta1:<span style="color: #000000;">Mover_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oFanta2:<span style="color: #000000;">Mover_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta3:<span style="color: #000000;">Mover_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta4:<span style="color: #000000;">Mover_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />ofanta5:<span style="color: #000000;">Mover_Fantasma</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nYpos=fxpos .and. nXpos=fypos<span style="color: #000000;">&#41;</span> .or. <span style="color: #000000;">&#40;</span>nYposa=fXpos .and. nxposa=fypos<span style="color: #000000;">&#41;</span>     <span style="color: #B900B9;">// agarre del fantamas al pacman</span><br />   sonido_tecomio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   syswait<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.9</span><span style="color: #000000;">&#41;</span><br />  <br /> <span style="color: #B900B9;">//  ? "ey estoy en 3 son dos opciones ", xpos, xotra, xfdonde</span><br />   nXPos   = <span style="color: #000000;">450</span>     <span style="color: #B900B9;">// movemos al pacman alos valor de inicio we</span><br />   nYPos   = <span style="color: #000000;">540</span>  <br />   <br />   fXpos:=<span style="color: #000000;">5</span>*<span style="color: #000000;">30</span>       <span style="color: #B900B9;">// movemos al fantasmas al valor inicial</span><br />   fYpos:=<span style="color: #000000;">15</span>*<span style="color: #000000;">30</span><br />   xfdonde:= <span style="color: #000000;">2</span><br />      <br />   xVidas++     <span style="color: #B900B9;">// ya le dio en la madre los fantamas del caribe al pacman</span><br />   <span style="color: #00C800;">if</span> xvidas=<span style="color: #000000;">3</span><br />      Sonido_final<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      syswait<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />      quit<br />   <span style="color: #00C800;">endif</span><br />    <br /><span style="color: #00C800;">endif</span>   <br /><br /><br /><span style="color: #00C800;">IF</span> XDONDE=<span style="color: #000000;">10</span> .or. van=nComida  <span style="color: #B900B9;">// vamanos para fuera</span><br /><span style="color: #B900B9;">// "ey estoy en 3 son dos opciones ",xpos, xotra,  xfdonde</span><br />   Sonido_final<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   syswait<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />   QUIT<br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">enddo</span><br />?<span style="color: #B900B9;">//finalizo bye"</span><br />Sonido_final<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />syswait<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /> <br /><br /><span style="color: #00C800;">Function</span> Mueve_Pacman<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oSprite:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> nYPos, nXPos, , , .T. <span style="color: #000000;">&#41;</span> <br />   syswait<span style="color: #000000;">&#40;</span>.<span style="color: #000000;">15</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> Mueve_fantasma<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   ofantasmas:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> fxPos, fyPos, , , .T. <span style="color: #000000;">&#41;</span> <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIl</span><br /><br /><br /><span style="color: #00C800;">Function</span> Sonido_Termina<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\c</span>ry.wav"</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />   syswait<span style="color: #000000;">&#40;</span>.<span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">Function</span> Sonido_Comiendo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\c</span>omida.wav"</span>, <span style="color: #000000;">3</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> Sonido_Inicial<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acman_beginning<span style="color: #000000;">\p</span>acman_beginning.wav"</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br />    syswait<span style="color: #000000;">&#40;</span><span style="color: #000000;">4.0</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> Sonido_rComiendo<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acman_eatfruit<span style="color: #000000;">\p</span>acman_eatfruit.wav"</span>, <span style="color: #000000;">3</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> Sonido_Final<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acman_intermission.wav"</span>, <span style="color: #000000;">3</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> Sonido_tecomio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acman_death<span style="color: #000000;">\p</span>acman_death.wav"</span>, <span style="color: #000000;">3</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> Sonido_finalizar<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   SndPlaySound<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"recpac<span style="color: #000000;">\p</span>acman_death<span style="color: #000000;">\p</span>acman_death.wav"</span>, <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">Nil</span><br /><br />    <br /><span style="color: #00C800;">Function</span> teclas<span style="color: #000000;">&#40;</span>xKey, oSprite<span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #00C800;">IF</span> xkey = <span style="color: #000000;">38</span>  <span style="color: #B900B9;">//ARRIBA</span><br />   XDONDE = <span style="color: #000000;">0</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> xkey = <span style="color: #000000;">40</span>   <span style="color: #B900B9;">// abajo</span><br />    XDONDE = <span style="color: #000000;">1</span><br />    <br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> xkey = <span style="color: #000000;">37</span><br />   XDONDE = <span style="color: #000000;">2</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> xkey = <span style="color: #000000;">39</span><br />    XDONDE =<span style="color: #000000;">3</span><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">if</span> xkey = <span style="color: #000000;">27</span><br />   xdonde=<span style="color: #000000;">10</span><br />   <br /><span style="color: #00C800;">endif</span>   <br /> <br /><span style="color: #00C800;">Return</span> XKEY<br /><br /><br /><br /><span style="color: #00C800;">Function</span>  checapos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> xren, xcol<br /><span style="color: #B900B9;">//local xotra:=0</span><br /><span style="color: #00C800;">local</span> xnpos :=<span style="color: #000000;">0</span><br />   xren:=fxpos/<span style="color: #000000;">30</span><br />   xcol:=fypos/<span style="color: #000000;">30</span><br />xotra:=<span style="color: #000000;">0</span>  <br />XPOS:=<span style="color: #000000;">0</span><br /><span style="color: #00C800;">if</span> !acomidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />   xpos++<br />   xotra:=xotra + <span style="color: #000000;">1</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> !acomidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />   xpos++<br />   xotra:= xotra + <span style="color: #000000;">2</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> !acomidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />   xpos++<br />   xotra:= xotra + <span style="color: #000000;">3</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> !acomidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />   xpos++<br />   xotra:= xotra + <span style="color: #000000;">4</span> <br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">if</span> xpos><span style="color: #000000;">2</span>    <span style="color: #B900B9;">// quire decir que ay que random para decidi a que lugar ir we  </span><br /><br /><br />   xfdonde:=nrandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />  <br /><span style="color: #00C800;">else</span><br />   <span style="color: #00C800;">if</span> xpos=<span style="color: #000000;">2</span><br />      <span style="color: #00C800;">if</span> xotra = <span style="color: #000000;">4</span>  .or. xotra=<span style="color: #000000;">6</span> .OR. XOTRA=<span style="color: #000000;">5</span>  <span style="color: #B900B9;">//quire decir que esta en la esquina del  muro</span><br />         xfdonde:=nrandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />     <span style="color: #00C800;">else</span><br />     <br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br />    <br /><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">CLASS</span> TFANTASMON<br />   <span style="color: #00C800;">DATA</span>   xfdonde <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">2</span><br />   <span style="color: #00C800;">DATA</span>   ny      <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">DATA</span>   xModo   <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">DATA</span>   xRen    <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">DATA</span>   XcOL    <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">DATA</span>   fXpos   <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span> <br />   <span style="color: #00C800;">DATA</span>   FyPOS   <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">DATA</span>   oFanta  <br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <br />   <span style="color: #00C800;">METHOD</span> Mover_Fantasma<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> Movimiento_Fantasma<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> Movimiento_ChecaPos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> Movimiento_Agarre<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span>fxPos, fyPos, ofanta, odibujo <span style="color: #000000;">&#41;</span>  <span style="color: #00C800;">CLASS</span> TFANTASMON<br /><br />     @ fxPos, fYpos BITMAP ofanta FILE odibujo  <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">size</span> <span style="color: #000000;">30</span>,<span style="color: #000000;">30</span> NOBORDER  <br />     ::<span style="color: #000000;">oFanta</span>:=ofanta<br />     ::<span style="color: #000000;">fxPos</span>:=fxpos<br />     ::<span style="color: #000000;">fYpos</span>:=fYpos<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">SELF</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> Mover_Fantasma<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TFANTASMON<br />   ::<span style="color: #000000;">ofanta</span>:<span style="color: #0000ff;">Move</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">fxPos</span>, ::<span style="color: #000000;">fyPos</span>, , , .T. <span style="color: #000000;">&#41;</span> <br />   ::<span style="color: #000000;">Movimiento_Agarre</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 /><br /><span style="color: #B900B9;">// agarre del fantamas</span><br /><span style="color: #00C800;">METHOD</span> Movimiento_Agarre<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #00C800;">CLASS</span> TFANTASMON<br /><span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>nYpos=::<span style="color: #000000;">fxpos</span> .and. nXpos=::<span style="color: #000000;">fypos</span><span style="color: #000000;">&#41;</span>  .or. <span style="color: #000000;">&#40;</span>nYposa=::<span style="color: #000000;">fXpos</span> .and. nxposa=::<span style="color: #000000;">fypos</span><span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// agarre del fantamas al pacman</span><br />   sonido_tecomio<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   syswait<span style="color: #000000;">&#40;</span><span style="color: #000000;">1.9</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">//  ? "ey estoy en 3 son dos opciones ", xpos, xotra, xfdonde</span><br />   nXPos   = <span style="color: #000000;">450</span>     <span style="color: #B900B9;">// movemos al pacman alos valor de inicio we</span><br />   nYPos   = <span style="color: #000000;">540</span>  <br />   <br />   xVidas++     <span style="color: #B900B9;">// ya le dio en la madre los fantamas del caribe al pacman</span><br />   <span style="color: #00C800;">if</span> xvidas=<span style="color: #000000;">3</span><br />      Sonido_final<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      syswait<span style="color: #000000;">&#40;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#41;</span><br />      quit<br />   <span style="color: #00C800;">endif</span><br />   <br /><span style="color: #00C800;">Endif</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #B900B9;">// corrida del fantasmon wey </span><br /><span style="color: #00C800;">METHOD</span> Movimiento_Fantasma<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #00C800;">CLASS</span> TFANTASMON<br /><br /><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">XFDONDE</span> =<span style="color: #000000;">1</span> <span style="color: #B900B9;">// abajo</span><br />   ::<span style="color: #000000;">fxpos</span> = ::<span style="color: #000000;">fxpos</span> <span style="color: #000000;">+30</span><br />   ::<span style="color: #000000;">xren</span>:=::<span style="color: #000000;">fxpos</span>/<span style="color: #000000;">30</span><br />   ::<span style="color: #000000;">xcol</span>:=::<span style="color: #000000;">fypos</span>/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xren</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xcol</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      ::<span style="color: #000000;">fxpos</span> := ::<span style="color: #000000;">fxpos</span> <span style="color: #000000;">-30</span><br />   <span style="color: #00C800;">endif</span><br />   <br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">XFDONDE</span> =<span style="color: #000000;">0</span>  <span style="color: #B900B9;">// arriba</span><br />   ::<span style="color: #000000;">fxpos</span> = ::<span style="color: #000000;">fxpos</span> <span style="color: #000000;">-30</span><br />   ::<span style="color: #000000;">xren</span>:=::<span style="color: #000000;">fxpos</span>/<span style="color: #000000;">30</span><br />   ::<span style="color: #000000;">xcol</span>:=::<span style="color: #000000;">fypos</span>/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xren</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xcol</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      ::<span style="color: #000000;">fxpos</span> := ::<span style="color: #000000;">fxpos</span> <span style="color: #000000;">+30</span><br />   <span style="color: #00C800;">endif</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">XFDONDE</span> =<span style="color: #000000;">2</span>  <span style="color: #B900B9;">// izquierda</span><br />   ::<span style="color: #000000;">fypos</span> = ::<span style="color: #000000;">fypos</span> <span style="color: #000000;">-30</span><br />   ::<span style="color: #000000;">xren</span>:=::<span style="color: #000000;">fxpos</span>/<span style="color: #000000;">30</span><br />   ::<span style="color: #000000;">xcol</span>:=::<span style="color: #000000;">fypos</span>/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xren</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xcol</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />       ::<span style="color: #000000;">fypos</span> := ::<span style="color: #000000;">fypos</span> <span style="color: #000000;">+30</span><br />      <br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xren</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xcol</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"t"</span><br />       <span style="color: #B900B9;">//fypos := fypos +30</span><br />             ::<span style="color: #000000;">fYpos</span>:=<span style="color: #000000;">840</span><br />      <span style="color: #00C800;">endif</span><br />      <br />   <span style="color: #00C800;">endif</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><br /><br /><span style="color: #00C800;">IF</span> ::<span style="color: #000000;">XFDONDE</span> =<span style="color: #000000;">3</span> <span style="color: #B900B9;">// derecha</span><br />   ::<span style="color: #000000;">fypos</span>:= ::<span style="color: #000000;">fypos</span> <span style="color: #000000;">+30</span><br />   ::<span style="color: #000000;">xren</span>:=::<span style="color: #000000;">fxpos</span>/<span style="color: #000000;">30</span> <br />   ::<span style="color: #000000;">xcol</span>:=::<span style="color: #000000;">fypos</span>/<span style="color: #000000;">30</span><br />   <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xren</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xcol</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />      ::<span style="color: #000000;">fypos</span> := ::<span style="color: #000000;">fypos</span> <span style="color: #000000;">-30</span><br />   <span style="color: #00C800;">else</span><br />      <span style="color: #00C800;">if</span> aComidas<span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xren</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>::<span style="color: #000000;">xcol</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"f"</span><br />        <span style="color: #B900B9;">// fypos := fypos -30</span><br />         ::<span style="color: #000000;">fYpos</span>:=<span style="color: #000000;">60</span><br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br />   <br /><span style="color: #00C800;">ENDIF</span><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">METHOD</span> Movimiento_ChecaPos<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>   <span style="color: #00C800;">CLASS</span> TFANTASMON<br /><span style="color: #00C800;">local</span> xren, xcol<br /><span style="color: #00C800;">local</span> xnpos :=<span style="color: #000000;">0</span><br /><br />xren:=::<span style="color: #000000;">fxpos</span>/<span style="color: #000000;">30</span><br />xcol:=::<span style="color: #000000;">fypos</span>/<span style="color: #000000;">30</span><br />xotra:=<span style="color: #000000;">0</span>  <br />XPOS:=<span style="color: #000000;">0</span><br /><span style="color: #00C800;">if</span> !acomidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />   xpos++<br />   xotra:=xotra + <span style="color: #000000;">1</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> !acomidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />   xpos++<br />   xotra:= xotra + <span style="color: #000000;">2</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> !acomidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">-1</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />   xpos++<br />   xotra:= xotra + <span style="color: #000000;">3</span><br /><span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">if</span> !acomidas<span style="color: #000000;">&#91;</span>xren<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span>xcol<span style="color: #000000;">+1</span><span style="color: #000000;">&#93;</span>=<span style="color: #ff0000;">"x"</span><br />   xpos++<br />   xotra:= xotra + <span style="color: #000000;">4</span> <br /><span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #00C800;">if</span> xpos><span style="color: #000000;">2</span>    <span style="color: #B900B9;">// quire decir que ay que random para decidi a que lugar ir we  </span><br /><br />   ::<span style="color: #000000;">xfdonde</span>:=nrandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br /> <br /><span style="color: #00C800;">else</span><br />   <span style="color: #00C800;">if</span> xpos=<span style="color: #000000;">2</span><br />      <span style="color: #00C800;">if</span> xotra = <span style="color: #000000;">4</span>  .or. xotra=<span style="color: #000000;">6</span> .OR. XOTRA=<span style="color: #000000;">5</span>  <span style="color: #B900B9;">//quire decir que esta en la esquina del  muro</span><br />         ::<span style="color: #000000;">xfdonde</span>:=nrandom<span style="color: #000000;">&#40;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />       <span style="color: #B900B9;">// ? "ey estoy en 3 son dos opciones ", xotra, xfdonde</span><br />     <span style="color: #00C800;">else</span><br />        <span style="color: #B900B9;">// xfdonde:=nrandom(3)</span><br />       <span style="color: #B900B9;">//  ? " son 1 opciones ", xotra, xfdonde </span><br />     <br />      <span style="color: #00C800;">endif</span><br />   <span style="color: #00C800;">endif</span><br />    <br /><br /><span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><br /> <br /> </div>[/code:cljfleoj]
juego pacman ala Fwh
Excelente amigo Eso eso es destreza
juego pacman ala Fwh
El zip no lo descarga. No encuentra la página web y sin eso, compila el código, pero no se ve nada. Saludos.
juego pacman ala Fwh
Muy bueno benjiben Gracias. Saludos, Adhemar
juego pacman ala Fwh
Muy bueno, sí señor ! Gracias por compartirlo.
juego pacman ala Fwh
El link no funciona.
juego pacman ala Fwh
hola ahorita tengo fallas con el servidor se los puedo mandar por correo o si lo pueden subir a otro servidor me pueden mandar correo a <!-- e --><a href="mailto:chino72vale@hotmail.com">chino72vale@hotmail.com</a><!-- e --> saludos
juego pacman ala Fwh
Excelente!! Muchas gracias.
juego pacman ala Fwh
Alguien puede poner unas imágenes de como se ve ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> gracias!
juego pacman ala Fwh
Muy buen trabajo. Muchas gracias. [img:2qljss2e]http&#58;//i61&#46;tinypic&#46;com/2eofbtj&#46;jpg[/img:2qljss2e]
juego pacman ala Fwh
Excelente me he reido ijijiji muy bien trabajo..
juego pacman ala Fwh
No consigo bajarlo... <!-- s:cry: --><img src="{SMILIES_PATH}/icon_cry.gif" alt=":cry:" title="Crying or Very sad" /><!-- s:cry: -->
juego pacman ala Fwh
pásame tu correo al mi correo <!-- e --><a href="mailto:chino72vale@hotmail.com">chino72vale@hotmail.com</a><!-- e --> y te lo mando saludos
juego pacman ala Fwh
Muy bueno Felicitaciones, Increíble lo que se puede hacer con Fivewin/Harbour Imaginación es lo que hace falta
juego pacman ala Fwh
INCREIBLE, aguanta FW que ahora es que hay para rato...FELICITACIONES por el ingenio...como lo descargo.? saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
juego pacman ala Fwh
Muy ingenioso. Felicitaciones.
juego pacman ala Fwh
Muy bueno Benjamin tu PacMan ! Muy ingenioso y divertido <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> Gracias por compartir !
juego pacman ala Fwh
excelente muy bien Felicitaciones Wilson
juego pacman ala Fwh
Probando me di cuenta de un pequeño detalle....no hay puntuacion y nunca me salieron las fruticas para perseguir a los fantasmas, jejejeje...era bueno en este juego en sus inicios ...me devolvi 2 veces por las salidas de los laterales izquierdo y derecho y salio un detalle, te lo posteo, esta super divertido, gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [code=fw:cbh1d3a3]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Application<br />===========<br />&nbsp; &nbsp;Path and <span style="color: #0000ff;">name</span>: <span style="color: #000000;">D</span>:\DESCARGAS\pacman\pacman\pacman.exe <span style="color: #000000;">&#40;</span><span style="color: #000000;">32</span> bits<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">Size</span>: <span style="color: #000000;">1</span>,<span style="color: #000000;">694</span>,<span style="color: #000000;">208</span> bytes<br />&nbsp; &nbsp;Time <span style="color: #0000ff;">from</span> start: <span style="color: #000000;">0</span> hours <span style="color: #000000;">0</span> mins <span style="color: #000000;">17</span> secs <br />&nbsp; &nbsp;Error occurred <span style="color: #00C800;">at</span>: <span style="color: #000000;">04</span>/<span style="color: #000000;">24</span>/<span style="color: #000000;">15</span>, <span style="color: #000000;">23</span>:<span style="color: #000000;">34</span>:<span style="color: #000000;">27</span><br />&nbsp; &nbsp;Error description: <span style="color: #000000;">Error</span> BASE/<span style="color: #000000;">1132</span> &nbsp;Bound error: <span style="color: #000000;">array</span> access<br />&nbsp; &nbsp;Args:<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span> = A &nbsp; <span style="color: #000000;">&#123;</span> ... <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> &nbsp; <span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span> = N &nbsp; <span style="color: #000000;">0.00</span><br /><br />Stack Calls<br />===========<br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">pacman</span>.prg => VUELTACOMPLETA<span style="color: #000000;">&#40;</span><span style="color: #000000;">182</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">pacman</span>.prg => <span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">114</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: .\source\classes\<span style="color: #0000ff;">WINDOW</span>.PRG => TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">993</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;Called <span style="color: #0000ff;">from</span>: <span style="color: #000000;">pacman</span>.prg => MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">117</span><span style="color: #000000;">&#41;</span><br /><br />System<br />======<br />&nbsp; &nbsp;CPU type: <span style="color: #000000;">Intel</span><span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> Pentium<span style="color: #000000;">&#40;</span>R<span style="color: #000000;">&#41;</span> CPU G2010 @ <span style="color: #000000;">2</span>.80GHz <span style="color: #000000;">2800</span> Mhz<br />&nbsp; &nbsp;Hardware memory: <span style="color: #000000;">182</span> megs<br /><br />&nbsp; &nbsp;Free System resources: <span style="color: #000000;">90</span> %<br />&nbsp; &nbsp; &nbsp; &nbsp; GDI &nbsp; &nbsp;resources: <span style="color: #000000;">90</span> %<br />&nbsp; &nbsp; &nbsp; &nbsp; User &nbsp; resources: <span style="color: #000000;">90</span> %<br /><br />&nbsp; &nbsp;Compiler version: <span style="color: #000000;">Harbour</span> <span style="color: #000000;">3.0</span><span style="color: #000000;">.0</span> <span style="color: #000000;">&#40;</span>Rev. <span style="color: #000000;">16951</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;FiveWin &nbsp;Version: <span style="color: #000000;">FWH</span> <span style="color: #000000;">11.07</span><br />&nbsp; &nbsp;Windows version: <span style="color: #000000;">6.1</span>, Build <span style="color: #000000;">7601</span> Service Pack <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp;Windows total applications running: <span style="color: #000000;">23</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span> , C:\Program Files\IncrediMail\Bin\ImApp.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">2</span> , C:\Program Files\IncrediMail\Bin\IncMail.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">3</span> , C:\Program Files\Microsoft Office\Office12\GrooveMonitor.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">4</span> , C:\Program Files\Mozilla Firefox\firefox.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">5</span> , C:\Program Files\Mozilla Firefox\plugin-container.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">6</span> , C:\Program Files\Samsung\Kies\KiesTrayAgent.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">7</span> , C:\Program Files\Windows Media Player\wmplayer.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">8</span> , C:\Windows\System32\hkcmd.exe<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">9</span> , C:\Windows\explorer.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">10</span> , C:\Windows\system32\Macromed\Flash\FlashPlayerPlugin_17_0_0_169.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">11</span> .NET-BroadcastEventWindow<span style="color: #000000;">.4</span><span style="color: #000000;">.0</span><span style="color: #000000;">.0</span><span style="color: #000000;">.0</span>.171b980<span style="color: #000000;">.0</span>, C:\Program Files\Samsung\Kies\Kies.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">12</span> ???????????????, C:\Program Files\Trusteer\Rapport\bin\RapportService.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">13</span> CLayoutHostWnd-Tooltip, C:\Program Files\Yahoo!\Messenger\ymsgr_tray.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">14</span> Cambiar estado, C:\Program Files\Skype\Phone\Skype.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">15</span> CiceroUIWndFrame, C:\Windows\system32\taskhost.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">16</span> Conmutación de tareas, C:\Windows\Explorer.EXE<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">17</span> GlobalEvents33c0d9d<span style="color: #000000;">.0</span>, C:\Program Files\Wondershare\MobileGo\MobileGoService.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">18</span> HPWU, C:\Program Files\HP\HP Software <span style="color: #0000ff;">Update</span>\hpwuschd2.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">19</span> JDownloader, C:\Program Files\Java\jre7\bin\javaw.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">20</span> MCI command handling <span style="color: #0000ff;">window</span>, D:\DESCARGAS\pacman\pacman\pacman.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">21</span> PersistWndName, C:\Windows\System32\igfxpers.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">22</span> Realtek HD Audio CPL <span style="color: #00C800;">for</span> Vista, C:\Program Files\Realtek\Audio\HDA\RtHDVCpl.exe<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">23</span> avp, C:\Program Files\Kaspersky Lab\Kaspersky Internet Security <span style="color: #000000;">2012</span>\avp.exe<br /><br />Variables in use<br />================<br />&nbsp; &nbsp;Procedure &nbsp; &nbsp; Type &nbsp; Value<br />&nbsp; &nbsp;==========================<br />&nbsp; &nbsp;VUELTACOMPLETA<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">O</span> &nbsp; &nbsp;<span style="color: #00C800;">Class</span>: <span style="color: #000000;">ERROR</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#40;</span>b<span style="color: #000000;">&#41;</span>MAIN<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">N</span> &nbsp; &nbsp;<span style="color: #000000;">0.00</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">N</span> &nbsp; &nbsp;<span style="color: #000000;">10.00</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">3</span>: &nbsp; &nbsp;<span style="color: #000000;">A</span> &nbsp; &nbsp;Len: &nbsp; <span style="color: #000000;">29</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">4</span>: &nbsp; &nbsp;<span style="color: #000000;">N</span> &nbsp; &nbsp;<span style="color: #000000;">0.00</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">5</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">6</span>: &nbsp; &nbsp;<span style="color: #000000;">N</span> &nbsp; &nbsp;<span style="color: #000000;">0</span><br />&nbsp; &nbsp;TWINDOW:<span style="color: #0000ff;">ACTIVATE</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">O</span> &nbsp; &nbsp;<span style="color: #00C800;">Class</span>: <span style="color: #000000;">TWINDOW</span><br />&nbsp; &nbsp;MAIN<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">C</span> &nbsp; &nbsp;<span style="color: #ff0000;">"NORMAL"</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">3</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">4</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">5</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">6</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">7</span>: &nbsp; &nbsp;<span style="color: #000000;">B</span> &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">8</span>: &nbsp; &nbsp;<span style="color: #000000;">B</span> &nbsp; &nbsp;<span style="color: #000000;">&#123;</span>|| ... <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp;Param &nbsp; <span style="color: #000000;">9</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">10</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">11</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">12</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">13</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">14</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">15</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">16</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">17</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">18</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;Param &nbsp;<span style="color: #000000;">19</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">1</span>: &nbsp; &nbsp;<span style="color: #000000;">O</span> &nbsp; &nbsp;<span style="color: #00C800;">Class</span>: <span style="color: #000000;">TWINDOW</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">2</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">Local</span> &nbsp; <span style="color: #000000;">3</span>: &nbsp; &nbsp;<span style="color: #000000;">U</span> &nbsp; &nbsp;<br /><br />Linked RDDs<br />===========<br />&nbsp; &nbsp;DBF<br />&nbsp; &nbsp;DBFFPT<br />&nbsp; &nbsp;DBFBLOB<br />&nbsp; &nbsp;DBFNTX<br /><br />DataBases in use<br />================<br /><br />Classes in use:<br />===============<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">1</span> ERROR<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span> HBCLASS<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">3</span> HBOBJECT<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">4</span> TWINDOW<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">5</span> TBRUSH<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">6</span> TFONT<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">7</span> TCONTROL<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">8</span> TBITMAP<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">9</span> TFANTASMON<br />&nbsp; &nbsp; <span style="color: #000000;">10</span> TRECT<br />&nbsp; &nbsp; <span style="color: #000000;">11</span> TREG32<br /><br />Memory Analysis<br />===============<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">195</span> <span style="color: #00C800;">Static</span> variables<br /><br />&nbsp; &nbsp;Dynamic memory consume:<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">Actual</span> &nbsp;Value: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> bytes<br />&nbsp; &nbsp; &nbsp; Highest Value: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span> bytes<br />&nbsp;</div>[/code:cbh1d3a3]
juego pacman ala Fwh
Unable to download
juego pacman ala Fwh
[quote="bpd2000":13hb56vp]Unable to download[/quote:13hb56vp] Acabo descargarlo sin problemas, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
juego pacman ala Fwh
hola buenos dias si , todavia le faltan algunas validaciones a penas lo empeze a construir el pacman ese detalle es cuando esta pasando el pacman de lado a lado e interfiere un fantasma ahoita le estoy poniendo para que el pacman pueda comer fantasma y por ultimo la comidita saludos
juego pacman ala Fwh
hola buenos dias le acabo de poner la comida al pacman , ya los fantamas se ponen diferente y le da un tiempo para que no lo puedan comer, todavia no le pongo que el pacman se los comen saludos [url:2cvlisvq]http&#58;//www&#46;eleben&#46;com&#46;mx/pacman&#46;zip[/url:2cvlisvq] [url:2cvlisvq]http&#58;//www&#46;eleben&#46;com&#46;mx/pacman&#46;txt[/url:2cvlisvq] son dos ligas el .txt renombrar a zip saludos
juego pacman ala Fwh
Gracias es muy entretenido <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: --> Saluditos <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
juego pacman ala Fwh
[quote="benjiben143":d78xkmkt]hola buenos dias si , todavia le faltan algunas validaciones a penas lo empeze a construir el pacman ese detalle es cuando esta pasando el pacman de lado a lado e interfiere un fantasma ahoita le estoy poniendo para que el pacman pueda comer fantasma y por ultimo la comidita saludos[/quote:d78xkmkt] Excelente aportacion Benji,no imagine que se podia hacer con fivewin... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> . Saludos y gracias . Buen dia . Atte: Adrian C. C.
just married
Did Cristobal get married with Natalia or celebrate the wedding anniversary? Anyway wishes to Cristobal
just married
Congratulations my dear friend. Que ótima notícia. Regards, saludos.
just married
Thank you so much my friends. Yes, after 14 years living together, we decided to make it official and we got married.
just married
CONGRATULATIONS !!! Wish you a Very Happy Long Married Life.
just married
My best wishes, Cristobal! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
just married
Muchas felicidades Cristobal!
just married
¡Felicidades, Cristóbal!
just married
Congratulations Cristobal! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
just married
Congrats!! Rick Lipkin
just married
Enhorabuena!! Muchas felicidades Cristobal. Y que sean muchos años mas
just married
Congratulations!!
just married
Muchas felicitaciones, esta nueva etapa. Saludos.
just married
CONGRATULATIONS Wish you a Very Happy Long Married Life
just married
Thank you so much my friends Muchas gracias a todos.
just married
[b:3nrnqj2q]Congratulations[/b:3nrnqj2q]
just married
Cristóbal: Muchas felicidades para ti y la dueña de tu salario <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saludos
just married
Felicidades Cristobal !!! Que tengan una maravillosa y larga vida unidos en el amor <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
just married
Muchas gracias amigos
just married
Cristobal, Congratulations. My best wishes to you both for a long and happy married life. -Ramesh Babu
just married
Congratulations
just married
Felicidades!!!! Lo mejor para ti y tu flamante esposa!!!
just married
Felicidades Cristobal!!!
just married
long live with love !! dear Boss
just married
Thank you very much dear friends for your words and good wishes.
just married
Muchas FELICIDADES Cristobal !!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> no hay nada mas lindo que estar enamorado y en pareja !! Saludos,
justificado derecha en get
hola foro, pues estoy intentando justificar a la derecha un get, desde recurso lo tengo justificado a la izquierda, pero por necesidad del sistema necesito cambiarlo en tiempo de ejecucion a la derecha y no me funciona, lo hago asi: REDEFINE GET aoObjetos[1] ID 101 OF oDlg... aoObjetos[1]:nStyle:= nOr( aoObjetos[1]:nStyle, ES_RIGHT ) ya lo hice desde el ON INIT y tampoco funciona, alguna ayuda saludos paco
justificado derecha en get
Francisco si lo has creado desde recursos creo que lo tienes que modificar en el recurso Saludos
justificado derecha en get
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=7821">viewtopic.php?f=6&t=7821</a><!-- l -->
justificado derecha en get
Gracias Renzo, solucionado saludos paco
justified alignment
in the oprnBox () method it is possible to set the horizontal positioning (Left, Right, Centered) and the vertical one (Top, Bottom, Centered). in the future it is also possible to have justified alignment? example if the text is long you could have it in justified mode inside the oprn: box ()?
justify a text
For my "[i:1tmmd5sm]dear old friend[/i:1tmmd5sm]" Silvio Maybe my Metro Style Infobox is of any use for you. Regards, Otto [code=fw:1tmmd5sm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> DT_WORDBREAK         <span style="color: #000000;">16</span><br /><span style="color: #00C800;">function</span> MetroMsgInfo2<span style="color: #000000;">&#40;</span> cTitel, cAnzeige1 <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span>  lVar        := .f.<br />   <span style="color: #00C800;">local</span>  oDlg, oBTNNaviWeiter<br />   <span style="color: #00C800;">local</span>  nWidth      := GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span>  nHeight     := GetSysMetrics<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">local</span>  nLine       := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span>  nRowSpace   := <span style="color: #000000;">20</span><br />   <span style="color: #00C800;">local</span>  nRowOffset  := <span style="color: #000000;">20</span><br /><br />   <span style="color: #00C800;">local</span>  hOldFont<br />   <span style="color: #00C800;">local</span>  nTop           := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span>  nLeft      := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span>  nBottom        := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span>  nRight         := nWidth <br />   *----------------------------------------------------------<br />    <br />    nLeft   := nWidth/<span style="color: #000000;">7</span>/<span style="color: #000000;">2.05</span><br />    nHeight := <span style="color: #000000;">&#40;</span>nHeight - <span style="color: #000000;">100</span><span style="color: #000000;">&#41;</span>/ <span style="color: #000000;">3</span> * <span style="color: #000000;">2</span> - nLine<br />    <br />   nLine := <span style="color: #000000;">16</span><br />      <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br />           <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Auswahl"</span> ;<br />            <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">100</span>, <span style="color: #000000;">-6</span> ;<br />              <span style="color: #0000ff;">TO</span> nHeight, nWidth + <span style="color: #000000;">6</span> ;<br />           <span style="color: #0000ff;">PIXEL</span> ;<br />           <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">&#40;</span> DS_MODALFRAME, WS_POPUP <span style="color: #000000;">&#41;</span> ;<br />           <span style="color: #0000ff;">COLOR</span> CLR_WHITE, CLR_GREEN ;<br />            <span style="color: #0000ff;">FONT</span> Setup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oFntMedium</span><br /><br /><br />   nLine := <span style="color: #000000;">1</span><br />   @ nRowOffset * nLine , nLeft ;<br />      <span style="color: #0000ff;">SAY</span> cTitel ;<br />      <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">FONT</span> Setup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oFntMetroGross</span> ;<br />      <span style="color: #0000ff;">COLOR</span> CLR_WHITE, CLR_GREEN<br /><br />   nLine   := <span style="color: #000000;">9</span><br />   nTop    := nRowOffset * nLine<br />   nBottom := nTop + <span style="color: #000000;">420</span>/<span style="color: #000000;">2.05</span><br />   nRight  := nLeft + nWidth/<span style="color: #000000;">2</span><br /><br />   *----------------------------------------------------------<br />   nLine := <span style="color: #000000;">9</span><br />   @ nRowOffset + nRowSpace * nLine, nLeft  ;<br />      FLATBTN oBTNNaviWeiter ;<br />      <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"OK"</span> ;<br />      <span style="color: #0000ff;">FONT</span> Setup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oFntMedium</span> ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">76</span>/<span style="color: #000000;">2.05</span>, <span style="color: #000000;">&#40;</span> <span style="color: #000000;">24</span> <span style="color: #000000;">&#41;</span> /<span style="color: #000000;">2.05</span> ;<br />      <span style="color: #0000ff;">OF</span> oDlg ;<br />      <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> lVar := .t., oDlg:<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 />      <span style="color: #0000ff;">COLOR</span> CLR_GREEN, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">210</span>, <span style="color: #000000;">210</span>, <span style="color: #000000;">210</span> <span style="color: #000000;">&#41;</span><br /><br />   nLeft := nLeft * <span style="color: #000000;">2.05</span><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg ;<br />          <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">PAINT</span> <span style="color: #000000;">&#40;</span> SetBkMode<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,;<br />          hOldFont := SelectObject<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDC</span>, Setup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">oFntMetroCombo</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">&#41;</span>,;<br />          SetTextColor<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDC</span>, CLR_WHITE <span style="color: #000000;">&#41;</span>,;<br />          DrawTextEx<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDC</span>, cAnzeige1, <span style="color: #000000;">&#123;</span>nTop, nLeft, nBottom, nRight <span style="color: #000000;">&#125;</span>, DT_WORDBREAK <span style="color: #000000;">&#41;</span>,;<br />          SelectObject<span style="color: #000000;">&#40;</span> oDlg:<span style="color: #000000;">hDC</span>, hOldFont <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><span style="color: #B900B9;">//--------------------------------------------------------------------</span></div>[/code:1tmmd5sm] [img:1tmmd5sm]http&#58;//www&#46;atzwanger-software&#46;com/fw/silvioInfoBox&#46;jpg[/img:1tmmd5sm] [quote:1tmmd5sm] Have you a function to justify a text of a say on a dialog sample #include "Fivewin.ch" #include "constant.ch" #define LIGHTCYAN nRGB( 203, 225, 252 ) Functiopn test() Local nBottom := 20 Local nRight := 42 Local nWidth := Max( nRight * DLG_CHARPIX_W, 180 ) Local nHeight := nBottom * DLG_CHARPIX_H DEFINE DIALOG oDlg ; SIZE nWidth, nHeight PIXEL ; TITLE 'Donazione' ; GRADIENT { { 1,CLR_WHITE, LIGHTCYAN } } TRANSPARENT oDlg:lHelpIcon := .F. oDlg:nStyle := nOR( DS_MODALFRAME, WS_POPUP, WS_CAPTION, 4 ) cMessage:= 'Per poter utilizzare il pacchetto è ora necessario indicare la Chiave di Attivazione Procedura. La versione gratuita '+; 'del programma non permette la stampa dei listati, sarà possibile usare la procedura in modo dimostrativo '+; 'non nella completezza delle sue funzionalità. Premi Attiva per indicare la chiave di attivazione. '; @ 50, 50 SAY oSay VAR cMessage OF oDlg FONT oFont PIXEL Activate dialog oDlg[/quote:1tmmd5sm]
justify a text
Did you searching that: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19174">viewtopic.php?f=6&t=19174</a><!-- l -->
justify a text
Antolin, thank You very much for the nice function. I have done some small changes, to make it more flexible. As well changes needed, to use big fonts. LOCAL cText := ; 'Word-1 Word-2 Word-3 Word-4 Word-5 Word-6 Word-7 Word-8 Word-9 '+; 'Word-10 Word-11 Word-12 Word-14 Word-15 Word-16 Word-17 Word-18 '+; 'Word-19 Word-20 Word-21 Word-22 Word-23 Word-24 Word-25 Word-26' DEFINE FONT oFont NAME "Arial" SIZE 0,-24 BOLD [img:29kuuxk5]http&#58;//www&#46;pflegeplus&#46;com/pictures/textadj1&#46;jpg[/img:29kuuxk5] I will create a little painter with frame autoadjust, testing fonts and colors, variable linespaces ... First results !!! [img:29kuuxk5]http&#58;//www&#46;pflegeplus&#46;com/pictures/textadj2&#46;jpg[/img:29kuuxk5] Any Brush and Text-Color : [img:29kuuxk5]http&#58;//www&#46;pflegeplus&#46;com/pictures/textadj3&#46;jpg[/img:29kuuxk5] A Image : [img:29kuuxk5]http&#58;//www&#46;pflegeplus&#46;com/pictures/textadj4&#46;jpg[/img:29kuuxk5] Maybe a Border needed ?: [img:29kuuxk5]http&#58;//www&#46;pflegeplus&#46;com/pictures/textadj5&#46;jpg[/img:29kuuxk5] Image on Image with splitted Text : [img:29kuuxk5]http&#58;//www&#46;pflegeplus&#46;com/pictures/textadj6&#46;jpg[/img:29kuuxk5] Best Regards Uwe <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
justify a text
Hello Otto, I had a look at Your function, but it does just a WORDBREAK no textadjust. Also the function I'm just testing, doesn't work 100 % because it just includes blanks, to make shorter lines equal to the longest line. The only way will be, to change the font char-width of a line to adjust to the needed length. [img:mjwjbhfx]http&#58;//www&#46;pflegeplus&#46;com/pictures/workbreak&#46;jpg[/img:mjwjbhfx] End of Line of Your Test : [img:mjwjbhfx]http&#58;//www&#46;pflegeplus&#46;com/pictures/workbreak1&#46;jpg[/img:mjwjbhfx] Best regards Uwe <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
justify a text
Hello Uwe, thank you. As I am totally focused on metro style I didn’t care about text adjust. I found this Design Guidelines for Windows 8 Metro apps. [url:3g02vfht]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/windows/apps/hh464920&#46;aspx[/url:3g02vfht] Best regards, Otto
justify a text
ukoenig, perdona por la tardanza, pero he estado muy liado y, la verdad, es que no he vuelto a utilizar esta función hasta hace poco, por lo que no pude comprobar que efectivamente hay situaciones en que el texto no se justifica bien, pero ya lo he solucionado. En el post: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=19174">viewtopic.php?f=6&t=19174</a><!-- l --> Cambia la función FormatText por esta otra muy similar: [code=fw:35ds1orp]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> FormatText<span style="color: #000000;">&#40;</span>oDlg,oFont,cText,nAncho<span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// SEPARA EL TEXTO EN LINEAS</span><br />   <span style="color: #00C800;">LOCAL</span> cTrozo,cLinea,lFinLin                 <span style="color: #B900B9;">// Y LAS GUARDA EN UN ARRAY</span><br />   <span style="color: #00C800;">LOCAL</span> aTexto := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">LOCAL</span> nCrlf  := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">LOCAL</span> nTokn  := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">LOCAL</span> hDc    := oDlg:<span style="color: #000000;">GetDc</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> nChar  := Int<span style="color: #000000;">&#40;</span>nAncho/GetTextWidth<span style="color: #000000;">&#40;</span>hDc,<span style="color: #ff0000;">"B"</span>,oFont:<span style="color: #000000;">hFont</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />   *<br />   <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !Empty<span style="color: #000000;">&#40;</span>cText<span style="color: #000000;">&#41;</span><br />      lFinLin := .F.<br />      cLinea  := <span style="color: #ff0000;">""</span><br />      nTokn := <span style="color: #000000;">0</span><br />      *<br />      cTrozo  := StrToken<span style="color: #000000;">&#40;</span>cText,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">IF</span> <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cTrozo,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> = CRLF<br />         cText  := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>cText,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span><br />         cTrozo := <span style="color: #ff0000;">""</span><br />         lFinLin := .T.<br />      <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">IF</span> GetTextWidth<span style="color: #000000;">&#40;</span>hDc,cTrozo,oFont:<span style="color: #000000;">hFont</span><span style="color: #000000;">&#41;</span> > nAncho<br />     cLinea := <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cTrozo,nChar<span style="color: #000000;">&#41;</span><br />     cText  := STUFF<span style="color: #000000;">&#40;</span>cText,<span style="color: #000000;">1</span>,LEN<span style="color: #000000;">&#40;</span>cLinea<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />     cTrozo := <span style="color: #ff0000;">""</span><br />      <span style="color: #00C800;">ENDIF</span><br />      *<br />      <span style="color: #00C800;">DO</span> <span style="color: #00C800;">WHILE</span> !Empty<span style="color: #000000;">&#40;</span>cTrozo<span style="color: #000000;">&#41;</span> .AND. !Empty<span style="color: #000000;">&#40;</span>cText<span style="color: #000000;">&#41;</span><br />         cTrozo := StrToken<span style="color: #000000;">&#40;</span>cText,<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />         nCrLf  := <span style="color: #00C800;">AT</span><span style="color: #000000;">&#40;</span> CRLF, cTrozo <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">IF</span> nCrLf > <span style="color: #000000;">0</span><br />            cTrozo  := <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cTrozo,nCrLf<span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br />            lFinLin := .T. <span style="color: #B900B9;">//  <------------  FIN DE PARRAFO</span><br />         <span style="color: #00C800;">ENDIF</span><br />         *<br />         <span style="color: #00C800;">IF</span> GetTextWidth<span style="color: #000000;">&#40;</span>hDc,cLinea+cTrozo,oFont:<span style="color: #000000;">hFont</span><span style="color: #000000;">&#41;</span> > nAncho<br />        <span style="color: #00C800;">IF</span> GetTextWidth<span style="color: #000000;">&#40;</span>hDc,cTrozo,oFont:<span style="color: #000000;">hFont</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">&#40;</span>nAncho*<span style="color: #000000;">0.4</span><span style="color: #000000;">&#41;</span><br />           cLinea := <span style="color: #0000ff;">Left</span><span style="color: #000000;">&#40;</span>cLinea+<span style="color: #ff0000;">" "</span>+cTrozo,nChar<span style="color: #000000;">&#41;</span><br />           cText  := STUFF<span style="color: #000000;">&#40;</span>cText,<span style="color: #000000;">1</span>,LEN<span style="color: #000000;">&#40;</span>cLinea<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">ENDIF</span> <br />        lFinLin := .F. <span style="color: #B900B9;">//  <------------  NO FIN DE PARRAFO</span><br />        cTrozo  := <span style="color: #ff0000;">""</span><br />         ELSEIF lFinLin<br />            cText := STUFF<span style="color: #000000;">&#40;</span>cText,<span style="color: #000000;">1</span>,LEN<span style="color: #000000;">&#40;</span>cTrozo<span style="color: #000000;">&#41;</span><span style="color: #000000;">+2</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><br />            cLinea += cTrozo<br />        cTrozo := <span style="color: #ff0000;">""</span><br />            ++nTokn<br />         <span style="color: #00C800;">ELSE</span><br />            cText := LTRIM<span style="color: #000000;">&#40;</span>STUFF<span style="color: #000000;">&#40;</span>cText,<span style="color: #000000;">1</span>,LEN<span style="color: #000000;">&#40;</span>cTrozo<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">""</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />            cLinea += cTrozo+<span style="color: #ff0000;">" "</span><br />            ++nTokn<br />         <span style="color: #00C800;">ENDIF</span><br />     *<br />     <span style="color: #00C800;">IF</span> Empty<span style="color: #000000;">&#40;</span>cText<span style="color: #000000;">&#41;</span>    <span style="color: #B900B9;">// LA ULTIMA LINEA SIEMPRE HA DE SER FIN DE PARRAFO</span><br />        lFinLin := .T.<br />     <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">ENDDO</span><br />      *<br />      AADD<span style="color: #000000;">&#40;</span> aTexto, <span style="color: #000000;">&#123;</span>RTRIM<span style="color: #000000;">&#40;</span>cLinea<span style="color: #000000;">&#41;</span>,nTokn,lFinLin<span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDDO</span><br />   oDlg:<span style="color: #000000;">ReleaseDc</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">RETURN</span> aTexto</div>[/code:35ds1orp] Espero que te funciones. Un saludo
justify a text
Otto, Well, I'm confused. Are you saying the the Metro Guidelines say to right justify? It appears that they say not to right justify. 6. Use kerning, tracking, hyphenation, and alignment effectively [quote:225e6vi0]As any type designer will tell you, the space between letters is just as important as the letter shapes. Kerning (mentioned in the first rule), applies spacing adjustments between specific pairs of letters to improve the letter spacing. We recommend that you apply it to all of your content. Tracking, on the other hand, adds (or removes) space between all the letters in a string equally. As a font’s default letter spacing is often optimized for readability at a particular size, there are times when it might be appropriate to slightly widen the spacing. Tracking values of .01em or .02em may be helpful. Using justified text makes it difficult to have good spacing. When text is forced to fit a container through justification, its spacing always suffers. Justified text usually has "rivers" of white space (large gaps between words) running through the content. Avoid fully-justified text and stick with left alignment whenever possible, and apply hyphenation to keep the right edge of the text from appearing too ragged. <!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/windows/apps/jj553415.aspx">http://msdn.microsoft.com/en-us/library ... 53415.aspx</a><!-- m --> [/quote:225e6vi0] Tracking, I believe, is referring to slightly adding to the kerning in certain situations (nothing to do with right justifying). Maybe I am misunderstanding... Regards, James
justify a text
Otto, I re-read the thread and now I get it. You were talking about left-justifying multi-line text in a SAY. Others posted about right-justifying--thus my confusion. Your example is not compiling due to the missing setup() function. Could we get that? James
justify a text
Otto, This brings up an issue that I have been meaning to post about. The current TMetropanel and TMetrobutton are only useful for emulating the Windows 8 start screen. Windows 8 apps need much more flexibility such as different button sizes and different alignment. I note that the metrobutton class already has a drawMulitline() method but it depends on CRLF's already in the string. It would be very useful to have a method that would handle long strings automatically similar to your routine. Otto, I am curious as to how you are building metro style apps without these classes? I will start another topic about metro app design. I am very interested in this. Regards, James
justify a text
Dear James, Setup() is a function I initially got from you and I use now everywhere. In this case I only ask the FONT and size. DEFINE FONT ::oFntMetroMedium NAME cFontName SIZE 0,-26 * ::nFaktor I calculate a factor for different screen resolutions. As I code all Dialogs “hardcoded” I use the factor for example like this: nRowOffset := 20 * nFaktor nRowSpace := 20 * nFaktor nLine := 2 @ nRowOffset + nRowSpace * nLine, nWidth/5/2.05 * nSpalte; COMBOMETRO oCbx ; VAR cCombo ; PROMPTS aItems ; OF oDlg ; I am very confused about Metro. You only read negative news. Users do not like, Start button comes back, … Best regards, Otto
justify a text
Dear James, … BTW, do you know how you can insert a desktop connection in WINDOWS 8 to start metro style Internet explorer or other RT programs. Best regrads, Otto
justify a text
Otto, [quote:1lgxorqb]I am very confused about Metro. You only read negative news. Users do not like, Start button comes back, …[/quote:1lgxorqb] Yes, there is a lot of complaining. However, there has been for every new version of Windows. And if we listened to all the negative feedback, we would all still be using DOS. Also, I note that in general, I find most feedback (on anything) is negative. Happy customers don't spend the time to write up positive feedback like unhappy ones. This is not to say that negative feedback can't be useful, because sometimes it is warranted. I also find that most users cannot design good user interfaces (lots of programmers can't either). It takes a lot of real effort and lots of trial and error to come up with good user interfaces. I see that the largest reason for Microsoft's implementation of Windows 8's new interface is an attempt to provide a similar interface on all devices--PC's, tablets, and phones. Of course, this may require some compromises. I do not yet have a Windows 8 computer so I have not spent much time with it and I do not really have an opinion. Nevertheless, we programmers have to go with what is available, so we have to go with Windows 8 eventually. IMHO. James
justify a text
James, totally agree My experience with Windows 8 is very good, it is fast and does not give any problem regards James, totalmente de acuerdo Mi experiencia con Windows 8 es muy buena, es rápido y no da ningun problema Saludos