topic
stringlengths 1
63
| text
stringlengths 1
577k
⌀ |
---|---|
sobre gets en linux | Antonio buenas tardes
sigo con las pruebas ahora tengo problemas con los gets, cuando inicio a introducir datos en un campo get de texto, inicia a hacer el ingreso desde el cantro hacia la derecha, prueba el ejemplo testrad.prg ahi se observa ese efecto, asi mismo los say se presentan centrados Existe alguna forma de hacerlos que inicien bien los gets y poder poner alineacion a los say, aca una pantalla de ejemplo
[url=http://imajr.com/lower_389538:124p5kt0][img:124p5kt0]http://thumbnails.imajr.com/lower_389538.png[/img:124p5kt0][/url:124p5kt0]
gracias x todo tu apoyo
Saludos |
sobre gets en linux | Wilson,
Ando atareado configurando el nuevo OSX Leopard de Apple <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Lo revisamos cuanto antes y te comento, |
sobre gets en linux | ok Antonio , gracias x todo
Un Abrazo |
sobre gets en linux | Wilson,
Estamos ya trabajando para encontrarle una solución. El problema es que se selecciona todo el texto al tomar el foco. De momento prueba a inicializar las variables a editar con menos espacios.
A ver si podemos enviarte nuevas librerías lo antes posible, gracias |
sobre gets en linux | ok Antonio ya lo prueba
gracias
att |
sobre gets en linux | Antonio, obtengo el mism oresultado, no te preocupes no es de apuro cuando puedas me ayudas
gracias x todo
att |
sobre gets en linux | Wilson,
Usas la tecla tab para pasar desde un GET al siguiente ? |
sobre gets en linux | da lo mismo la tecla tab o el mouse, la diferencia esta que si paso con tab se selecciona todo el bloque del get, pero si lo hago con el mouse, no se selecciona pero igual se coloca en una posicion mayor a la primera lo que sigue estando mal
gracias
att |
sobre gets en linux | Wilson,
Te enviamos nuevas librerías. Con el ratón está funcionando bien, sim embargo con el Tab no, pues selecciona todo el contenido del GET y se va al final, y eso que hemos implementado el método GotFocus() para corregirlo. |
sobre gets en linux | gracias Antonio, lo pruebo y te aviso
saludos
att |
sobre gets en linux | Wilson,
Te acabamos de enviar por email un nuevo build de FiveLinux que soluciona los problemas que nos han reportado ultimamente. |
sobre gets en linux | gracias Antonio
ya los voy a probar muchas gracias x tu ayuda
Saludos
att |
sobre impresoras | buena tarde a todos
existe alguna funcion que me permita saber si esta o no en linea la impresora, ya que en sistema operativo existe la funcion isprinter()
desde ya muchas gracias. |
sobre impresoras | Gerardo,
Hazlo así:
[code:yjfxwd93]
local oPrn
PRINT oPrn
if Empty( oPrn:hDC )
MsgStop( "Printer not ready!" )
return nil
endif
...
ENDPRINT
[/code:yjfxwd93] |
sobre impresoras | Muchas gracias Antonio |
sobre la clase DATABASE | Que tal, nuevamente saludos a todos.
Tengo una duda, estoy manejando un "DATABASE oDbf", pero quiero saber el tamaño y el tipo de campo, del primer Field o del segundo.
Como hacerle, existe algun manual de la clase DATABASE
Gracias. |
sobre la clase DATABASE | Len( oDbf:FieldGet( n ) ) // longitud
ValType( oDbf:FieldGet( n ) ) // Tipo
En la documentación de classes de FWH viene incluida la clase TDataBase |
sobre la clase DATABASE | Gracias Antonio. |
sobre los previe32.dll | existe alguna manera de que en el preview, se muestre la hoja del tamaña proporcional el cual es, me explico si mando a imprimir en una hoja carta, sale ok, pero si mando a imprimir en una hoja oficio o extraoficio solo se muestra la parte del tamaño carta y lo corta, si mando a imprimir por ejemplo un ticket sale en un preview tamaño carta, existe alguna solucion para esto u otro preview que sea wysywyg, alguien sabe o entiende?
gracias
alejandro |
sobre preview | USO fwh 7.04 SE PUEDE CAMBIAR EL ASPECTO DEL PREVIEW EN ESTA VERSION DE fwh... GRACIAS |
sobre preview | ... |
sobre preview | ... |
sobre preview | tienes que modificar la dll y o el fuente rpreview.prg |
sobre sms | Amigos del Foro:
Tengo un cliente de una empresa de seguridad que ahora quiere establecer un mecnismo de control de la siguiente forma, los guardas deberan reportarse al supervisor correspondiente via sms y el sistema a su vez debe de registrar esos reportes como archivo de texto, se puede ? gracias de antemano cualquier sugerencia e idea al respecto, uso fwh904 + xhb1.1 + workshop, cualquier ayuda es desde ya muy pero muy agradecida,
Saludes desde Managua Nicaragua |
sobre sms | Hola Ramon:
en mi empresa, utilizamos el programa de mensagería "24im", [url:3160r0s6]http://www.24im.com[/url:3160r0s6], [url]http://www.inbit.com/downloadim.html/url], es gratuito y muy facil de usar, ademas tiene un muy buen sistema de chat, correo interno y supervisión, ademas graba las conversaciones por los días que desees y es altamente configurable, y genera archivos de texto y otras funciones de supervision.
los archivos que genera, lo puedes tomar desde tu aplicación y guardarlos como mencionas en campos memo.
pd. no considerar como publicidad, es solo dar a conocer la funcionalidad que tiene este software, gracias.
saludos desde Chile. |
sobre sms | Mi estimado armando gracias por la informacion, hare las pruebas necesarias,
Saludos desde Managua, nicaragua
Ramon Paredes |
sobre sms | Ramon,
Para controlar los guardias de seguridad, hay sistemas mas modernos y eficaces que informan del lugar donde estaba el guardia cada x tiempo. Enviar un simple sms es un poco rústico. Quizás el guardia envia el sms desde la cama de su casa o desde una discoteca.
Si quieres, ponte en contacto directo conmigo y lo hablamos valdenebro arroba mixmail.com |
sobre vTaskbar ayuda | Un saludo foro
Este es un mensaje para Paco García:
1.- Cómo puedo hacer que algún elemento (VMENUITEM) de un VMENU se muestre desabilitado?.
He intentando hacer esto:
DEFINE VMENUITEM oItind OF oVMenu2
oItind:Disable()
Pero da un error
2.- Igual quisiera hacer un oItind:click(), que se lo llame desde una tecla, pero también da error.
Con los otros controles como btnbmps buttons, etc. si se puede, y así lo he hecho antes. Pero ahora quiero hacerlo con la vtaskbar, y no sale. Por favor ayuda.
Marcelo Jingo |
sobre vTaskbar ayuda | Hola
oItind:lDisable := .t.
vTaskBar no tiene controles dentro para deshabilitarlos, simplemente pinta objetos.
Un saludo |
sobre vTaskbar ayuda | Funciona...perooo... en el lugar del icono queda un hueco feo. Así que mejor no haré el :lDisable.
Por otro lado; alguna idea de cómo hacer que al presionar una tecla dada, desencadene el action del Vmenuitem. Con los btnbmp yo lo relacionaba con una tecla que mandaba a ejecutar: oboton:Click(). Como el Vmenuitmen no tiene el evento :Click(), alguna idea de cómo hacer algo parecido?
El asunto es que no quiero repetir el código de la acción tanto en el vmenu como en las bkeychar
De antemano Gracias
Marcelo Jingo |
sobre window | Colegas una pregunta tonta. jeje
tengo una ventana hija,,
DEFINE WINDOW blabla..
como le digo a la clase que no ponga el icono del lado izquierdo de la ventana en la barra del caption |
sobre window | Mantonio, prueba de esta forma:
[code=fw:paryoo5m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIcon <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"ICONSIS"</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWndc <span style="color: #0000ff;">MDICHILD</span> ;<br /> <span style="color: #0000ff;">OF</span> oWndMain<br /><br /> oWndc:<span style="color: #000000;">SetIcon</span><span style="color: #000000;">(</span> oIcon <span style="color: #000000;">)</span> <br /> </div>[/code:paryoo5m]
Carlos. |
sobre window | Yo le pongo asi :
[code=fw:w01wrqeh]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"FACTURAS_001"</span> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Listado de Compras"</span> <span style="color: #0000ff;">OF</span> oWin <span style="color: #0000ff;">ICON</span> <span style="color: #ff0000;">"AASESORES"</span><br /> </div>[/code:w01wrqeh]
El icono de AASESORES si no existe no me pone nada.
Saludos. |
sobre window | Mantonio;
tal parece que te vas tener que resignar a ponerlo. Porque probe el siguiente código y no funciona
[code=fw:t8i3lyk5]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">ICON</span> oIco <span style="color: #0000ff;">RESNAME</span> <span style="color: #ff0000;">"nada"</span><br /> <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWChld <span style="color: #0000ff;">MDICHILD</span> ;<br /> <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Tabla de "</span> +cTitle ;<br /> <span style="color: #0000ff;">FROM</span> nTop, nLeft <span style="color: #0000ff;">TO</span> nBot, nRight ;<br /> <span style="color: #0000ff;">STYLE</span> nOr<span style="color: #000000;">(</span> WS_CAPTION, WS_MINIMIZEBOX, WS_SYSMENU, WS_THICKFRAME <span style="color: #000000;">)</span> ;<br /> <span style="color: #0000ff;">OF</span> oWnd<br /><br /> oWChld:<span style="color: #000000;">SetIcon</span><span style="color: #000000;">(</span> oIco <span style="color: #000000;">)</span><br /> </div>[/code:t8i3lyk5]
salvo que algún gurú aporte un Tip posible |
sockcli sockserv demos | Perhaps this is related to the issue of how to properly compile with xHarbour for Windows, but the sockserv demo compiles/links with the following mysterious error (see below):
How are these demos supposed to be compiled? I am using the Jan 2007 build.
Carlo
Type: C >>>xhb.exe -o"sockserv.c" -m -n -p -q -gc0 -I"C:\DEVELO~1\DevTools\xHB\include" -I"C:\DEVELO~1\DevTools\xHB\include\w32" "sockserv.prg"<<<
Type: C >>>Couldn't build: sockserv.obj<<<
Type: C >>>TMAKEOBJECT<<<
Type: C >>>TMAKEOBJECT:REFRESH<<<
Type: N >>> 1278<<< |
sockcli sockserv demos | [url=http://imageshack.us:3ny6lj47][img:3ny6lj47]http://img385.imageshack.us/img385/6639/pict1zr6.jpg[/img:3ny6lj47][/url:3ny6lj47]
[url=http://imageshack.us:3ny6lj47][img:3ny6lj47]http://img385.imageshack.us/img385/2830/pict2zx6.jpg[/img:3ny6lj47][/url:3ny6lj47]
[url=http://imageshack.us:3ny6lj47][img:3ny6lj47]http://img463.imageshack.us/img463/6862/pict3fk6.jpg[/img:3ny6lj47][/url:3ny6lj47] |
sockcli sockserv demos | This doesn't work for me. I now realise that I am trying to buold projects from a VIsta station, and perhaps xHarbour and Vista don't like each other. Sorry fo the wasted time. |
sockcli sockserv demos | Carlo,
My screenshots are taken on Vista 32 Ultimate |
sockcli sockserv demos | That's what I am using too. I was using the latest July Beta, but it complained that PCode 7 was no longer supported. I assumed this had something to do with FWH compatability, so I rolled back to Jan 07. My understanding from reading the xharbour builder newsgroup is that the official releases aren't Vista compatible (but I could have misunderstood).
I tried again on my XP Pro machine, and everything worked as you explained. Thanks for your patience!
1) Is there a way for me to use the TSocket class and use console output instead of Windows? Although I eventually intend to get into Windows programming with FWH, I don't have the time (right now) to learn how to program an FWH Windows interface. I just need scrolling output to the console showing the events that the messages the server is acting on and the status of each action.
2) The client for the server will actually be a web service coded in VB.NET - the service will read and parse the SOAP message, format it and then pass it to my server through a socket write using System.Net.Sockets.TcpClient(). Do you have any experience with this particular .NET class? Do you think this will work?
Thanks again. |
sockcli sockserv demos | Carlo,
>
1) Is there a way for me to use the TSocket class and use console output instead of Windows?
>
No, sorry, FWH Class TSocket requires to use a window
You may review xHarbour contrib\tip folder as it provides classes for sockets management with console support
>
2) The client for the server will actually be a web service coded in VB.NET - the service will read and parse the SOAP message, format it and then pass it to my server through a socket write using System.Net.Sockets.TcpClient(). Do you have any experience with this particular .NET class? Do you think this will work?
>
We don't have experience with that particular .NET class. Anyhow, yes, I think it will work. You may ask about it in usenet comp.lang.xharbour accessible from Google groups, as surely there are xharbour users with experience about it |
socket | antonio
01/31/15 17:19:42: Connect Socket handle: 1776
01/31/15 17:19:42: Write Socket handle: 1776
01/31/15 17:19:59: Sent: -1 Len: 18 Buffer Len: 0 Error: 10038
lo he provado sobre maquina virtual y en el mismo equipo el ejemplo (sockcli y sockserv) y me da el error arriba indicado
la unica modificacion que puse en el cliente fue incluir el log para vuscar el error pero desconosco como interpretar el error . gracias |
socket | [url:30oatoeh]http://stackoverflow.com/questions/3948164/10038-socket-error[/url:30oatoeh]
[quote:30oatoeh]10038 (WSAENOTSOCK): Socket operation on nonsocket. An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.[/quote:30oatoeh] |
socket con fwh y fwppc | Estoy probando el envio de archivos usando fwh 10.12 y fwppc partiendo de los ejemplos sockserv y sockcli, cuando se establece la conexion me sale un dialogo que dice enviando archivo, a veces el dialogo aparece 1 vez otras 4 o 5 veces (Cuando uso el emulador en vez de la pda).
Estoy usando el tsocket original de la version fwh 10.12 y la version modificada de fwppc que publico antonio en octubre de 2010 en el foro de fwppc en ingles. |
socket con fwh y fwppc | ooopppsss.
Era un problema mio estaba lanzando el evento, y se me dio por revisar primero tsocket y antes que mi prueba.
Sigo probando. |
socket connection | I want to test socket connection.
First I compiled the sample sockserv.prg fom the FWH samples and run sockserv.exe on my PC.
Then I compiled the sample sockcli.prg – I changed the IP to the IP from my Server - and copied the file to my HTC WINDOWS mobile 6.5. If I press the CONNECT button I get a msginfo with GPF.
Thanks in advance
Otto |
socket consultas multiples | hola,estoy trabajando con sockets usando la clase Tsocket de fwh.
El servidor recibe la transferencia de archivos .DBF desde multiples clientes y hay horas pico en las cuales se me superponen las conexiones al servidor y se rompen los archivos.Estoy probando usar la clase TCTRLSOCK que viene cn FWH para tal fin pero no puedo entender bien como implementarla.
Agradeceria cualquier ayuda o ejemplo que pudiera ayudarme a solucionar el problema.
Muchas gracias |
socket y el protocolo modbus | Hola a todos.Necesito hacer lecturas de distintas posiciones de memoria de un autómata que controla ciertas instalaciones, el cual usa el protocolo Modbus en una red TCP.En el envío de datos a dichas posiciones de memoria, no he tenido problema a través de socket, pero no tengo ni idea de como se escribiría el código para para acceder a dichas variables y recoger su contenido en una variable de mi programa. ¿ Alquien me puede ayudar ?Muchas gracias.Ricardo Blanco. |
socket y el protocolo modbus | RBLANCO,Verifique sockserv.prg e sockclie.prg em FWH/SAMPLES |
sockets | I need to write to a socket and receive data from that socket.
Has anyone out there been successful with this?
I tried to telnet a socket address and was successful. However, using the FWH sample socket prg's I receive a -1 on that same ip / port address.
Any magic required here? |
sockets | Don,
Please have a look at samples\sockserv.prg and sockcli.prg |
sockets | Antonio,
I'm having erratic results on reading the return response from the host. I have inserted timing loops, etc but can't get consistant.
With the test programs and msgstop's and debugger, things work well. In my application, it's almost like sometimes I'm active and receive the host messages, other times I "miss" them. I'm telling my app to sleep() and inkey(.25) etc, then testing for the getdata(), but most times (not all) the returned data is empty. I do know that the host side is returning data.
Question: Why won't the getdata() method work consistantly? Also, in the sample programs, when the socket is getting ready to close, a msginfo() is invoked, and this in turn invokes the onread event. Almost like without the msginfo() the socket doesn't "wake up" for handling the read event. Does this make sense?
How can I control the onread event BEFORE ending the socket. |
sockets | Don,
I'm no socket expert, but you can turn on debug logging and this may give you some clues. Try:
oSocket:lDebug:=.t.
oSocket:cLogFile:="socket.log"
James |
sockets and firewalls | I have a static IP address of 207.119.xxx.xxx
there is a firewall (DLink) that connects to the internet and stands between this connection and my internal local area network.
outside the firewall is a web-server. it's internal IP is 192.168.1.3
inside the firewall is a file-server - it's internal IP is 192.168.1.7
I use sockcli.prg and sockserv.prg
nport is randomly selected to be 2525
if i try to connect to 207.119.xxx.xxx:nport - (webserver outside firewall) - no connection
if i try to connect to 192.168.1.3:nport (webserver outside firewall) - no problem
if i try to connect to 192.168.1.2 (file server on lan inside firewall )with windows firewall ON and McAfee virus ON - no connection.
if i try to connect to 192.168.1.2 (file server on lan inside firewall ) with windows firewall OFF and McAfee OFF - no problem.
question - I need use sockserv.exe to monitor requests from the "outside" world.
I want sockcli.exe (or other socket accplication client) to call the 207.119.xxx.xxx:2525 socket. My sockserv.exe must process these requests and have access to "inside" the firewall.
What's the typical configuration of this type of environment so outside calls can be made to an public IP:port, directly with sockets? where should sockserv.exe reside and how should firewall and virus settings be configured?
anybody have any ideas?
thank you in advance. |
sockets and firewalls | You should configure your DLINK to NAT your internal address/port on the firewall. All the incoming conections to the ROUTER/FW on that port will be sent to your internal IP. |
software para control odontologico | HOLA, por aca estara la persona que hizo un software en fivewin que se llama "mis pacientes 7a", baje un demo de aca hace años y tengo un odontologo que lo quiere comprar o si alguien tiene alguno, chao
alejandro |
software para control odontologico | Aquí hay algo que quizá pueda interesarte:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=17&t=24170&start=15">viewtopic.php?f=17&t=24170&start=15</a><!-- l --> |
software para control odontologico | GRACIAS, ya contacto a softruz |
software to encript Hard Disk | Hi,
I want to encript the contents of my hard disk. Please, what software do you recommend me?.
Thank you and merry crhistmas. |
software to encript Hard Disk | Hi,
TrueCrypt is very good freeware to encrypt hard discs
[url:swuck38u]http://www.truecrypt.org/[/url:swuck38u] |
software to encript Hard Disk | I use truecrypt since few years, very good tool
You can protect the whole drive or part of it
I have a "truecrypt" partition inside my hard disk containing data i want to protect for 1 Gb, this partition is represented as a File, you need to "mount" the device in order to use the file.
Hth
Richard |
solucionado bug del mod -> Carles Aubia | Buenas tardes con todos
Gracias a la inestimable labor de nuestro GURU Charly se ha solucionado un bug en el Mod_Harbour con respecto al uso de CURL al llamar a un WebService Gracias Charly!!
Cabe mencionar que la falla se da cuando
- el Web Services esta programado en Mod_Harbour
- el programa que hace la consulta al web services esta tambien hecho en mod_harbour
alli se produce el error
Pero si el programa que hace la consulta es otro ( que no este escrito en harbour ni en mod_harbour ) si funciona y muy bien
ahora ya funciona perfecto !! porque los parametros no los recibia!!
esto ya funciona Ok
[code=fw:ecybkihn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"{% hb_getenv('PRGPATH') + '/hbcurl.ch' %}"</span><br /><br /><span style="color: #00C800;">function</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">local</span> h := UseWebService<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <br /> AP_SetContentType<span style="color: #000000;">(</span> <span style="color: #ff0000;">"application/json"</span> <span style="color: #000000;">)</span><br /> <br /> ?? hb_jsonEncode<span style="color: #000000;">(</span>h<span style="color: #000000;">)</span><br /><br />retu <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> UseWebService<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> uValue, hCurl<br /> <span style="color: #00C800;">local</span> cUrlWs := <span style="color: #ff0000;">'190.110.XXX.YYY:6263/pre/jnetws/auth'</span><br /> <span style="color: #00C800;">local</span> hHeaders := <span style="color: #000000;">{</span> <span style="color: #ff0000;">'Content-Type: application/json'</span> <span style="color: #000000;">}</span> <br /> <span style="color: #00C800;">local</span> hParams := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> h := <span style="color: #000000;">{</span>=><span style="color: #000000;">}</span><br /> <span style="color: #00C800;">local</span> n <br /><br /><br /> hParams<span style="color: #000000;">[</span> <span style="color: #ff0000;">'wsuser'</span> <span style="color: #000000;">]</span> := <span style="color: #ff0000;">'app1'</span><br /> hParams<span style="color: #000000;">[</span> <span style="color: #ff0000;">'wspsw'</span> <span style="color: #000000;">]</span> := <span style="color: #ff0000;">'acvbs'</span><br /> hParams<span style="color: #000000;">[</span> <span style="color: #ff0000;">'user'</span> <span style="color: #000000;">]</span> := <span style="color: #ff0000;">'demo'</span><br /> hParams<span style="color: #000000;">[</span> <span style="color: #ff0000;">'psw'</span> <span style="color: #000000;">]</span> := <span style="color: #ff0000;">'1129'</span><br /> hParams<span style="color: #000000;">[</span> <span style="color: #ff0000;">'emp'</span> <span style="color: #000000;">]</span> := <span style="color: #ff0000;">'Empre003'</span><br /><br /> curl_global_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> ! empty<span style="color: #000000;">(</span> hCurl := curl_easy_init<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_SSL_VERIFYPEER, <span style="color: #000000;">0</span><span style="color: #000000;">)</span> <br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_URL, cUrlWs <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_HTTPHEADER, hHeaders <span style="color: #000000;">)</span><br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_POST, <span style="color: #000000;">1</span> <span style="color: #000000;">)</span> <br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_POSTFIELDS, hb_jsonEncode<span style="color: #000000;">(</span> hParams <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /><br /> curl_easy_setopt<span style="color: #000000;">(</span> hCurl, HB_CURLOPT_DL_BUFF_SETUP <span style="color: #000000;">)</span> <br /> <br /> n := curl_easy_perform<span style="color: #000000;">(</span> hCurl <span style="color: #000000;">)</span> <br /> <br /> <span style="color: #00C800;">if</span> n == <span style="color: #000000;">0</span><br /> <br /> uValue := curl_easy_dl_buff_get<span style="color: #000000;">(</span> hCurl <span style="color: #000000;">)</span> <br /> h := hb_jsonDecode<span style="color: #000000;">(</span> uvalue <span style="color: #000000;">)</span><br /> <br /> <span style="color: #00C800;">else</span><br /> h<span style="color: #000000;">[</span> <span style="color: #ff0000;">'error'</span> <span style="color: #000000;">]</span> := curl_easy_strerror<span style="color: #000000;">(</span> n <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /> curl_global_cleanup<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> h</div>[/code:ecybkihn] |
solution to speed up the selection of a btnbmp | I have 10 buttons, the end user can only press one and must remain pressed by assigning a value (from 1 to 10)
[code=fw:2dfqkxx8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">local</span> aBtnCalc:=array<span style="color: #000000;">(</span><span style="color: #000000;">10</span><span style="color: #000000;">)</span><br /><span style="color: #00C800;">local</span> j,n:= <span style="color: #000000;">1</span><br /><span style="color: #00C800;">local</span> nRow:=<span style="color: #000000;">60</span><br /><br /> <span style="color: #00C800;">for</span> j= <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span><br /> @ nRow,<span style="color: #000000;">2</span> <span style="color: #0000ff;">BTNBMP</span> aBtnCalc<span style="color: #000000;">[</span>j<span style="color: #000000;">]</span> ;<br /> <span style="color: #0000ff;">PROMPT</span> ltrim<span style="color: #000000;">(</span>str<span style="color: #000000;">(</span>j<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">20</span>,<span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">of</span> oDlg FLAT NOBERDER<br /> WITH OBJECT aBtnCalc<span style="color: #000000;">[</span>j<span style="color: #000000;">]</span><br /> :<span style="color: #000000;">Cargo</span> := <span style="color: #000000;">{</span>j <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bAction</span> := <span style="color: #000000;">{</span> |oBtn| oBtn:<span style="color: #000000;">Toggle</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>,<span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oBtn:<span style="color: #000000;">lPressed</span>,Givenumber<span style="color: #000000;">(</span>oBtn,@n,aBtnCalc<span style="color: #000000;">)</span>,<span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">bClrGrad</span> := <span style="color: #000000;">{</span> |l,oBtn| <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> oBtn:<span style="color: #000000;">lPressed</span>, CLR_HRED, CLR_GREEN <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /> :<span style="color: #000000;">oCursor</span> := oHand<br /> End<br /> nRow+=nSpace<br /> <span style="color: #00C800;">next</span> j<br /> </div>[/code:2dfqkxx8]
...
in the Givenumber function (oBtn, n, aCalc) I return the numeric value(n) and change the lPressed variable on all the buttons
by assigning lPressed: =. t. only when the button is pressed
the procedure only works that sometimes it is slow as if you were thinking about it, there is probably another way to solve it
but I haven't found it
[code=fw:2dfqkxx8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">Static</span> <span style="color: #00C800;">Function</span> Givenumber<span style="color: #000000;">(</span>oBtn,n,aCalc<span style="color: #000000;">)</span><br /> <span style="color: #00C800;">For</span> n=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">10</span><br /> aCalc<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #000000;">lpressed</span>:=.f.<br /> aCalc<span style="color: #000000;">[</span>n<span style="color: #000000;">]</span>:<span style="color: #0000ff;">refresh</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">next</span><br /> oBtn:<span style="color: #000000;">lpressed</span>:=.t.<br /> <span style="color: #00C800;">return</span> n=oBtn:<span style="color: #000000;">cargo</span><span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span></div>[/code:2dfqkxx8]
any solution to speed up the selection? |
sombras en tpanel | alguien sabe como seguir este tema
<!-- l --><a class="postlink-local" href="https://forums.fivetechsupport.com/viewtopic.php?f=3&t=40625">viewtopic.php?f=3&t=40625</a><!-- l --> |
some addons to treport class | Hola,
here I let some modifications to the report class, I hope this will be usefull for some of you
comments wellcome
regards
Marcelo
[url:1sf35qnm]http://rapidshare.com/files/46781445/reportes.zip.html[/url:1sf35qnm] |
some addons to treport class | Can you explain what are this modifications ?
Regards, |
some addons to treport class | Hola,
more than modifications are some extra DATAS for define box in titles, header, footer, totals and groups, select some of them and press test to see the result, some combination of the extra and actual data can be interesting, now I added nBodyBox data for box in the report data area, I will public this if some body have interst.
Maybe can be usefull to add the option to the fisrtpage and lastpage like informix report engine, and the posibility to have a basic report designer (code generator)
saludos
Marcelo |
some questions about browse | Hello,
I am able to build a program with a browse, but i have a few questions.
1. Is it possible to change the fontcolor for specific rows. When a plantID is ending on 0 fontcolor black and if plantID is ending on 1 fontcolor grey. PlantID is a field in the table
2. When the browse is active I can scroll using keys, but if I try to scroll with my mouse the app crashes with the following message:
Unrecoverable error 9015: Symbol item expected from hb_vmDo()
Called from DBSKIP(0)
Called from TWBROWSE:GETVALUE(276) in source/classes/browse.prg
Called from TWINDOW:HANDLEEVENT(592) in source/classes/window.prg
Called from _FMH(676) in source/classes/window.prg
Called from TWINDOW:FINDCONTROL(434) in source/classes/window.prg
Called from TWINDOW:HANDLEEVENT(514) in source/classes/window.prg
Called from _FMH(676) in source/classes/window.prg
Called from WNDRUN(0)
Called from TWINDOW:ACTIVATE(266) in source/classes/window.prg
3. Is it possible to change the app icon. Now it is allways the FiveMac eye, but I want to use my own icon.
Rene |
some questions about browse | Rene,
1. Currently we are able to set alternate colors for the browse rows. In samples/fileman.prg there is an example:
[code=fw:2e3x4nw1]<div class="fw" id="{CB}" style="font-family: monospace;"> oBrwLeft:<span style="color: #000000;">SetColorsForAlternate</span><span style="color: #000000;">(</span> nRGB<span style="color: #000000;">(</span> 0xAA, 0xFF, 0xFF <span style="color: #000000;">)</span>, nRGB<span style="color: #000000;">(</span> 0x66, 0xAA, 0xFF <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <br /> oBrwLeft:<span style="color: #000000;">SetAlternateColor</span><span style="color: #000000;">(</span> .T. <span style="color: #000000;">)</span></div>[/code:2e3x4nw1]
We are looking for a way to change the color of the text of some rows
2. I just tested samples/fileman.prg and the mouse wheel is working fine on the browses. If the scrollbar is not shown
then it does not work. Could you please test fileman.prg there and let me know if it works fine for you ?
3. In samples/build.sh we set here the icon to use:
echo ' <key>CFBundleIconFile</key>' >> $1.app/Contents/Info.plist
echo ' <string>fivetech.icns</string>' >> $1.app/Contents/Info.plist
You can specify there a different icns file for your app |
some questions about browse | Hello Antonio,
Thanks for your reply. I have studied fileman and fivedbu for help. With the commands given, I can only change the colors line by line. So one line is lightblue the next is darkerblue. Can I manage which lines are colored?.
I have tested fileman and browse and there I can scroll using the mouse. The error given doesn't give any clou to look for?
René |
some questions about browse | Rene,
Please email me your PRG so I can test it, thanks |
some questions about browse | Already implemented:
[img:3crkw8d1]https://bitbucket.org/fivetech/screenshots/downloads/fivemac_browse_colors.png[/img:3crkw8d1]
I am emailing you the new libraries. This is an example of how to use it:
[code=fw:3crkw8d1]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">bClrText</span> = <span style="color: #000000;">{</span> | pColumn, nRowIndex | ColorFromNRGB<span style="color: #000000;">(</span> <span style="color: #00C800;">If</span><span style="color: #000000;">(</span> nRowIndex % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, CLR_RED, CLR_GREEN <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span></div>[/code:3crkw8d1] |
some questions about browse | Hello Antonio,
THANK YOU for the very quick implementation. I will test this tomorrow and sent you my source for the scroll problem. I will make a few smal tables for testing
René |
some questions about browse | Hello Antonio,
Thanks for the new libs. I have tested it and te font coloring works great.
I was not able to change the icon of the program. I use make to build my app, so does changing the build.sh file work in this case.
And how can I include all icons in my app, the same as a .rc file in Windows? |
some questions about browse | An OSX app is in fact a zip file renamed as app, so in OSX finder right click on your app and select "show contents" and inside
the app is where you have to use a folder named Resources and there you have to store your icns and other resources.
Also there is a Info.plist that you can edit using TextEdit and set the right values for your app. |
somebody has example with xbrowser and eagle? | Thank´s |
somebody have solution of EMF 1.0 for fwh26? | as Title, I' use EMF 1.0f, but, can't compatible fwh 2.6.
Have solution for it? |
somebody have solution of EMF 1.0 for fwh26? | You don't need of EMF.LIB anymore as FWH now use enhanced metafiles for print preview.
EMG |
somebody have solution of EMF 1.0 for fwh26? | [quote="EnricoMaria":2zivzgbz]You don't need of EMF.LIB anymore as FWH now use enhanced metafiles for print preview.
EMG[/quote:2zivzgbz]
But, I use rereivew of fwh26, first screen have not to show any data!! |
somebody have solution of EMF 1.0 for fwh26? | Please email us privately to check for an upgrade. |
someone use SQL /xHB.com/ with FWH | is possible use SQL /xHB.com/ with FWH
best regards
kajot |
someone use SQL /xHB.com/ with FWH | Kajot,
Yes, you can use ADO and manage any database using SQL |
someone use SQL /xHB.com/ with FWH | ok, but use SQL.LIB from xHarbour.com / native connection / |
someone use SQL /xHB.com/ with FWH | kajot
There are only two 'native' SQL connections ( clients ) built into every Windows platform and they are SqlOleDb for Ms Sql Server and Microsoft.Jet.OLEDB.4.0 for Ms Access.
You can leverage those OleDb providers using (x)Harbour's ADO class that provide access to these universal methods.
<!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms677516%28v=vs.85%29.aspx">http://msdn.microsoft.com/en-us/library ... 85%29.aspx</a><!-- m -->
Everything else has to use a 3rd party Ole or ODBC provider to connect to other Sql databases like MySql, Oracle and dB2.
Rick Lipkin |
soporte ViaCoral | Hola:Tengo un problema de pintado con los botones con ViaCoral 2.2. En concreto, salen unos puntos negros en las esquinas. ¿A alguien le pasa?. |
soporte ViaCoral | Fernando:Vaya, que sorpresa recibir noticias tuyas. Los teléfonos de la web han sido dados de baja, <!-- m --><a class="postlink" href="http://support.viaopen.com/">http://support.viaopen.com/</a><!-- m --> no tiene nada y no contestas a los emails.<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> tampoco funciona. |
soporte ViaCoral | Hola Fernando,Alguna noticia con relacion a "ViaUPDATE, True Update System for your Applications"?Saludos,George |
soporte ViaCoral | Hola Fernando:Sigo sin obtener respuesta. Los teléfonos siguen sin funcionar, y creo que la mudanza estará ya acabada <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->. |
soporte ViaCoral | Muy buenas Moises, yo tuve el mismo problema la solucion fue hablar con Fernando y despues me actualizó la version de Viacoral y funciona bien.Un Saludo. |
soporte ViaCoral | Moises, creo que el problema es con el correo de Viaupdate, yo igual no podía contactarme con Fernando, pero el me envio otra direccion de correo y obtube el soporte que necesitaba sin ningun problema. Saludos.Carlos. |
soporte ViaCoral | Saludos amigos del foro:Yo tengo algunos problemas con algunos controles con la memoria, y no he tenido respuesta, alguien tiene me podria proporcionar, alguna direccion de correo que funcione.Cuento con los de :<!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> Si tienen alguno por ahi, que este en servicio, se los agradeceria, ya que antes de Enero, no tenia problemas con estos correos y con el soporte.Y pido disculpas al Sr. Antonio Linares, por hacer uso del foro para este Fin.Ya que quiero dejar en claro, que apoyo a Fernando Mancera y su trabajo, ya que es un esfuerzo por la comunidad Fivewin <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> que otros como El, siguen aportando y dandole nuevos brillos.Saludos desde Honduras. |
soporte ViaCoral | Saludos amigos del foro:Solo para comentarles, que ya Fernando Macera, esta dando el soporte acostumbrado y ya me he contactado con la direccion de correo de gmail.Saludos desde Honduras <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> |
soporte ViaCoral | Hola:Muchas gracias por contestar. Pues yo hace semanas que tengo problemas, como, por ejemplo:[url=http://img363.imageshack.us/my.php?image=ribbonse4.png:105alt0t][img:105alt0t]http://img363.imageshack.us/img363/6835/ribbonse4.th.png[/img:105alt0t][/url:105alt0t]Y no recibo soporte. Mi correo funciona perfectamente. Incluso he llamado a los teléfonos de la web y nada, están dados de baja. |
soporte ViaCoral | Moises,En mi opinión deberías tratar de hablar en privado con Fernando, quien seguro te ayudará.Este tipo de comentarios en público no me parecen acertados. Imagina que alguien criticase tu trabajo en un foro público. Tratemos a los demas como nos gustaría que nos tratasen a nosotros. |
soporte de @L en tget de fwh (relleno de cero) | Antonio, mira est modificacion a la clase tget en el metodo paint para brindar soporte de @L (relleno de cero) para valores numericos
[code=fw:3hxiz95k]<div class="fw" id="{CB}" style="font-family: monospace;"><br />?transform<span style="color: #000000;">(</span> <span style="color: #000000;">1256</span>. <span style="color: #ff0000;">"@L 999999"</span> <span style="color: #000000;">)</span> <span style="color: #B900B9;">//001256</span><br /><br /><span style="color: #0000ff;">redefine</span> <span style="color: #0000ff;">get</span> nVar <span style="color: #0000ff;">id</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">of</span> oDlg <span style="color: #0000ff;">picture</span> <span style="color: #ff0000;">"@L 999999"</span><br /><br /> </div>[/code:3hxiz95k]
[code=fw:3hxiz95k]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TGet<br /><br /> <span style="color: #00C800;">local</span> aInfo := ::<span style="color: #000000;">DispBegin</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">local</span> hOldFont<br /> <span style="color: #00C800;">local</span> nClrBtnTxt, nClrBtnPane<br /> <span style="color: #00C800;">local</span> nOldMode<br /> <span style="color: #00C800;">local</span> cText<br /><br /> nClrBtnTxt := ::<span style="color: #000000;">nClrText</span><br /> nClrBtnPane := ::<span style="color: #000000;">nClrPane</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBrush</span> != <span style="color: #00C800;">nil</span><br /> FillRect<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, GetClientRect<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span>, ::<span style="color: #000000;">oBrush</span>:<span style="color: #000000;">hBrush</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> CallWindowProc<span style="color: #000000;">(</span> ::<span style="color: #000000;">nOldProc</span>, ::<span style="color: #000000;">hWnd</span>, WM_ERASEBKGND, ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> IsWindowEnabled<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> CallWindowProc<span style="color: #000000;">(</span> ::<span style="color: #000000;">nOldProc</span>, ::<span style="color: #000000;">hWnd</span>, WM_PAINT, ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lDisColors</span><br /> SetTextColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_GRAYTEXT <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> SetBkColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, GetSysColor<span style="color: #000000;">(</span> COLOR_WINDOW <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> nClrBtnPane := GetSysColor<span style="color: #000000;">(</span> COLOR_WINDOW <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> ::<span style="color: #000000;">nClrTextDis</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"B"</span><br /> SetTextColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">nClrTextDis</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> elseif ValType<span style="color: #000000;">(</span> ::<span style="color: #000000;">nClrTextDis</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nClrTextDis</span> >= <span style="color: #000000;">0</span><br /> SetTextColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nClrTextDis</span> <span style="color: #000000;">)</span><br /> nClrBtnTxt := ::<span style="color: #000000;">nClrTextDis</span><br /> <span style="color: #00C800;">else</span><br /> SetTextColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nClrText</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> ::<span style="color: #000000;">nClrPaneDis</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"B"</span><br /> SetBkColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">nClrPaneDis</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> elseif ValType<span style="color: #000000;">(</span> ::<span style="color: #000000;">nClrPaneDis</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"N"</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">nClrPaneDis</span> >= <span style="color: #000000;">0</span><br /> SetBkColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nClrPaneDis</span> <span style="color: #000000;">)</span><br /> nClrBtnPane := ::<span style="color: #000000;">nClrPaneDis</span><br /> <span style="color: #00C800;">else</span><br /> SetBkColor<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">nClrPane</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span><br /> hOldFont = SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">oFont</span>:<span style="color: #000000;">hFont</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> nOldMode = SetBkMode<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, TRANSPARENT <span style="color: #000000;">)</span><br /><br /> cText := GetWindowText<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">(</span> ::<span style="color: #000000;">cPicture</span> <span style="color: #000000;">)</span> .and. <span style="color: #ff0000;">"L"</span> $ ::<span style="color: #000000;">cPicture</span> .and. ::<span style="color: #000000;">oGet</span>:<span style="color: #000000;">Type</span> == <span style="color: #ff0000;">"N"</span><br /> cText := Transform<span style="color: #000000;">(</span> Val<span style="color: #000000;">(</span> cText <span style="color: #000000;">)</span>, ::<span style="color: #000000;">cPicture</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">do</span> <span style="color: #00C800;">case</span><br /> <span style="color: #00C800;">case</span> lAnd<span style="color: #000000;">(</span> GetWindowLong<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">)</span>, ES_CENTER <span style="color: #000000;">)</span><br /> SetTextAlign<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, TA_CENTER <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lSpinner</span><br /> ExtTextOut<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">(</span> ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">3</span> - GetSysMetrics<span style="color: #000000;">(</span> SM_CYHSCROLL <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, cText, ::<span style="color: #000000;">nTxtStyle</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> ExtTextOut<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">(</span> ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">3</span> <span style="color: #000000;">)</span> / <span style="color: #000000;">2</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, cText, ::<span style="color: #000000;">nTxtStyle</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">case</span> lAnd<span style="color: #000000;">(</span> GetWindowLong<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span>, GWL_STYLE <span style="color: #000000;">)</span>, ES_RIGHT <span style="color: #000000;">)</span><br /> SetTextAlign<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, TA_RIGHT <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">lSpinner</span><br /> ExtTextOut<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">7</span> - GetSysMetrics<span style="color: #000000;">(</span> SM_CYHSCROLL <span style="color: #000000;">)</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, cText, ::<span style="color: #000000;">nTxtStyle</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> ::<span style="color: #000000;">bAction</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"B"</span><br /> ExtTextOut<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">7</span> - ::<span style="color: #000000;">nHeight</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, cText, ::<span style="color: #000000;">nTxtStyle</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> ExtTextOut<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> - <span style="color: #000000;">7</span> ,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, cText, ::<span style="color: #000000;">nTxtStyle</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">otherwise</span><br /> SetTextAlign<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, TA_LEFT <span style="color: #000000;">)</span><br /> ExtTextOut<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, <span style="color: #000000;">1</span>, <span style="color: #000000;">2</span>,;<br /> <span style="color: #000000;">{</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span>, ::<span style="color: #000000;">nHeight</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ::<span style="color: #000000;">nWidth</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span>, cText, ::<span style="color: #000000;">nTxtStyle</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endcase</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oFont</span> != <span style="color: #00C800;">nil</span><br /> SelectObject<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, hOldFont <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> SetBkMode<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, nOldMode <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ValType<span style="color: #000000;">(</span> ::<span style="color: #000000;">bPainted</span> <span style="color: #000000;">)</span> == <span style="color: #ff0000;">"B"</span><br /> Eval<span style="color: #000000;">(</span> ::<span style="color: #000000;">bPainted</span>, ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">cPS</span>, <span style="color: #00C800;">Self</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">oBtn</span> != <span style="color: #00C800;">nil</span> .and. ::<span style="color: #000000;">lBtnTransparent</span><br /> ::<span style="color: #000000;">oBtn</span>:<span style="color: #000000;">SetColor</span><span style="color: #000000;">(</span> nClrBtnTxt, nClrBtnPane <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /> ::<span style="color: #000000;">DispEnd</span><span style="color: #000000;">(</span> aInfo <span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">1</span><br /> </div>[/code:3hxiz95k]
salu2
carlos vargas |
sort Filename (Extension) | PADR is not at all necessary.
Can try:
[code=fw:1xy3i5tn]<div class="fw" id="{CB}" style="font-family: monospace;"> ? ASort<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"CDX"</span>, <span style="color: #ff0000;">"c"</span>, <span style="color: #ff0000;">"Cpp"</span>, <span style="color: #ff0000;">"cH"</span> <span style="color: #000000;">}</span>,,,;<br /> <span style="color: #000000;">{</span> |x,y| LOWER<span style="color: #000000;">(</span> X <span style="color: #000000;">)</span> < LOWER<span style="color: #000000;">(</span> y <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> </div>[/code:1xy3i5tn]
For case insensitive comparisons, we recommend using
[code=fw:1xy3i5tn]<div class="fw" id="{CB}" style="font-family: monospace;"><br />FW_Stricmp<span style="color: #000000;">(</span> c1, c2 <span style="color: #000000;">)</span> <span style="color: #B900B9;">// --> -2, -1, 0, 1, 2</span><br /> </div>[/code:1xy3i5tn]
Incidentally, this function Data Type safe also.
The above function can be written as:
[code=fw:1xy3i5tn]<div class="fw" id="{CB}" style="font-family: monospace;"> ? ASort<span style="color: #000000;">(</span> <span style="color: #000000;">{</span> <span style="color: #ff0000;">"CDX"</span>, <span style="color: #ff0000;">"c"</span>, <span style="color: #ff0000;">"Cpp"</span>, <span style="color: #ff0000;">"cH"</span> <span style="color: #000000;">}</span>,,,;<br /> <span style="color: #000000;">{</span> |x,y| FW_Stricmp<span style="color: #000000;">(</span> x, y <span style="color: #000000;">)</span> < <span style="color: #000000;">0</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> </div>[/code:1xy3i5tn] |
sort Filename (Extension) | hi,
i do "sort" Result of Directory() but it is not correct with Extension
[img:1wpos1cp]https://i.postimg.cc/SKH0t0dG/Sort-Filename.jpg[/img:1wpos1cp]
[code=fw:1wpos1cp]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">CASE</span> nCol = LV_NAME<br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">SortOrder</span> = LVS_SORTASCENDING<br /> ASORT<span style="color: #000000;">(</span> aDirOut, nStartAt + <span style="color: #000000;">1</span>,, <span style="color: #000000;">{</span> | x, y | <span style="color: #000000;">(</span> UPPER<span style="color: #000000;">(</span> x<span style="color: #000000;">[</span> LV_NAME <span style="color: #000000;">]</span> <span style="color: #000000;">)</span>, UPPER<span style="color: #000000;">(</span> y<span style="color: #000000;">[</span> LV_NAME <span style="color: #000000;">]</span> <span style="color: #000000;">)</span>, .T. <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">CASE</span> nCol = LV_EXT<br /> <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">SortOrder</span> = LVS_SORTASCENDING<br /> ASORT<span style="color: #000000;">(</span> aDirOut, nStartAt + <span style="color: #000000;">1</span>,, <span style="color: #000000;">{</span> | x, y | <span style="color: #000000;">(</span> x<span style="color: #000000;">[</span> LV_EXT <span style="color: #000000;">]</span> + UPPER<span style="color: #000000;">(</span> x<span style="color: #000000;">[</span> LV_NAME <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> < <span style="color: #000000;">(</span> y<span style="color: #000000;">[</span> LV_EXT <span style="color: #000000;">]</span> + UPPER<span style="color: #000000;">(</span> y<span style="color: #000000;">[</span> LV_NAME <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /> </div>[/code:1wpos1cp]
as you can "see" CDX is between C
how to change sort <!-- s:idea: --><img src="{SMILIES_PATH}/icon_idea.gif" alt=":idea:" title="Idea" /><!-- s:idea: --> |
sort Filename (Extension) | For example so:
[code=fw:2c792v10]<div class="fw" id="{CB}" style="font-family: monospace;">dim:=directoty<span style="color: #000000;">(</span><span style="color: #ff0000;">"*.*"</span><span style="color: #000000;">)</span><br />ASORT<span style="color: #000000;">(</span> dim, ,, <span style="color: #000000;">{</span> | xx,y y | <span style="color: #000000;">(</span> padl<span style="color: #000000;">(</span>UPPER<span style="color: #000000;">(</span>cFileExt<span style="color: #000000;">(</span>xx<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span><span style="color: #000000;">)</span>,<span style="color: #000000;">5</span><span style="color: #000000;">)</span> < padl<span style="color: #000000;">(</span>UPPER<span style="color: #000000;">(</span> cFileExt<span style="color: #000000;">(</span>yy<span style="color: #000000;">[</span><span style="color: #000000;">1</span><span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>,<span style="color: #000000;">5</span><span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span></div>[/code:2c792v10]
Or you can compare CRC file extensions |
sort Filename (Extension) | hi,
thx for Answer
now CDX is behind BAT and before DBF
[img:2e1ir2of]https://i.postimg.cc/kMsC46wr/CDX-Sort-01.jpg[/img:2e1ir2of]
what i like to have is
*.C
*.CDX
*.CH |
sort Filename (Extension) | hi,
i have use Idea of PAD but use PADR()
[img:1w7vun6y]https://i.postimg.cc/6qdWQYHC/CDX-Sort-02.jpg[/img:1w7vun6y]
now it display like i want, thx |
sort Filename (Extension) | And wherever possible, it may be easier to leave the sorting business to xbrowse itself and xbrowse does a good job.
[code=fw:3gtliu6o]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">local</span> aDir := DIRECTORY<span style="color: #000000;">(</span> <span style="color: #ff0000;">"c:<span style="color: #000000;">\f</span>wh<span style="color: #000000;">\s</span>amples<span style="color: #000000;">\*</span>.*"</span> <span style="color: #000000;">)</span><br /><br /> SET DATE FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"dd.mm.yyyy"</span><br /> SET TIME FORMAT <span style="color: #0000ff;">TO</span> <span style="color: #ff0000;">"hh:mm:ss"</span><br /><br /> AEval<span style="color: #000000;">(</span> aDir, <span style="color: #000000;">{</span> |a| a<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span> := FW_AddTime<span style="color: #000000;">(</span> a<span style="color: #000000;">[</span> <span style="color: #000000;">3</span> <span style="color: #000000;">]</span>, a<span style="color: #000000;">[</span> <span style="color: #000000;">4</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span>, ;<br /> AIns<span style="color: #000000;">(</span> a, <span style="color: #000000;">2</span>, cFileExt<span style="color: #000000;">(</span> a<span style="color: #000000;">[</span> <span style="color: #000000;">1</span> <span style="color: #000000;">]</span> <span style="color: #000000;">)</span> <span style="color: #000000;">)</span>, ASize<span style="color: #000000;">(</span> a, <span style="color: #000000;">4</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span> <span style="color: #000000;">)</span><br /><br /> XBROWSER aDir AUTOSORT SETUP <span style="color: #000000;">(</span> ;<br /> oBrw:<span style="color: #000000;">cHeaders</span> := <span style="color: #000000;">{</span> <span style="color: #ff0000;">"NAME"</span>, <span style="color: #ff0000;">"EXT"</span>, <span style="color: #ff0000;">"SIZE"</span>, <span style="color: #ff0000;">"DATE"</span> <span style="color: #000000;">}</span>, ;<br /> oBrw:<span style="color: #000000;">AutoFit</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>, ;<br /> oBrw:<span style="color: #000000;">SetDarkTheme</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span><br /> </div>[/code:3gtliu6o]
[url=https://imageshack.com/i/powDU4Knp:3gtliu6o][img:3gtliu6o]https://imagizer.imageshack.com/v2/xq70/924/wDU4Kn.png[/img:3gtliu6o][/url:3gtliu6o] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.