topic
stringlengths
1
63
text
stringlengths
1
577k
fiveweb: combobox.
perdón, sí pude ejecutar y ahí me dio error. probe de esta forma que es lo que necesito y no funciona... oGet1 := TComboBox():New( 58 , 150 , , , oDlg , aValor , 'oGet1' , cValor , ) @ 150, 80 BUTTON "Imprimdo Recibo" OF oDlg SIZE 200, 40 ACTION document.location = "lupaMENUcliente.exe?valido:"+ ; document.getElementById( "oGet1" ).value + ":" ATail( oDlg:aControls ):cAction += '+ "' + ff(oGet1:value) + ':"' ACTIVATE DIALOG oDlg NOWAIT Else endif return nil function ff (xx) *=========== return (xx)
fiveweb: combobox.
lo solucione asi , de esta manera puedo ejecutar la función mandadole como parámetro el elemento elegido ATail( oDlg:aControls ):cAction += '+ "' + ff('+"+oGet1.value+"') + ':"' donde en function ff (xx) buscar xx grabar return ()
fiveweb: combobox.
muy bien
fiveweb: picture en get
Hola Antonio, estamos trabajando con fiveweb y resulta que el Get no responde al PICTURE. En 2013 compramos el paquete fivewin 13.07 , según leí hiciste alguna modificacion de esa clase posteriormente. Y tb si hubo algún avance con el combobox, Gracias y Sldos Silvina
fiveweb: picture en get
Silvina, Aqui tienes un ejemplo de GET con picture: [url:1yikwiow]https://bitbucket.org/fivetech/fiveweb/wiki/testgetp_prg[/url:1yikwiow] Podeis descargar la versión más reciente de FiveWeb desde aqui: [url:1yikwiow]https://bitbucket.org/fivetech/fiveweb/downloads[/url:1yikwiow] (download repository)
fiveweb: picture en get
Gracias Antonio, probando.. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Silvina
fiveweb: picture en get
hola Antonio, el tema del picture se solucionó, pero puede ser que al cambiar a la nueva versión me dejó de andar esto ?: SetBackImage( AllTrim( Field->Valor ) ) SetTheme( AllTrim( Field->Valor ) ) gracias y sldos Silvina
fiveweb: picture en get
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=32479&p=190821#p190821">viewtopic.php?f=6&t=32479&p=190821#p190821</a><!-- l -->
fivewin una gran inversion
hola, wenas wenas quiero agradecer a Antonio linares ,, por fivewin ya que con esta libreria tengo trabajo desde la version 2.x en la cual he podido desarrollar cualquier aplicación que se me ha requerido en el grupo de la empresa en la cual soy asesor mis maestros son todos ustedes del foro , ya que cualquier ejemplo o comentario por mas pequeño que sea se aprende mucho de the full como he aprendido todos sus comentarios del foro gracias por el libro del bucanero , el cual me abrio los ojos de la programacion a daniel por la clase tdolphin me saco de unos apurotes y un agradecimiento muy especial a willian morales por todo su apoyo por cualquier cosilla ay ta al pendiente y a todos ustedes amigos del foro muchas gracias,,, cualquier duda o comentario dia a dia voy aprendiendo mas y mas gracias benjiben143
fivewin una gran inversion
Completamente de acuerdo y ojala no detengan el desarrollo de FiveWeb para seguir aun mas agradecidos. <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) --> Antonio, si aun tienes dudas sobre el interes que tenemos por FiveWeb, porque no haces una pre-venta de ese proyecto? De esa forma aseguras un ingreso a cambio de x meses de actualizaciones (como lo haces con el resto de los proyectos). En el peor de los casos, que hubiera poco interes (ventas) y se abandonara el proyecto, podrias abonarnos parte o el total de las aportaciones a actualizaciones de FWH o a lo que cada quien escogiera.
fivewin una gran inversion
Mi mayor satisfacción es que FiveWin sea de utilidad para muchos programadores <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> gracias a vosotros por confiar en FiveTech FiveWeb continua su desarrollo, ahora estamos viendo si incluir jquery mobile u otro frame mas apropiado para que tambien se vea correctamente en dispositivos moviles <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
fivewin 2.4 nov. 2002
HolaAdquiri la versión 2.4 de noviembre 2002, voy a comprar la actualizacion luego, pero me gustaria saber si es compatible con hardbour , ya que veo que cd original dice que trabaja con xxbase alaska 1.8 y mensiona a hardbour, ademas veo que el archivo fivewin.ch tiene sentencias sobre hardbour.Quisiera saber con version de hardbour debe usarse si funciona.Gracias de antemanoJuan Fco. Vasquez M.
fivewin 2.4 nov. 2002
Juan Fco.,Es totalmente compatible. Al comprar la nueva versión de FWH nosotros te proporcionamos la versión de Harbour/xHarbour compatible con FWH.
fivewin 2.4 nov. 2002
[quote="Antonio Linares":n1jdjvy1]Juan Fco., Es totalmente compatible. Al comprar la nueva versión de FWH nosotros te proporcionamos la versión de Harbour/xHarbour compatible con FWH.[/quote:n1jdjvy1]Gracias, Antonio voy a comprar esa version de FIVEWIN, pero quiero confirmar si puedo iniciar con esta version 2.4 y cual version de harbour se puede utilizar.Gracias,Juan Fco. Vasquez M.
fivewin 2.4 nov. 2002
Hola Juan,Yo empezé esa tarea hace un par de meses, si necesitas ayudacontacta conmigo en cosmeticsoft @ gmail.comsalu2,Adrian MarquezCosmeticsoft
fivewin 6.12 on github
Gostaria de fazer alguns testes com fivewin 6.12 no GITHUB. Algum problema se o conteúdo ficar visível no GITHUB?
fivewin 6.12 on github
I want to put the demo/avaliation version of fivewin 6.12 on github, to show the use of hbmk2 with Harbour/Xharbour/Fivewin. Is valid to make this with avaliation version?
fivewin 6.12 on github
José, Yes, you can use it as you want, you are welcome FWH + hbmk2 examples of use: <!-- m --><a class="postlink" href="http://forums.fivetechsupport.com/viewtopic.php?p=228366#p228366">http://forums.fivetechsupport.com/viewt ... 66#p228366</a><!-- m -->
fivewin MySql como comenzar de cero???
Estimados FiveWinners Instalé Appserv con MySql, Apache y Php, como me conecto con five win a mysql?, que me recomiendan? por lo que he leido está ADO , Dolplhin, Eagle. agracederé si me postean algunos ejemplos. Gracias de antemano
fivewin MySql como comenzar de cero???
Hola, Eagle1 y Dolphin son buenisimos.,,,, Eagle1 es de pago y Dolphin es de codigo abierto,,, tengo aplicaciones con ambos esquemas de trabajo,,, Salu2
fivewin MySql como comenzar de cero???
Gracias willi, pero tu podrías mandarme un ejemplo para conectarme ya que estoy comenzando con este tema y soy totalmente ignorante. de antemano gracias
fivewin MySql como comenzar de cero???
En el blog de Daniel (TDolphin) hay varios ejemplos... <!-- m --><a class="postlink" href="http://tdolphin.blogspot.com/">http://tdolphin.blogspot.com/</a><!-- m --> Salu2 <!-- e --><a href="mailto:ekasoftware@hotmail.com">ekasoftware@hotmail.com</a><!-- e -->
fivewin app not responding in XP
Hi, My fivewin app always 'not responding' in XP when click on it desktop icon. But it does not have problem in Win98. Apparently 16-bit app not supported well in XP. I use dbf/cdx, externall dll, modification in tsbrowse, infoz.dll, etc. I need time to change whole app into 32-bit but customer can not wait. Any quick work around for it ? or tuning setting in .lnk script ? Regards Hoe
fivewin app not responding in XP
Do you mean that the application does not start ?
fivewin app not responding in XP
Yes, sometime it starts, sometime it does'not start, just stay 'not responding' fot all pc with XP I use fw1.95, blinker 7,clipper 5.2 Regards Hoe
fivewin app not responding in XP
I had the same problem with clipper (only 16 bit) , it was a virus problems . Maurizio <!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
fivewin app not responding in XP
[quote="Maurizio":3bdrh72y]I had the same problem with clipper (only 16 bit) , it was a virus problems . Maurizio <!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->[/quote:3bdrh72y] Dear Maurizio I'm ever gotten the promble same you. Try to copy command prompt of XP icon and paste somewhere in your desktop. After that write COMMAND in target of properties that icon and then ok. After done, you should to go to properties that icon again for new change Cmd Line and Working in program tab to your app. Best Regrad, Pe N Chi PS: For give me if that not work <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
fivewin app not responding in XP
In XP desktop shortcut properties, on Shortcut tab, click on Advanced button and then select "run in separate memory area."
fivewin app not responding in XP
I had the the same problem and i resolved it using a 1995 BWCC.DLL file, 164.928 bits long
fivewin con Tablets
Compañeros, Tengo clientes que me piden un software de hostelería a medida pero con comandero. Con FWH puedo programar y diseñar las pantallas para el TPV fijo en la barra del bar con impresoras en barra y cocina, pero la duda la tengo en los comanderos. ¿Puedo utilizar como comandero las "Tablet de Windows"? ¿Hay que diseñar nuevas pantallas tactil diferentes al del TPV fijo? ¿Qué tablet me recomendais? Entiendo que cada tablet actua como un usuario más dentro de una red local. Gracias. Un saludo. LORENZO.
fivewin con Tablets
Loren, he trabajado con tablets basadas tandto en windows8 como en windows 10, y la verdad es que no tienes ninguna diferencuia con respecto a equipos portatiles o de sobremesa. Me inclino por las tablets windows de 3go, por su calidad y precio [url:39u18f7z]http&#58;//www&#46;3go&#46;es/es/tablets11/2493-tablet1w81128x8&#46;html[/url:39u18f7z] [url:39u18f7z]http&#58;//www&#46;3go&#46;es/es/tablets11/2645-tabletgt1w31w1128x8&#46;html[/url:39u18f7z] Tuve algún problemilla con lo botones en los diálogos, pero creo que Antonio lo tiene resuelto en las nuevas versiones de fivewin. Un saludo
fivewin con Tablets
Loren, Yo estoy usando Tabletas Vulcan de 7" con windows 8 actualizadas a Win 10 y cualquier software windows funcionan perfectamente. para la señal wifi instale un AP Engenius EAP600. Si usas MySQL debereas estar haciendo PING al servidor.. por que habra momentos que perderas la señal wifi. Saludos
fivewin en colombia
Saludos amigos del foro recientemente me he mudado de caracas-venezuela a bogota-colombia, si alguien en colombia sabe de algun trabajito o proyecto en fivewin u otro pues agradeceria me comentara, gracias a todos alejandro patiño
fivewin en colombia
Bienvendido a Colombia Estoy en Cartagena, si necesitas algo con mucho gusto.
fivewin en colombia
Que tengas mucha buena fortuna <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Saluditos desde Mexico bonito <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> Aida
fivewin en colombia
QAZWSX2K Bienvenido a Colombia Me encuentro en Cali pero cuenta conmigo Cordialmente Jairo Barbosa
fivewin en colombia
Alejandro, Bienvenido a Bogotá DC, entra a mi página y encontraras los números telefónicos de la oficina, llamame y cuadramos una reunión y miramos a ver que sale. Saludos
fivewin en colombia
Saludos, excelente Mauricio, veo por tu pagina que tu camino es similar al mio, mañana te llamo a ver cuando puedo pasar a hablar contigo, lastima no vi el foro ayer y hoy Alejandro Patiño
fivewin versão gratuita onde baixa?
fivewin versão gratuita onde baixa?
fivewin versão gratuita onde baixa?
Puedes descargar una versión demo (aunque bastante antigua) desde: [url:2dfwmeih]http&#58;//www&#46;fivetechsoft&#46;com[/url:2dfwmeih]
fivewin versão gratuita onde baixa?
Aqui, está mais completo se não me engano: [url:s6rz1yz7]http&#58;//www&#46;pctoledo&#46;com&#46;br/forum/viewtopic&#46;php?f=2&t=17177&p=106333&hilit=fivewin+demo#p106333[/url:s6rz1yz7] Abs.
fivewin versão gratuita onde baixa?
obrigado <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=16841&p=164565&hilit=fwh+free#p164565">viewtopic.php?f=3&t=16841&p=164565&hilit=fwh+free#p164565</a><!-- l --> <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/6.12/fwh.exe">http://www.fivetechsoft.com/files/6.12/fwh.exe</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/6.12/harbour.exe">http://www.fivetechsoft.com/files/6.12/harbour.exe</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivetechsoft.com/files/6.12/xharbour.exe">http://www.fivetechsoft.com/files/6.12/xharbour.exe</a><!-- m -->
fivewin.com.br
não consigo entrar na minha conta, resetei e criei uma outra senha,,,, mais hoje não consigo entrar novamente. sugestão: seria bom o Gilmer falar com o Antonio Linhares e exportar todos os tópicos do forum Brasil para este fórum aqui. e redirecionar o link fivewin.com.br para cá. é só uma sugestão.
fivewin.com.br
[url:4tsehncz]https&#58;//www&#46;facebook&#46;com/groups/112382682270253/?ref=bookmarks[/url:4tsehncz]
fivewin/Harbour encrypt decrypt function in c#
Hello, I have a program written in fivewin nad harbour that encrypt some text in memo fields. Now i try to incorporate same dbf and fpt in Visualstudio 2013. I get the dbf and the encrypted memo but i cannot decryt without the decrypt / encrypt functions. I tried to find the functions source to transalte them in c# but with no luck. It seems they are "only" compiled in .lib file. Can anyone tell me where or how to get the source? Or how to include the fivewin .lib in visualstudio project, if possible? ANOTHER OPTION COULD BE TO CREATE A DLL WITH THE TWO FUNCTION referenced? Is this possible, and, if yes, how? Thanks Lorenzo
fivewin/Harbour encrypt decrypt function in c#
Lorenzo, We can email you its source code. We don't include it in FWH sources for security reasons.
fivewin/Harbour encrypt decrypt function in c#
Thanks Antonio you are very great! but it is very difficult to translate a bitwise in c# <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> do you think it is better to make a dll or something more easy to do? Lorenzo
fivewin/Harbour encrypt decrypt function in c#
Lorenzo, You can do bitwise dividing by 2 or multiplying by 2 <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> In example: 01110111 --> 119 Divided by 2: 111011 Multiplied by 2: 11101110
fivewin/Harbour encrypt decrypt function in c#
Thank you Antonio, i tried to translate in c# and then i decided to use another way: to call my program from c# ( from a web form) then usa a text file to transfer data from fivewin engine to html using a file. This works great from Visualstudio 2013 IDE BUT ( there is always a BUT in Windows 8.1 and 10) <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> when deployed as a normal c# web app, calling the exe means to call a process in a different "ambient". So the exe run but in an infinite loop doing nothing visible. I search on internet for a solution (many), with no luck. Now i am thinking for a "great" solution if possible; that is, using a "Windows Service" written in harbour/fivewin, able to run my old functions or program(exe) and pass them arguments. Did you already make this wheel? <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Lorenzo
fivewin/Harbour encrypt decrypt function in c#
Lorenzo, I'm not sure if you are using harbour of xharbour. If harbour you might want to have a look at contribs\hbwin. The olesrv*.prg present there are both easy to understand and useful, as is the service.prg. Although I've stopped using it now, for a number of years I used just such an harbour OLE server to expose hbnetio to be called and used from xharbour programs (VxH) where I needed this functionality. The contrib/hbwin folder contains examples to call from javascript, .vbs. Just a suggestion. Robb
fivewin/Harbour encrypt decrypt function in c#
Lorenzo, You can create a Windows DLL and use it from your .NET app. Thats what I did in FiveNet: [url:2vgwgwb6]https&#58;//code&#46;google&#46;com/p/fivenet/wiki/architecture[/url:2vgwgwb6]
fivewin/Harbour encrypt decrypt function in c#
Actually i found that, it is possible to run an xHarbour/fivewin exe from c# net with no problems, if i do not define any Window , that is, running a dos executable, without desktop implications. Now i would try your suggestion that seems VERY interesting. In effect this would eliminate the "problem" to read the code, without obfuscation, that is a more secure one. Thanks Antonio
fivewin/Harbour encrypt decrypt function in c#
Ok Antonio, many of us made thousands of lines of marvellous code with fivewin, trhrough decades <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> , thanks to your tremendous work. Now, all is web and html and .net, so, what an incredible step over, would be to use our old but overtested fivewin algorythm in .Net ! Now, i was able to use all my old fivewin code from visualstudio .net project, by simply calling (running) my exe without activate ANY window. That is, no need to change my code; simply i do not Activate any window. This way i can maintain reference to main ownd and owndclient window without changing a line of code and write the output i need, into a file that i can then read from c# .net. I then tried to look at your fivenet project that seems to allow to run a windowed exe from net. So, i registered with c:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm fivenet.dll /tlb and also with C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm fivenet.dll /tlb then from my c# net project i tried to run one of your exe (tutor01.exe) with scriptProc.StartInfo.FileName = @"tutor01.exe"; scriptProc.Start(); scriptProc.WaitForExit(); but i have no message prompt and no error from .net Sorry if i post here referring to fivenet, but as i understand better the architecture i will post in fivenet forum. Thanks <!-- s:roll: --><img src="{SMILIES_PATH}/icon_rolleyes.gif" alt=":roll:" title="Rolling Eyes" /><!-- s:roll: -->
fivewin/Harbour encrypt decrypt function in c#
Lorenzo, If you directly run tutor01.exe, does it work ?
fivewin/Harbour encrypt decrypt function in c#
I just realized why it is not working from your C# app: I use GetModuleFileName( NULL, ... ) to access the root app (tutor01.exe) and it you start tutor01.exe from your C# app, then tutor01.exe is not the root app anymore <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
fivewin/Harbour encrypt decrypt function in c#
We could replace: GetModuleFileName( NULL, ... ) with: GetModuleFileName( GetModuleHandle( "tutor01.exe" ), ... ) and that should solve the problem <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
fivewin/Harbour encrypt decrypt function in c#
Antonio, answering to you first question, if i can run tutor01.exe directly (by double-clicking on it): Not, or anyway i cannot see any messagebox appearing, nor any error! And, by the way, how can i run tutor01.exe from c# web application if not by running it as an externalk process? There is another o better way? thanks Lorenzo
fivewin/Harbour encrypt decrypt function in c#
tutor01.exe should work fine on your pc. I don't think that you can use Windows GUI when executing an EXE from web .NET code Is it possible to do it with C# ? Can you build a tutor01.exe with C# and call it from your web code ?
fivewin/Harbour encrypt decrypt function in c#
No, Antonio, tutor01.exe (that should be ....a simple message to show) [code=fw:23ajs1c9]<div class="fw" id="{CB}" style="font-family: monospace;">/ FiveNet - simple <span style="color: #0000ff;">message</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Welcome to FiveNet"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:23ajs1c9] does nothinìg if i run directly on my windows 10 pc. It runs and exit without showing any message. --------------------------------------------------------------------------------------------------------------------- Anyway my intent was to be able to run fivewin window's exe on the web from a web c# .net site. Seems that this is impossible (something is possible with "net remoting" but it is not what i want. Instead, as i can safely run my fivewin executable, (without Activating any window from it), i can comunicate with the exe through xml or txt files.
fivewin/Harbour encrypt decrypt function in c#
Lorenzo, Did you execute c:\FiveNet\samples\register.bat in advance ? The FiveNet.dll has to be registered this way: c:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm fivenet.dll /tlb I just tested tutor01.exe on Windows 10 and worked fine <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
fivewin/Harbour encrypt decrypt function in c#
So, i registered with c:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm fivenet.dll /tlb and also (as i work with 4 framework) with C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm fivenet.dll /tlb but it works only if i register with version 2, c:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm fivenet.dll /tlb <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> Anyway i cannot run tutor01.exe from a real web site (i can run tutour01.exe as a process, only from visualstudio IDE for testing in debug mode). thanks Antonio
fivewin/Harbour encrypt decrypt function in c#
Lorenzo, > Anyway i cannot run tutor01.exe from a real web site Yes, as far as I know it, it is a Windows limitation.
fivewin1507+harbour + bcc7 error
?????????????????????????????????????????????????????????????????????????????? ? FiveWin for Harbour 15.07 - Jul. 2015 Harbour development power ?? ? (c) FiveTech, 1993-2015 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8 ?? ???????????????????????????????????????????????????????????????????????????????   ????????????????????????????????????????????????????????????????????????????? Compiling... Harbour 3.2.0dev (r1506171039) Copyright (c) 1999-2015, <!-- m --><a class="postlink" href="http://harbour-project.org/">http://harbour-project.org/</a><!-- m --> Compiling 'testdlg.prg' and generating preprocessed output to 'testdlg.ppo'... Lines 4465, Functions/Procedures 2 Generating C source output to 'testdlg.c'... Done. Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc. testdlg.c: Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. Error: 'C:\HARBOUR\LIB\HBWIN.LIB' contains invalid OMF record, type 0x21 (possibly COFF) * Linking errors *
fivewin1507+harbour + bcc7 error
Tiene toda la pinta de que estás utilizando el Harbour para Visual Studio Compruebalo
fivewin1507+harbour + bcc7 error
Cristobal, Estou usando o HARBOUR que acompanha a versão FWH15.07: harbour_3.2_32bits_VS2013_20150621.zip
fivewin1507+harbour + bcc7 error
[quote="SGS":2gti7c0w]Cristobal, Estou usando o HARBOUR que acompanha a versão FWH15.07: harbour_3.2_32bits_VS2013_20150621.zip[/quote:2gti7c0w] Esa version es para Visual Studio 2013 no es para Borland Has de usar esta <!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/harbour_3.2_32bits_Borland7_20150621.zip">https://bitbucket.org/fivetech/harbour- ... 150621.zip</a><!-- m -->
fivewin1507+harbour + bcc7 error
Cristobal, O link não funciona poderia verificar para mim. att.
fivewin1507+harbour + bcc7 error
[quote="SGS":18bq5bjl]Cristobal, O link não funciona poderia verificar para mim. att.[/quote:18bq5bjl] Acabo de comprobarlo
fivewin1507+harbour + bcc7 error
Cristobal, é o meu proxy que esta impedindo o download. Muito obrigado amigo pela ajuda.
fivewin1507+harbour + bcc7 error
Cristobal Navarro, Perfeito! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> muito obrigado!
fix coordinates of a window
Can I fix a size of a window I use this window on tablet and it must be big as screen tablet and the user cannot change the size How i can make it ?
fix coordinates of a window
oWnd:aMinMaxInfo := { ; xMaxSize, yMaxSize, ; xMaxPosition, yMaxPosition, ; xMinTrackSize, yMinTrackSize, ; xMaxSize - xMaxPosition, yMaxSize - yMaxPosition } // xMaxTrackSize, yMaxTrackSize
fix coordinates of a window
one small sample thanks
fix coordinates of a window
resolved
fix coordinates of a window
Silvio, >resolved >one small sample thanks Best regards, Otto
fix coordinates of a window
Local nMINWidth := Int( ScreenWidth() * 0.85 ) Local nMINHeight :=Int( ScreenHeight() * 0.85 ) Local nMAXWidth := GETSYSMETRICS( 0 ) //risoluzione orizzontale Local nMAXHeight := GETSYSMETRICS( 1 ) //risoluzione verticale ::oWndMain:aMinMaxInfo = { GETSYSMETRICS( 0 ), GETSYSMETRICS( 1 ),; // xMaxSize, yMaxSize 0, 0,; // xMaxPosition, yMaxPosition nMINWidth, nMINHeight,; // xMinTrackSize, yMinTrackSize nMAXWidth, nMAXHeight }
fix para toutlook
Antonio, por favor agrega estas lineas a la clase toutlook, METHOD AddItem corrige un problema con los botones cuando estan deshabilitados, no estan usando color gris. [code=fw:267o0dax]<div class="fw" id="{CB}" style="font-family: monospace;">   <br />   oBmp := TBtnBmp<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, BMP_SIZE, BMP_SIZE, ;<br />                          cResource, , cBitmap, , bAction, <span style="color: #00C800;">Self</span>, ;<br />                          cMsg, bWhen, lAdjust, .t., , ;<br />                          oFont, , , lNoBorder <span style="color: #000000;">&#41;</span><br /><br />   oBmp:<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> , ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">&#41;</span><br /><br />   oBmp:<span style="color: #000000;">lBarBtn</span>    := .t. <span style="color: #B900B9;">//NEW</span><br />   oBmp:<span style="color: #000000;">lRound</span>     := .f. <span style="color: #B900B9;">//NEW</span><br /><br /> </div>[/code:267o0dax] [img:267o0dax]http&#58;//i&#46;imgur&#46;com/2N0xXts&#46;png[/img:267o0dax] [img:267o0dax]http&#58;//i&#46;imgur&#46;com/A4RLBBH&#46;png[/img:267o0dax] salu2 carlos vargas
fix para toutlook
Carlos, Añadido, muchas gracias! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
fix para toutlook
Disculpa Carlos: Veo que tus Gets tienen en look XP, por favor, como lo logras? (Quizas sea que tengo Win 7 y no lo puedpo hacer) Muchas gracias. Dario Fernandez
fix para toutlook
para que la app tome los themas de windosxp en adelante, es necesario agregar el archivo manifest al rc, de la siguiente forma: [quote:1o2hwkj6] 1 24 "WindowsXP.Manifest" [/quote:1o2hwkj6] o en su defecto, tomar el archivo windowsxp.manifest, ponerlo en el dir donde este nuestra app, y renombrarlo asi: si mi app se llama factura.exe, windowsxp.manifest se renombra a factura.exe.manifest windowsxp.manifest [quote:1o2hwkj6] <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="FiveTech Software.FiveWin.32bits" type="win32" /> <description>Your application description here.</description> - <dependency> - <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> </assembly> [/quote:1o2hwkj6]
fix para toutlook
Gracias Carlos. No me funciona, de ninguna de las 2 maneras. Pero no importa, estoy resignado. Gracias Igual. Saludos.
fix para toutlook
Ruben, Usas un fichero RC en tu aplicación ? Has incluido en él la línea que te ha indicado Carlos ? Te compila bien el fichero RC y te genera el archivo RES ?
fix para toutlook
Si Antonio: He hecho de todo, pero me sale el get hundido. Gracias y saludos.
fix para toutlook
Ruben, Una vez hayas construido tu EXE, ábrelo con PellesC e inspecciona que el fichero manifest realmente este dentro de los recursos del EXE.
fix para toutlook
o igual por teamviewer te doy soporte, tu dime y lo revisamos mas personalizadamente. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> lo mas probable es que uses una tget personal. salu2 carlos vargas
fix para toutlook
Gracias a los dos, es inigualable la ayuda de este foro. Recien llego de trabajar. Pruebo lo de Antonio y vuelvo a molestar. Muuuuchas gracias. Saludos.
fix windows clock issues when dual booting with osx
[url:1tl5y22m]http&#58;//lifehacker&#46;com/5742148/fix-windows-clock-issues-when-dual-booting-with-os-x[/url:1tl5y22m] regedit.exe navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation. Right click anywhere in the right pane and hit New > DWORD (32-bit) Value. Name it RealTimeIsUniversal, then double click on it and give it a value of 1. Lastly, reboot into OS X, then reboot back into Windows. You should now notice that your clock actually displays the correct time.
flags de compilacion de harbour
¿ Alguien sabe donde tengo que colocar los flags ( quiero añadir) de compilación de gcc en el harbour oficial ? Quiero ver si soy capaz de compilar el harbour para armv7 pero no sé en que archivo tengo que colocar los flags. Gracias de antemano.
flags de compilacion de harbour
me medio respondo : You can override default (host) architecture by adding > values below to `HB_USER_CFLAGS`, `HB_USER_LDFLAGS` envvars, > you can use multiple values Ahora falta encontrar en que archivo se asignan esas variables.
flags de compilacion de harbour
Manuel, Son variables de entorno (del cmd) que se tienen que establecer antes de lanzar el make Por ejemplo: SET HB_COMPILER=msvcarm
flags de compilacion de harbour
[quote="Antonio Linares":1p180i3w]Manuel, Son variables de entorno (del cmd) que se tienen que establecer antes de lanzar el make Por ejemplo: SET HB_COMPILER=msvcarm[/quote:1p180i3w] Gracias Antonio , tambien es posible hacer que esas constantyes permanezcan ( sin volver a escribirlas cada vez en el cmd ) creando un archivo user.rm en el directorio raiz de harbour y asignandolas dentro de el .. <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> . De todas maneras no he conseguido hacerlo funcionar adecuadamente , supongo que por cuetiones de path a archivos necesarios. Se trataba de compilar el ultimo harbour para iphone con la version de ios 6.1 sdin pasar por construirlo en el teléfono . En Teoria el compilador de Macosx es capaz de crear librerias para las distintas versiones solo poniendoles los flags adecuados y las rutas a las librerias adecuadas , de momento no encuentro la manera . He creado el harbour para macosx con 10.8 y para simulador sdk 6.1 ( no probado aún ) , solo falta el de ios .De momento lo estoy tratando de contruir en el telefono con el sdk 7.0 pero tambien da algunos errores y no crea algunas librerias ... todo se andará . Lo suyo seria crear un make en un proyecto Xcode y no utilizar el make original del repositorio Harbour , pero eso llevara un tiempo del que no dispongo . Saludos.
flash a small icon
SET MESSAGE OF ::oWinMain TO ::cMsgBar CENTER NOINSET DEFINE MSGITEM ::oMsgItem1; OF ::oWinMain:oMsgBar ; PROMPT "Archivio al 16 Maggio 2020" ; BITMAPS "MSG_ALERT", "MSG_ALERT"; SIZE 170 ; TOOLTIP " " + "Data" + " "; ACTION NIL Can I flash a small icon on a msgitem of bar
flash a small icon
Dear Silvio, Use a timer and change the icon
flash a small icon
[quote="Antonio Linares":31w3ovko]Dear Silvio, Use a timer and change the icon[/quote:31w3ovko] I tried but I not Know How make it If lOld oMsgItem2:SetText("Archivio non aggiornato!" ) DEFINE TIMER oTimer OF oMsgItem2 ; INTERVAL 400 ; ACTION oMsgItem2:SetBitmap( MSG_ALERT, MSG_ALERT ) )) //??? ACTIVATE TIMER oTimer Endif
flashing SAY
Hi, Please tell me an example with a flashing SAY
flashing SAY
Dear Yuri, Simply use a TIMER and change the colors of the SAY object
flashing SAY
Thanks
flashing SAY
DYNAMIC SAY: [url:2395n3nu]https&#58;//mega&#46;nz/file/kNcBTKjA#ViF4H4zNNbGcS5PQjQVR0KqJ08AZlBfrFsRPhdMTedY[/url:2395n3nu] Regards, saludos.
flashing SAY
Dear João, many thanks dsay.ch [code=fw:17a8rfwk]<div class="fw" id="{CB}" style="font-family: monospace;">#ifndef _DSAY_CH<br /><span style="color: #00D7D7;">#define</span> _DSAY_CH<br /><br /><span style="color: #B900B9;">/*----------------------------------------------------------------------------//<br />!short: DYNAMIC SAY &nbsp;*/</span><br /><br /><span style="color: #B900B9;">// The SPEED tints that to go from 0 to 100</span><br /><br />#xcommand <span style="color: #0000ff;">REDEFINE</span> DYNAMIC <span style="color: #0000ff;">SAY</span> <span style="color: #000000;">&#91;</span><oDSay><span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <label: <span style="color: #0000ff;">PROMPT</span>, VAR> <cText> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">PICTURE</span> <cPict> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">ID</span> <nId> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <dlg: <span style="color: #0000ff;">OF</span>,<span style="color: #0000ff;">WINDOW</span>,<span style="color: #0000ff;">DIALOG</span> > <oWnd> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lCenter: <span style="color: #0000ff;">CENTERED</span>, <span style="color: #0000ff;">CENTER</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lRight: &nbsp;<span style="color: #0000ff;">RIGHT</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lBottom: <span style="color: #000000;">BOTTOM</span> > <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <color: <span style="color: #0000ff;">COLOR</span>,COLORS > <nClrText> <span style="color: #000000;">&#91;</span>,<nClrBack> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <scroll: <span style="color: #0000ff;">VERTICAL</span>, <span style="color: #0000ff;">HORIZONTAL</span> > <span style="color: #0000ff;">SCROLL</span> <span style="color: #000000;">&#91;</span> SPEED <nSpeed> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <lWrap: <span style="color: #000000;">WRAP</span> > <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lBlink: <span style="color: #000000;">BLINKING</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <update: <span style="color: #0000ff;">UPDATE</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lShaded: <span style="color: #000000;">SHADED</span>, SHADOW > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lBox: &nbsp; &nbsp;<span style="color: #000000;">BOX</span> &nbsp; > &nbsp;<span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lRaised: <span style="color: #000000;">RAISED</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp;=> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span> <oDSay> := <span style="color: #000000;">&#93;</span> TDSay<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> <nId>, <<span style="color: #000000;">&#123;</span>cText<span style="color: #000000;">&#125;</span>>, <oWnd>, <cPict>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <.lCenter.>, <.lRight.>, <.lBottom.>, <nClrText>, <nClrBack>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span>Upper<span style="color: #000000;">&#40;</span><<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">scroll</span><span style="color: #000000;">&#41;</span>><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>, <nSpeed>, <.lWrap.>, <.lBlink.>, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <.<span style="color: #0000ff;">update</span>.>, <oFont>, <.lShaded.>, <.lBox.>, <.lRaised.> <span style="color: #000000;">&#41;</span><br /><br />#xcommand @ <nRow>, <nCol> DYNAMIC <span style="color: #0000ff;">SAY</span> <span style="color: #000000;">&#91;</span> <oDSay> <label: <span style="color: #0000ff;">PROMPT</span>,<span style="color: #0000ff;">VAR</span> > <span style="color: #000000;">&#93;</span> <cText> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">PICTURE</span> <cPict> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <dlg: <span style="color: #0000ff;">OF</span>,<span style="color: #0000ff;">WINDOW</span>,<span style="color: #0000ff;">DIALOG</span> > <oWnd> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">FONT</span> <oFont> <span style="color: #000000;">&#93;</span> &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lCenter: <span style="color: #0000ff;">CENTERED</span>, <span style="color: #0000ff;">CENTER</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lRight: &nbsp;<span style="color: #0000ff;">RIGHT</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lBottom: <span style="color: #000000;">BOTTOM</span> > <span style="color: #000000;">&#93;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lBorder: <span style="color: #000000;">BORDER</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lPixel: <span style="color: #0000ff;">PIXEL</span>, PIXELS > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <color: <span style="color: #0000ff;">COLOR</span>,COLORS > <nClrText> <span style="color: #000000;">&#91;</span>,<nClrBack> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <span style="color: #0000ff;">SIZE</span> <nWidth>, <nHeight> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <scroll: <span style="color: #0000ff;">VERTICAL</span>, <span style="color: #0000ff;">HORIZONTAL</span> > <span style="color: #0000ff;">SCROLL</span> <span style="color: #000000;">&#91;</span> SPEED <nSpeed> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#91;</span> <lWrap: <span style="color: #000000;">WRAP</span> > <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lBlink: <span style="color: #000000;">BLINKING</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <design: <span style="color: #000000;">DESIGN</span> > &nbsp;<span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <update: <span style="color: #0000ff;">UPDATE</span> > &nbsp;<span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lShaded: <span style="color: #000000;">SHADED</span>, SHADOW > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lBox: &nbsp; &nbsp;<span style="color: #000000;">BOX</span> &nbsp; > &nbsp;<span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span> <lRaised: <span style="color: #000000;">RAISED</span> > <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; => ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#91;</span> <oDSay> := <span style="color: #000000;">&#93;</span> TDSay<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <nRow>, <nCol>, <<span style="color: #000000;">&#123;</span>cText<span style="color: #000000;">&#125;</span>>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span><oWnd><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">&#91;</span><cPict><span style="color: #000000;">&#93;</span>, <oFont>, <.lCenter.>, <.lRight.>, <.lBottom.>, <.lBorder.>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<.lPixel.>, <nClrText>, <nClrBack>, <nWidth>, <nHeight>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#91;</span>Upper<span style="color: #000000;">&#40;</span><<span style="color: #000000;">&#40;</span><span style="color: #0000ff;">scroll</span><span style="color: #000000;">&#41;</span>><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>, <nSpeed>, <.lWrap.>, <.lBlink.>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<.design.>, <.<span style="color: #0000ff;">update</span>.>, <.lShaded.>, <.lBox.>, <.lRaised.> <span style="color: #000000;">&#41;</span><br />#endif<br />&nbsp;</div>[/code:17a8rfwk] dsay.prg [code=fw:17a8rfwk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// MODIFICADO EM: 28/10/2021 -> ::Super - Joao</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Constant.ch"</span><br /><br /><span style="color: #00D7D7;">#define</span> SS_CENTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> SS_RIGHT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> SS_GRAYRECT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">5</span> <span style="color: #B900B9;">// BOXRECT</span><br /><br /><span style="color: #00D7D7;">#define</span> TA_LEFT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> TA_RIGHT &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">2</span><br /><span style="color: #00D7D7;">#define</span> TA_CENTER &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">6</span><br /><span style="color: #00D7D7;">#define</span> TA_TOP &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> TA_BOTTOM &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">8</span><br /><br /><span style="color: #00D7D7;">#define</span> COLOR_WINDOW &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">5</span><br /><span style="color: #00D7D7;">#define</span> COLOR_WINDOWTEXT &nbsp; &nbsp; &nbsp;<span style="color: #000000;">8</span><br /><br /><span style="color: #00D7D7;">#define</span> COLOR_BTNSHADOW &nbsp; &nbsp; &nbsp;<span style="color: #000000;">16</span><br /><span style="color: #00D7D7;">#define</span> COLOR_BTNHIGHLIGHT &nbsp; <span style="color: #000000;">20</span><br /><br /><span style="color: #00D7D7;">#define</span> WM_NCHITTEST &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">132</span> &nbsp;<span style="color: #B900B9;">// 0x84</span><br /><br /><span style="color: #00D7D7;">#define</span> GWL_STYLE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">-16</span><br /><span style="color: #00D7D7;">#define</span> GWL_EXSTYLE &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">-20</span><br /><br />#ifdef __XPP__<br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">Super</span> ::<span style="color: #000000;">TControl</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">New</span> &nbsp; _New<br />#endif<br /><br /><span style="color: #00C800;">static</span> oTimer, aTimer := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">CLASS</span> TDSay <span style="color: #0000ff;">FROM</span> TControl<br /><br />&nbsp; &nbsp;CLASSDATA lRegistered AS LOGICAL<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; l3D<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; cPicture<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; aCaption<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; bGet<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; lShaded, lBox, lRaised<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nDTop, nDLeft<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nTTop, nTLeft<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; aRect, nLong<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nTxtWidth, nTxtHeight<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; nAlign<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; oTimer<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; lScroll, lHorizontal, nSpeed, lWrap &nbsp; &nbsp;<span style="color: #B900B9;">// nSpeed: 0 to 100</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> &nbsp; lBlink, lView<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nRow, nCol, bText, oWnd, cPicture, oFont,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lCentered, lRight, lBottom, lBorder, lPixels, nClrText, nClrBack,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nWidth, nHeight, cScroll, nSpeed, lWrap, lBlink,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lDesign, lUpdate, lShaded, lBox, lRaised <span style="color: #000000;">&#41;</span> CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> nId, bText, oWnd, cPicture, lCentered, lRight, lBottom,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nClrText, nClrBack, cScroll, nSpeed, lWrap, lBlink,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lUpdate, oFont, lShaded, lBox, lRaised <span style="color: #000000;">&#41;</span> &nbsp;CONSTRUCTOR<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Initiate<span style="color: #000000;">&#40;</span> hDlg <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">Initiate</span><span style="color: #000000;">&#40;</span> hDlg <span style="color: #000000;">&#41;</span>, ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Display</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #000000;">BeginPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">EndPaint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> Dynamic<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bGet</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">bGet</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> ReSize<span style="color: #000000;">&#40;</span> nType, nWidth, nHeight <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">ReSize</span><span style="color: #000000;">&#40;</span> nType, nWidth, nHeight <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> SetText<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cCaption</span> := <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPicture</span> != <span style="color: #00C800;">nil</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Transform<span style="color: #000000;">&#40;</span> cText, ::<span style="color: #000000;">cPicture</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cValToChar<span style="color: #000000;">&#40;</span> cText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, ::<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> VarPut<span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> nRow, nCol, bText, oWnd, cPicture, oFont,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lCentered, lRight, lBottom, lBorder, lPixels, nClrText, nClrBack,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nWidth, nHeight, cScroll, nSpeed, lWrap, lBlink,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lDesign, lUpdate, lShaded, lBox, lRaised <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDSay<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nRow &nbsp; &nbsp; := <span style="color: #000000;">0</span>, nCol := <span style="color: #000000;">0</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lBorder &nbsp;:= .f., lCentered := .f., lRight := .f., lBottom := .f., lPixels := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd &nbsp; &nbsp; := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrText := oWnd:<span style="color: #000000;">nClrText</span>, nClrBack := oWnd:<span style="color: #000000;">nClrPane</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nHeight &nbsp;:= <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFont != <span style="color: #00C800;">nil</span>, <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span> oFont:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span>, SAY_CHARPIX_H <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lDesign &nbsp;:= .f., bText := <span style="color: #000000;">&#123;</span> || <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lUpdate &nbsp;:= .f., lShaded := .f., lBox := .f., lRaised := .f.<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">l3D</span> &nbsp; &nbsp; &nbsp; = lShaded .or. lBox .or. lRaised<br />&nbsp; &nbsp;::<span style="color: #000000;">nAlign</span> &nbsp; &nbsp;= nOr<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBottom, TA_BOTTOM, TA_TOP <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lCentered, TA_CENTER, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lRight, TA_RIGHT, TA_LEFT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">bGet</span> &nbsp; &nbsp; &nbsp;= bText<br />&nbsp; &nbsp;::<span style="color: #000000;">bSetGet</span> &nbsp; = bText<br />&nbsp; &nbsp;::<span style="color: #000000;">cPicture</span> &nbsp;= cPicture<br />&nbsp; &nbsp;::<span style="color: #000000;">cCaption</span> &nbsp;= <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> cPicture <span style="color: #000000;">&#41;</span>, cValToChar<span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> bText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Transform<span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> bText <span style="color: #000000;">&#41;</span>, cPicture <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nWidth := <span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFont != <span style="color: #00C800;">nil</span>, <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span> oFont:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span>, SAY_CHARPIX_W <span style="color: #000000;">&#41;</span> * Len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cCaption</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">4</span> &nbsp;<span style="color: #B900B9;">// 8</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! lPixels<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nTop</span> &nbsp;= nRow * <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFont != <span style="color: #00C800;">nil</span>, <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span> oFont:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span>, SAY_CHARPIX_H <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">2</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 13</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nLeft</span> = nCol * <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> oFont != <span style="color: #00C800;">nil</span>, <span style="color: #0000ff;">Abs</span><span style="color: #000000;">&#40;</span> oFont:<span style="color: #000000;">nWidth</span> <span style="color: #000000;">&#41;</span>, SAY_CHARPIX_W <span style="color: #000000;">&#41;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// 8</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nTop</span> &nbsp;= nRow<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">nLeft</span> = nCol<br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nBottom</span> &nbsp; = ::<span style="color: #000000;">nTop</span> + nHeight - <span style="color: #000000;">1</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nRight</span> &nbsp; &nbsp;= ::<span style="color: #000000;">nLeft</span> + nWidth - <span style="color: #000000;">1</span><br />&nbsp;<br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nSpeed := <span style="color: #000000;">55</span>, lWrap := .f., lBlink := .f.<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">lScroll</span> &nbsp; &nbsp; = <span style="color: #000000;">&#40;</span> cScroll != <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lHorizontal</span> = <span style="color: #000000;">&#40;</span> cScroll == <span style="color: #ff0000;">"HORIZONTAL"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nSpeed</span> &nbsp; &nbsp; &nbsp;= <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nSpeed < <span style="color: #000000;">50</span>, <span style="color: #000000;">&#40;</span> <span style="color: #000000;">50</span> - nSpeed <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span>, <span style="color: #000000;">100</span> - nSpeed <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lWrap</span> &nbsp; &nbsp; &nbsp; = lWrap<br />&nbsp; &nbsp;::<span style="color: #000000;">lBlink</span> &nbsp; &nbsp; &nbsp;= lBlink<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp; &nbsp;= oWnd<br />&nbsp; &nbsp;::<span style="color: #000000;">oFont</span> &nbsp; &nbsp; = oFont<br />&nbsp; &nbsp;::<span style="color: #000000;">nId</span> &nbsp; &nbsp; &nbsp; = ::<span style="color: #000000;">GetNewId</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nStyle</span> &nbsp; &nbsp;= nOR<span style="color: #000000;">&#40;</span> WS_CHILD, WS_VISIBLE,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lDesign, nOr<span style="color: #000000;">&#40;</span> WS_CLIPSIBLINGS, WS_TABSTOP <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>,; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBorder, WS_BORDER, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lShaded</span> &nbsp;= lShaded <br />&nbsp; &nbsp;::<span style="color: #000000;">lBox</span> &nbsp; &nbsp; = lBox <br />&nbsp; &nbsp;::<span style="color: #000000;">lRaised</span> &nbsp;= lRaised<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">lDrag</span> &nbsp; &nbsp; = lDesign<br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> = .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">lUpdate</span> &nbsp; = lUpdate<br />&nbsp;<br />&nbsp; &nbsp;::<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrText, nClrBack <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span> nOR<span style="color: #000000;">&#40;</span> CS_VREDRAW, CS_HREDRAW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> oWnd:<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">Create</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">l3D</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">Set3DLook</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">AddControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">DefControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lDrag</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">CheckDots</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">ReDefine</span><span style="color: #000000;">&#40;</span> nId, bText, oWnd, cPicture, lCentered, lRight, lBottom,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrText, nClrBack, cScroll, nSpeed, lWrap, lBlink,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lUpdate, oFont, lShaded, lBox, lRaised <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDSay<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> lCentered := .f., lRight := .f., lBottom := .f.,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nClrText := oWnd:<span style="color: #000000;">nClrText</span>, nClrBack := oWnd:<span style="color: #000000;">nClrPane</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;oWnd := GetWndDefault<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lUpdate := .f., lShaded := .f., lBox := .f., lRaised := .f.<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">l3D</span> &nbsp; &nbsp; &nbsp; = lShaded .or. lBox .or. lRaised<br />&nbsp; &nbsp;::<span style="color: #000000;">nId</span> &nbsp; &nbsp; &nbsp; = nId<br />&nbsp; &nbsp;::<span style="color: #000000;">nAlign</span> &nbsp; &nbsp;= nOr<span style="color: #000000;">&#40;</span> <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lBottom, TA_BOTTOM, TA_TOP <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lCentered, TA_CENTER, <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> lRight, TA_RIGHT, TA_LEFT <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">bGet</span> &nbsp; &nbsp; &nbsp;= bText<br />&nbsp; &nbsp;::<span style="color: #000000;">bSetGet</span> &nbsp; = bText<br />&nbsp; &nbsp;::<span style="color: #000000;">cPicture</span> &nbsp;= cPicture<br />&nbsp; &nbsp;::<span style="color: #000000;">oFont</span> &nbsp; &nbsp; = oFont<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> bText != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">cCaption</span> = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> Empty<span style="color: #000000;">&#40;</span> cPicture <span style="color: #000000;">&#41;</span>, cValToChar<span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> bText <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Transform<span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> bText <span style="color: #000000;">&#41;</span>, cPicture <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> nSpeed := <span style="color: #000000;">55</span>, lWrap := .f., lBlink := .f.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;::<span style="color: #000000;">lScroll</span> &nbsp; &nbsp; = <span style="color: #000000;">&#40;</span> cScroll != <span style="color: #00C800;">nil</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lHorizontal</span> = <span style="color: #000000;">&#40;</span> cScroll == <span style="color: #ff0000;">"HORIZONTAL"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nSpeed</span> &nbsp; &nbsp; &nbsp;= <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> nSpeed < <span style="color: #000000;">50</span>, <span style="color: #000000;">&#40;</span> <span style="color: #000000;">50</span> - nSpeed <span style="color: #000000;">&#41;</span> * <span style="color: #000000;">10</span>, <span style="color: #000000;">100</span> - nSpeed <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lWrap</span> &nbsp; &nbsp; &nbsp; = lWrap<br />&nbsp; &nbsp;::<span style="color: #000000;">lBlink</span> &nbsp; &nbsp; &nbsp;= lBlink &nbsp; <br /><br />&nbsp; &nbsp;::<span style="color: #000000;">oWnd</span> &nbsp; &nbsp; &nbsp;= oWnd<br />&nbsp; &nbsp;::<span style="color: #000000;">hWnd</span> &nbsp; &nbsp; &nbsp;= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lShaded</span> &nbsp; = lShaded<br />&nbsp; &nbsp;::<span style="color: #000000;">lBox</span> &nbsp; &nbsp; &nbsp;= lBox<br />&nbsp; &nbsp;::<span style="color: #000000;">lRaised</span> &nbsp; = lRaised<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">lDrag</span> &nbsp; &nbsp; = .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">lCaptured</span> = .f.<br />&nbsp; &nbsp;::<span style="color: #000000;">lUpdate</span> &nbsp; = lUpdate<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">SetColor</span><span style="color: #000000;">&#40;</span> nClrText, nClrBack <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp;::<span style="color: #000000;">Register</span><span style="color: #000000;">&#40;</span> nOR<span style="color: #000000;">&#40;</span> CS_VREDRAW, CS_HREDRAW <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> oWnd != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; oWnd:<span style="color: #000000;">DefControl</span><span style="color: #000000;">&#40;</span> <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Self</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> HandleEvent<span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDSay<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lDrag</span> .and. nMsg == WM_NCHITTEST &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> DefWindowProc<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">HandleEvent</span><span style="color: #000000;">&#40;</span> nMsg, nWParam, nLParam <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">Default</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDSay<br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lCentered := nAnd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nAlign</span>, TA_CENTER <span style="color: #000000;">&#41;</span> == TA_CENTER &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lRight &nbsp; &nbsp;:= nAnd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nAlign</span>, TA_RIGHT <span style="color: #000000;">&#41;</span> &nbsp;== TA_RIGHT<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> lBottom &nbsp; := nAnd<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nAlign</span>, TA_BOTTOM <span style="color: #000000;">&#41;</span> == TA_BOTTOM &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">oFont</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">nTxtWidth</span> &nbsp;= <span style="color: #000000;">0</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nTxtHeight</span> = GetTextHeight<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">aCaption</span> &nbsp; = Array<span style="color: #000000;">&#40;</span> MLCount<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cCaption</span>, <span style="color: #000000;">254</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCaption</span>, <span style="color: #000000;">&#123;</span>|c, n| ::<span style="color: #000000;">aCaption</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span> := Trim<span style="color: #000000;">&#40;</span> MemoLine<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cCaption</span>, <span style="color: #000000;">252</span>, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nTxtWidth</span> := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nTxtWidth</span>, GetTextWidth<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, ::<span style="color: #000000;">aCaption</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">aRect</span> := GetClientRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; &nbsp;::<span style="color: #000000;">nDTop</span> &nbsp;:= ::<span style="color: #000000;">nTTop</span> &nbsp;:= <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lBottom, ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">nDLeft</span> := ::<span style="color: #000000;">nTLeft</span> := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lCentered, int<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> lRight, ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBox</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aRect</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">2</span>, <span style="color: #000000;">2</span>, ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span>, ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">2</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;elseif ::<span style="color: #000000;">lShaded</span> .or. ::<span style="color: #000000;">lRaised</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">aRect</span> := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">1</span>, ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span> &nbsp; &nbsp; &nbsp;<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lScroll</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lHorizontal</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nLong</span> := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nTxtWidth</span>, ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">4</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nLong</span> := <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nTxtHeight</span> * len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCaption</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">aRect</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;InvalidateRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">aRect</span>, .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">lView</span> := .t.<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Call dynamic and blinking</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !::<span style="color: #000000;">lDrag</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lScroll</span> .and. ::<span style="color: #000000;">oTimer</span> = <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> ::<span style="color: #000000;">oTimer</span> <span style="color: #0000ff;">INTERVAL</span> ::<span style="color: #000000;">nSpeed</span> <span style="color: #0000ff;">ACTION</span> ::<span style="color: #000000;">Dynamic</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> <span style="color: #00C800;">Self</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> ::<span style="color: #000000;">oTimer</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBlink</span> .and. AScan<span style="color: #000000;">&#40;</span> aTimer, <span style="color: #000000;">&#123;</span> | oCtrl | oCtrl == <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span> aTimer, <span style="color: #00C800;">Self</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> oTimer = <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">TIMER</span> oTimer <span style="color: #0000ff;">INTERVAL</span> <span style="color: #000000;">300</span> <span style="color: #0000ff;">ACTION</span> Blink<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">oWnd</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">TIMER</span> oTimer<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDSay<br />&nbsp;<br />&nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBlink</span><br /><br />&nbsp; &nbsp; &nbsp;ADel<span style="color: #000000;">&#40;</span> aTimer, AScan<span style="color: #000000;">&#40;</span> aTimer, <span style="color: #000000;">&#123;</span> |o| o == <span style="color: #00C800;">Self</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;ASize<span style="color: #000000;">&#40;</span> aTimer, len<span style="color: #000000;">&#40;</span> aTimer<span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span> aTimer <span style="color: #000000;">&#41;</span> = <span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; oTimer := <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> ::<span style="color: #00C800;">Super</span>:<span style="color: #000000;">Destroy</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDSay<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> n <br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> nColorShadow, nColorLight<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">GetDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lActive</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lView</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCaption</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WSay<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nDTop</span> + <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> * ::<span style="color: #000000;">nTxtHeight</span>, ::<span style="color: #000000;">nDLeft</span>, ::<span style="color: #000000;">aCaption</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, ::<span style="color: #000000;">nClrText</span>,,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, .T., .T., ::<span style="color: #000000;">nAlign</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">next</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lScroll</span> .and. ::<span style="color: #000000;">lWrap</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lHorizontal</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCaption</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WSay<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nDTop</span> + <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> * ::<span style="color: #000000;">nTxtHeight</span>, ::<span style="color: #000000;">nDLeft</span> + ::<span style="color: #000000;">nLong</span>, ::<span style="color: #000000;">aCaption</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, ::<span style="color: #000000;">nClrText</span>,,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, .T., .T., ::<span style="color: #000000;">nAlign</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCaption</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WSay<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nDTop</span> + <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> * ::<span style="color: #000000;">nTxtHeight</span> + ::<span style="color: #000000;">nLong</span>, ::<span style="color: #000000;">nDLeft</span>, ::<span style="color: #000000;">aCaption</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, ::<span style="color: #000000;">nClrText</span>,,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, .T., .T., ::<span style="color: #000000;">nAlign</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/* //-> Para que o BLINKING nao trave no WINDOWS XP<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //-> Modificado em 01/01/2008<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Hay que hacer esta modificación en la clase TDSay:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Código:<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;METHOD Paint() CLASS TDSay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// InvalidateRect( ::hWnd, ::aRect, .t. )</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FillRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, GetClientRect<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">&#41;</span>, ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">/*<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;El intervalo del timer lo he pasado de 300 a 600, pero eso será según las preferencias de cada uno<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;regards, saludos<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Antonio Linares<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;www.fivetechsoft.com<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/</span><br />&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp; nColorShadow := GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNSHADOW <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; nColorLight &nbsp;:= GetSysColor<span style="color: #000000;">&#40;</span> COLOR_BTNHIGHLIGHT <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">aCaption</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WSay<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nDTop</span> + <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> * ::<span style="color: #000000;">nTxtHeight</span> + <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nDLeft</span> + <span style="color: #000000;">1</span>, ::<span style="color: #000000;">aCaption</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, nColorLight,,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, .T., .T., ::<span style="color: #000000;">nAlign</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WSay<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nDTop</span> + <span style="color: #000000;">&#40;</span> n - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> * ::<span style="color: #000000;">nTxtHeight</span>, ::<span style="color: #000000;">nDLeft</span>, ::<span style="color: #000000;">aCaption</span><span style="color: #000000;">&#91;</span> n <span style="color: #000000;">&#93;</span>, nColorShadow,,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>, .T., .T., ::<span style="color: #000000;">nAlign</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// 3D</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lShaded</span><br />&nbsp; &nbsp; &nbsp; WndInset<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// SHADED, SHADOW</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lRaised</span><br />&nbsp; &nbsp; &nbsp; WndRaised<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, ::<span style="color: #000000;">hDC</span> <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// RAISED</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">lBox</span><br />&nbsp; &nbsp; &nbsp; WndBoxIn<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nBottom</span>-::<span style="color: #000000;">nTop</span>, ::<span style="color: #000000;">nRight</span>-::<span style="color: #000000;">nLeft</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; WndBoxRaised<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nBottom</span>-::<span style="color: #000000;">nTop</span><span style="color: #000000;">-1</span>, ::<span style="color: #000000;">nRight</span>-::<span style="color: #000000;">nLeft</span><span style="color: #000000;">-1</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">ReleaseDC</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> Dynamic<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDSay<br /><br />&nbsp; <span style="color: #00C800;">local</span> nSpeed := <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nSpeed</span> < <span style="color: #000000;">50</span>, int<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> <span style="color: #000000;">50</span> - ::<span style="color: #000000;">nSpeed</span> + <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span> / <span style="color: #000000;">5</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">if</span> !::<span style="color: #000000;">lActive</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lHorizontal</span><br /><br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nDLeft</span> -= nSpeed<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">nDLeft</span> + ::<span style="color: #000000;">nLong</span> < ::<span style="color: #000000;">nTLeft</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lWrap</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nDLeft</span> := ::<span style="color: #000000;">nDLeft</span> + ::<span style="color: #000000;">nLong</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oTimer</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp;ScrollWindow<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, -nSpeed, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">aRect</span>, ::<span style="color: #000000;">aRect</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">else</span><br /><br />&nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nDTop</span> -= nSpeed<br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> ::<span style="color: #000000;">nDTop</span> + ::<span style="color: #000000;">nLong</span> < <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nTTop</span> = <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nTxtHeight</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lWrap</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">nDTop</span> := ::<span style="color: #000000;">nDTop</span> + ::<span style="color: #000000;">nLong</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oTimer</span>:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp;ScrollWindow<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hWnd</span>, <span style="color: #000000;">0</span>, -nSpeed, ::<span style="color: #000000;">aRect</span>, ::<span style="color: #000000;">aRect</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; <span style="color: #B900B9;">/* &nbsp;It is not necessary to use the method 'Paint()' because<br />&nbsp; &nbsp; &nbsp; 'ScrollWindow()' he calls directly to the method 'Paint()' &nbsp;*/</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">METHOD</span> VarPut<span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TDSay<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cPicture</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cValue = Transform<span style="color: #000000;">&#40;</span> cValue, ::<span style="color: #000000;">cPicture</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; cValue = cValToChar<span style="color: #000000;">&#40;</span> cValue <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">bGet</span> = <span style="color: #000000;">&#123;</span> || cValue <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">// &nbsp;Static functions</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">static</span> <span style="color: #00C800;">Function</span> Blink<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; AEval<span style="color: #000000;">&#40;</span> aTimer, <span style="color: #000000;">&#123;</span>| oCtrl | oCtrl:<span style="color: #000000;">lView</span> := !oCtrl:<span style="color: #000000;">lView</span>, <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oCtrl:<span style="color: #000000;">lActive</span>, oCtrl:<span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /></div>[/code:17a8rfwk] dsay3.prg [code=fw:17a8rfwk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// C:\FWH..\SAMPLES\DSAY3.PRG y DSAY3.RC</span><br /><br /><span style="color: #00D7D7;">#Include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cText := MemoRead<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh1905<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\d</span>say2.prg"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oMsg1, oMsg2, oFont, oBold<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"LUCIDA CONSOLE"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oBold <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"VERDANA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-32</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ABMS"</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// REDEFINE PANEL oMsg1 ID 4001 OF oDlg NOBORDER</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// REDEFINE PANEL oMsg2 ID 4002 OF oDlg NOBORDER</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// usando @</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">/*@ 100,100 SCROLLMSG "FiveWin Power : New Scroll Msg class" ;<br />&nbsp; &nbsp; &nbsp; SIZE 600, 40 PIXEL OF oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; FONT oBold COLOR CLR_BLACK, CLR_HGREEN HORIZONTAL &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; SPEED 1<br /><br />&nbsp; &nbsp;// FiveWin.ch<br />&nbsp; &nbsp;@ 200,100 SCROLLMSG oMsg TEXT cText SIZE 600, 200 PIXEL OF oDlg ;<br />&nbsp; &nbsp; &nbsp; FONT oFont COLOR CLR_HRED, CLR_YELLOW SPEED 1*/</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Usando Recursos.</span><br />&nbsp; &nbsp;oMsg1 := TScrollMsg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">600</span>, <span style="color: #000000;">40</span>, <span style="color: #ff0000;">"FiveWin Power : New Scroll Msg class"</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oDlg, oBold, <span style="color: #000000;">1</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLR_BLACK, CLR_HGREEN, .T.,.T., ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oMsg2 := TScrollMsg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">600</span>, <span style="color: #000000;">200</span>, cText, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; oDlg, oFont, <span style="color: #000000;">1</span>, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CLR_HRED, CLR_YELLOW, .F.,.T., &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .F. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;oMsg1:<span style="color: #000000;">nId</span> := <span style="color: #000000;">4001</span><br />&nbsp; &nbsp;oMsg2:<span style="color: #000000;">nId</span> := <span style="color: #000000;">4002</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTERED</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont, oBold<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// FIN</span><br /></div>[/code:17a8rfwk] dsay3.rc [code=fw:17a8rfwk]<div class="fw" id="{CB}" style="font-family: monospace;">ABMS <span style="color: #0000ff;">DIALOG</span> DISCARDABLE <span style="color: #000000;">6</span>, <span style="color: #000000;">18</span>, <span style="color: #000000;">366</span>, <span style="color: #000000;">198</span><br /><span style="color: #0000ff;">STYLE</span> WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE<br />CAPTION <span style="color: #ff0000;">"SCROLL MSG"</span><br /><span style="color: #0000ff;">FONT</span> <span style="color: #000000;">8</span>, <span style="color: #ff0000;">"Tahoma"</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">4001</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">12</span>, <span style="color: #000000;">8</span>, <span style="color: #000000;">336</span>, <span style="color: #000000;">36</span><br />&nbsp; CONTROL <span style="color: #ff0000;">""</span>, <span style="color: #000000;">4002</span>, <span style="color: #ff0000;">"Static"</span>, WS_GROUP, <span style="color: #000000;">12</span>, <span style="color: #000000;">52</span>, <span style="color: #000000;">340</span>, <span style="color: #000000;">136</span><br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:17a8rfwk]
flashing SAY
// TESTDSAY.PRG [code=fw:12afcpyb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Testing FiveWin Dynamic Say controls - TESTDSAY.PRG</span><br /><span style="color: #B900B9;">// Testando FiveWin Com Controles de Says Dinamicos</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.Ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"DSay.Ch"</span><br /><br /><span style="color: #00C800;">STATIC</span> oWnd<br /><br /><span style="color: #00C800;">STATIC</span> oDSay<br /><br /><span style="color: #B900B9;">// ----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cTitle := <span style="color: #ff0000;">"Testando Say Dinamico"</span> + Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">20</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cSay &nbsp;:= <span style="color: #ff0000;">"Texto de Prova"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDSay1, oDSay2<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cDSay<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cDSay1 := <span style="color: #ff0000;">"Menu caro:"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- Caviar"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- Salmón aumado"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- Jamón 5 iberico"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- Camarones"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- y Albariño"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cDSay2 := <span style="color: #ff0000;">"Menu cutre:"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- Croquetas"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- Tortilla patata"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- Chorizo"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- Aceitunas"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"- y Cocacola"</span><br /><br />&nbsp; &nbsp;<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;">400</span>, <span style="color: #000000;">600</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_HGRAY ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">TITLE</span> cTitle<br /><br />&nbsp; &nbsp;SET <span style="color: #0000ff;">MESSAGE</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">""</span> KEYBOARD CLOCK DATE NOINSET<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// Esta es una prueba de que se puede usar este contro en</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// la Barra de mensajes, pero sera necesario redimensionarlo</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// según se redimensione la ventana principal:</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// @ 4,8 DYNAMIC SAY oTT VAR cTitle PIXEL OF oWnd:oMsgBar;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// HORIZONTAL SCROLL WRAP</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">30</span>, <span style="color: #000000;">30</span> DYNAMIC <span style="color: #0000ff;">SAY</span> cSay + <span style="color: #ff0000;">" A Velocidade Base"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">280</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; BORDER <span style="color: #0000ff;">HORIZONTAL</span> <span style="color: #0000ff;">SCROLL</span> WRAP<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// nSpeed: 0 to 100</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">60</span>, <span style="color: #000000;">30</span> DYNAMIC <span style="color: #0000ff;">SAY</span> cSay + <span style="color: #ff0000;">" A Velocidade Lenta"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">280</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; SHADED <span style="color: #0000ff;">CENTER</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">HORIZONTAL</span> <span style="color: #0000ff;">SCROLL</span> SPEED <span style="color: #000000;">10</span> WRAP<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">90</span>, <span style="color: #000000;">30</span> DYNAMIC <span style="color: #0000ff;">SAY</span> cSay + <span style="color: #ff0000;">" A Velocidade Rapida"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">280</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; RAISED <span style="color: #0000ff;">RIGHT</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">HORIZONTAL</span> <span style="color: #0000ff;">SCROLL</span> SPEED <span style="color: #000000;">90</span> WRAP<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">120</span>, <span style="color: #000000;">30</span> DYNAMIC <span style="color: #0000ff;">SAY</span> cSay + <span style="color: #ff0000;">" Estatico Piscante"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">280</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; BOX <span style="color: #0000ff;">CENTERED</span> BLINKING<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">150</span>, <span style="color: #000000;">30</span> DYNAMIC <span style="color: #0000ff;">SAY</span> cSay + <span style="color: #ff0000;">" Dinamico Piscante"</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">280</span>, <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">HORIZONTAL</span> <span style="color: #0000ff;">SCROLL</span> WRAP;<br />&nbsp; &nbsp; &nbsp; BLINKING<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">185</span>, <span style="color: #000000;">140</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Trocar"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">92</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oWnd;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> cDSay := cDSay1, cDSay1 := cDSay2, cDSay2 := cDSay, ;<br />&nbsp; &nbsp; &nbsp; oDSay1:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cDSay1 <span style="color: #000000;">&#41;</span>, oDSay2:<span style="color: #000000;">SetText</span><span style="color: #000000;">&#40;</span> cDSay2 <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">220</span>, <span style="color: #000000;">30</span> DYNAMIC <span style="color: #0000ff;">SAY</span> oDSay1 <span style="color: #0000ff;">VAR</span> cDSay1 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">110</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_GRAY SHADED;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VERTICAL</span> <span style="color: #0000ff;">SCROLL</span> WRAP<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">220</span>, <span style="color: #000000;">190</span> DYNAMIC <span style="color: #0000ff;">SAY</span> oDSay2 <span style="color: #0000ff;">VAR</span> cDSay2 <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">110</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_BLACK, CLR_GRAY SHADED;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">HORIZONTAL</span> <span style="color: #0000ff;">SCROLL</span> WRAP<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// @ Say</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">200</span>, <span style="color: #000000;">450</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Codigo"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">92</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Test_Dialog<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// WorkShop</span><br />&nbsp; &nbsp;@ <span style="color: #000000;">235</span>, <span style="color: #000000;">450</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #ff0000;">"&Recursos"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">92</span>, <span style="color: #000000;">22</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> Test_Resource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">OF</span> oWnd<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Test_Dialog<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cVar := <span style="color: #ff0000;">"Este controle esta dedicado"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"aos mais queridos e inigualaveis"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"amigos:"</span> + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"a Pantera Rosa"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"os Hermanos Marx"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"O Collote"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Tintín"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Mario Moreno (Cantinflas)"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Os tres mosqueteiros"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Kin Kong"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Pepe Potamo"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Ao Clube dos poetas mortos"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Paty pernas largas"</span> + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"e ao Pato Lucas"</span> + CRLF + CRLF + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"kapiabafwh@gmail.com"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Comic Sans MS"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">18</span> <span style="color: #B900B9;">// BOLD</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Say Dinamico na Dialog"</span> <span style="color: #0000ff;">WINDOW</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">370</span>, <span style="color: #000000;">370</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; COLORS CLR_BLACK, CLR_YELLOW<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">5</span>, <span style="color: #000000;">5</span> DYNAMIC <span style="color: #0000ff;">SAY</span> cVar <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">150</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">VERTICAL</span> <span style="color: #0000ff;">SCROLL</span>;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">CENTERED</span> BOTTOM;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// ----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Test_Resource<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> oDlg, oFont<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> cText := <span style="color: #ff0000;">"Super oferta"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Controles para FiveWin"</span> + CRLF + CRLF + ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Totalmente Gratis"</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Arial"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, - <span style="color: #000000;">20</span> ;<br />&nbsp; &nbsp; &nbsp; BOLD ITALIC NESCAPEMENT <span style="color: #000000;">450</span><br /><br />&nbsp; &nbsp;SET 3DLOOK <span style="color: #0000ff;">ON</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"TEST_DSAY"</span> &nbsp;<span style="color: #0000ff;">WINDOW</span> oWnd<br /><br />&nbsp; &nbsp;oDlg:<span style="color: #000000;">lHelpIcon</span> := .F.<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> DYNAMIC <span style="color: #0000ff;">SAY</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #000000;">&#40;</span> OemToAnsi<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">" <!-- e --><a href="mailto:kapiabafwh@gmail.com">kapiabafwh@gmail.com</a><!-- e -->"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> &nbsp; &nbsp;;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">CENTERED</span> BLINKING<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> DYNAMIC <span style="color: #0000ff;">SAY</span> <span style="color: #0000ff;">VAR</span> cText <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">HORIZONTAL</span> <span style="color: #0000ff;">SCROLL</span> WRAP;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">RIGHT</span> SHADED;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">COLOR</span> CLR_WHITE, CLR_BLUE <span style="color: #0000ff;">FONT</span> oFont<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// fin / end</span><br />&nbsp;</div>[/code:12afcpyb] Regards, saludos.