topic
stringlengths
1
63
text
stringlengths
1
577k
CENTRADO DE CABECERAS EN TREPORT
Hola de nuevo, Creo que me he explicado mal, lo que necesito centrar son los TITULOS de las columnas, creo que estaba usando headers en forma equivocada Excuse me
CENTRADO DE CABECERAS EN TREPORT
[quote="rterraz":g1txl7qa]Hola amigos. Alguien sabe como hacer para alinear las cabeceras y los totales de las columnas de un treport ? Las cabeceras las alinea siempre segun el alineamiento de la columna correspondiente, como hago para cambiarlo y ponerlas todas centradas por ejemplo? He probado con oHeader (ej:oRpt:oHeader:aPad[1] := RPT_CENTER etc,etc y nada funciona Los totales de las columnas numericas salen centrados y quisiera alinearlos a la derecha ! Saludos a todos[/quote:g1txl7qa] Column titles, data and totals use same alignment. What you want can not be achieved except by change in TRColumn class in rcolumn.prg.
CENTRADO DE CABECERAS EN TREPORT
Please try making these changes in [u:wp5jb6tj][b:wp5jb6tj]\fwh\source\classes\rcolumn.prg[/b:wp5jb6tj][/u:wp5jb6tj] Add this new data to the class declartion [code=fw:wp5jb6tj]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">DATA</span> nAlignTitle</div>[/code:wp5jb6tj] Then change the last line of code in the METHOD SayTitle( .... ) Existing code in the last line: [code=fw:wp5jb6tj]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; ::<span style="color: #000000;">oReport</span>:<span style="color: #000000;">oDevice</span>:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>nRow, nCol, cTitle, oFont, ::<span style="color: #000000;">nWidth</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oReport</span>:<span style="color: #000000;">aClrText</span><span style="color: #000000;">&#91;</span>nFont<span style="color: #000000;">&#93;</span>,,::<span style="color: #000000;">nPad</span><span style="color: #000000;">-1</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:wp5jb6tj] Replace this line with this new line of code: [code=fw:wp5jb6tj]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; ::<span style="color: #000000;">oReport</span>:<span style="color: #000000;">oDevice</span>:<span style="color: #0000ff;">Say</span><span style="color: #000000;">&#40;</span>nRow, nCol, cTitle, oFont, ::<span style="color: #000000;">nWidth</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">oReport</span>:<span style="color: #000000;">aClrText</span><span style="color: #000000;">&#91;</span>nFont<span style="color: #000000;">&#93;</span>,,IfNil<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">nAlignTitle</span>, ::<span style="color: #000000;">nPad</span> <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:wp5jb6tj] Include this revised rcolumn.prg in your project. In your application, define the COLUMN like this [code=fw:wp5jb6tj]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; COLUMN oCol <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"NAME"</span> <span style="color: #00C800;">DATA</span> FIELD->FIRST <span style="color: #0000ff;">FONT</span> <span style="color: #000000;">1</span><br />&nbsp; &nbsp;oCol:<span style="color: #000000;">nAlignTitle</span> := RPT_CENTER<br />&nbsp;</div>[/code:wp5jb6tj]
CENTRADO DE CABECERAS EN TREPORT
Estimado Sr Rao Muchas gracias por su respuesta y por su inestimable ayuda Saludos
CENTRAR DATA VERTICALMENTE EN TReport
Saludos, ya veo que se puede centrar la DATA(columnas) en TReport, pero: - hay maneras de centrar la data o el texto de las columnas en forma vertical, - se puede dar mas altura a las filas.? saludos, gracias... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
CERRAR LIBRO DE EXCEL SIN SALVAR
Estoy tratando con varios libros de EXCEL de la siguiente manera... [code=fw:339v4vuq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;oExcel := TOleAuto<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: #ff0000;">"Excel.Application"</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ACTIVANDO EXCEL</span><br />&nbsp; &nbsp;oExcel:<span style="color: #000000;">Visible</span> := .t. <span style="color: #B900B9;">// MOSTRAR O NO HOJA DE EXCEL</span><br />&nbsp; &nbsp;oExcel:<span style="color: #000000;">Workbooks</span>:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> cFileXls <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ABRO EL ARCHIVO</span><br />&nbsp;</div>[/code:339v4vuq] asi abro varios libros para leer moviendome entre hojas de algunas columnas y alimentar otro libro de excel en diferentes columnas, hasta alli todo super bien. El detalle que tengo es que quiero despues de leer un libro, cerrarlo sin que me diga, no se porque motivo, que debo guardar los cambios si lo unico que hago es leer datos de las hojas, para cerralo hago lo siguiente: [code=fw:339v4vuq]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// CERRANDO EXCEL</span><br />&nbsp; &nbsp;oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oExcel:<span style="color: #000000;">Application</span>:<span style="color: #000000;">Quit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oExcel:<span style="color: #000000;">Quit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oExcel := <span style="color: #00C800;">Nil</span><br />&nbsp;</div>[/code:339v4vuq] y cuando uso la siguiente linea para salvarlo y luego cerrarlo, me da error como si no conociera el methodo... [code=fw:339v4vuq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;oHoja:<span style="color: #000000;">SaveAs</span><span style="color: #000000;">&#40;</span> cFileXls <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:339v4vuq] lo que estoy por los momentos haciendo es abrir todos los libros y luego cerrarlos manualmente, pero el cliente no puede estar haciendo eso y ademas que al abrir gran cantidad de libros, se carga la RAM ya que hace apertura de excel por libro, las ayudas, sugerencias y comentarios sera bienvenidas, gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
CERRAR LIBRO DE EXCEL SIN SALVAR
José Luis: Prueba a salvar y luego salir con... [code=fw:1flq2qt1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    oExcel:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ActiveWorkBook"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">SaveAs</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Nombre del archivo"</span> + <span style="color: #ff0000;">".Xlsx"</span><span style="color: #000000;">&#41;</span><br />    oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oExcel:<span style="color: #000000;">Quit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:1flq2qt1] Saludos
CERRAR LIBRO DE EXCEL SIN SALVAR
[quote="Armando":3imugpnk]José Luis: Prueba a salvar y luego salir con... [code=fw:3imugpnk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    oExcel:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ActiveWorkBook"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">SaveAs</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Nombre del archivo"</span> + <span style="color: #ff0000;">".Xlsx"</span><span style="color: #000000;">&#41;</span><br />    oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />    oExcel:<span style="color: #000000;">Quit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /> </div>[/code:3imugpnk] Saludos[/quote:3imugpnk] Armando, gracias por tu respuesta, fue la solucion aunque le hice un pequeño cambios, no use SaveAs(), sino Save(), ya que el saveas(), es para salvarlo con otro nombre y no era la idea, asi que lo hice asi, gracias, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> [code=fw:3imugpnk]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;oExcel:<span style="color: #0000ff;">Get</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"ActiveWorkBook"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Save</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">//SALVA LIBRO ACTIVO</span><br />&nbsp; &nbsp;oExcel:<span style="color: #000000;">WorkBooks</span>:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CIERRA LIBRO ACTIVO</span><br />&nbsp; &nbsp;oExcel:<span style="color: #000000;">Quit</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// CIERRA EXCEL</span><br />&nbsp;</div>[/code:3imugpnk]
CERRAR VENTANA CON UN RECURSO DE WINDOWS
Hola, hago lo siguiente desde mi aplicación, abrir el teclado de windows con la función SHELLEXECUTE(vencom01,"OPEN","osk.exe"). El asunto es como puedo cerrar esta ventana automáticamente, cuando ya no necesite el teclado. Gracias, Juan Fco. Rep. Dom.
CERRAR VENTANA CON UN RECURSO DE WINDOWS
// Intenta asi: [code=fw:1tdbe3o0]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> CloseAPPExe<span style="color: #000000;">&#40;</span> oWnd <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;SendMessage<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"osk"</span> <span style="color: #000000;">&#41;</span>, WM_CLOSE <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br />&nbsp;</div>[/code:1tdbe3o0] 
CERRAR VENTANA CON UN RECURSO DE WINDOWS
Hola hermano no pude resolver con eso se mantiene abierta la ventana del teclado, a ver si tienes otra solución que me puedas ofrecer. Gracias, Juan FCo.
CERRAR VENTANA CON UN RECURSO DE WINDOWS
Debes sustituir el "osk" por el caption de la ventana que quieres cerrar. [code=fw:3emd4t8f]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   SendMessage<span style="color: #000000;">&#40;</span> FindWindow<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #ff0000;">"Teclado en pantalla"</span> <span style="color: #000000;">&#41;</span>, WM_CLOSE <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:3emd4t8f]
CERRAR VENTANA CON UN RECURSO DE WINDOWS
Okey ahí si me funciono, gracias mil a todos por su atención. Saludos, Juan Fco. Rep. Dom.
CES 2010
Very interesting products presented in CES 2010: MSI e-reader: [url:229dklgw]http&#58;//www&#46;engadget&#46;com/2010/01/06/msi-dualscreen-e-reader-hands-on/[/url:229dklgw] HP Slate: [url:229dklgw]http&#58;//www&#46;engadget&#46;com/2010/01/06/the-hp-slate/[/url:229dklgw] Laptop + Amoled: [url:229dklgw]http&#58;//www&#46;ohgizmo&#46;com/2010/01/07/ces-2010-laptop-with-transparent-amoled-display/[/url:229dklgw] Asus Waveface: [url:229dklgw]http&#58;//gizmologia&#46;com/2010/01/los-prototipos-de-asus-waveface-desde-el-ces[/url:229dklgw]
CFDI MEXICO Generar Cadena Original
Hola a todos El siguiente código me genera la cadena original de un archivo .xml sin ningún problema. [code=fw:1191ydaj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   * Crea la Cadena Original<br />   ObjXSLT := CreateObject<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Msxml2.DOMDocument.6.0"</span><span style="color: #000000;">&#41;</span><br />   ObjXSLT:<span style="color: #000000;">async</span>:=.F.<br />   ObjXSLT:<span style="color: #000000;">resolveExternals</span> = .T.<br />*  lResult := ObjXSLT:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"m:<span style="color: #000000;">\w</span>ww.sat.gob.mx<span style="color: #000000;">\s</span>itio_internet<span style="color: #000000;">\c</span>fd<span style="color: #000000;">\3</span><span style="color: #000000;">\c</span>adenaoriginal_3_2<span style="color: #000000;">\c</span>adenaoriginal_3_2.xslt"</span><span style="color: #000000;">&#41;</span><br />  lResult := ObjXSLT:<span style="color: #000000;">Load</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"http://www.sat.gob.mx/sitio_internet/cfd/3/cadenaoriginal_3_2/cadenaoriginal_3_2.xslt"</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">IF</span> !lResult<br />      <span style="color: #00C800;">RETURN</span> lOk<br />   <span style="color: #00C800;">ENDIF</span><br />   strCadena := oXmlDoc:<span style="color: #000000;">transformNode</span><span style="color: #000000;">&#40;</span>ObjXSLT<span style="color: #000000;">&#41;</span><br />   lOk := .t.<br /><span style="color: #00C800;">endif</span><br /><br /> </div>[/code:1191ydaj] En cambio, si hago el llamado del archivo.xslt no se resuelven las dependecias aunque las tenga locales. Apliqué los cambios al .xslt de la siguiente forma [code=fw:1191ydaj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />        En esta sección se <span style="color: #0000ff;">define</span> la inclusión de las demás plantillas de transformación para <br />        la generación de las cadenas originales de los complementos fiscales <br />    --><br />  <xsl:<span style="color: #000000;">include</span> href=<span style="color: #ff0000;">"file:///m:/www.sat.gob.mx/sitio_internet/cfd/ecc/ecc.xslt"</span>/><br />  <xsl:<span style="color: #000000;">include</span> href=<span style="color: #ff0000;">"file:///m:/www.sat.gob.mx/sitio_internet/cfd/psgecfd/psgecfd.xslt"</span>/><br />  <xsl:<span style="color: #000000;">include</span> href=<span style="color: #ff0000;">"file:///m:/www.sat.gob.mx/sitio_internet/cfd/donat/donat11.xslt"</span>/><br />  <xsl:<span style="color: #000000;">include</span> href=<span style="color: #ff0000;">"file:///m:/www.sat.gob.mx/sitio_internet/cfd/divisas/divisas.xslt"</span>/><br /> </div>[/code:1191ydaj] Alguna sugerencia ? Saludos
CFDI MEXICO Generar Cadena Original
Listo el pollo !!! Saludos
CGI
Dear friends, I have a problem to get CGI to work (any language, I tried xHarbour and C, it used to work the last time I tried it...). I can write the results to the browser (stdout) but I cannot receive anything from stdin: localhost/mysite/test.htm [code:2ntd9vm2]<HTML> <BODY> <FORM METHOD = "post" ACTION = "test&#46;exe?Param=Test"> <INPUT TYPE = "submit" VALUE = "Send"> </FORM> </BODY> </HTML>[/code:2ntd9vm2] TEST.EXE is: [code:2ntd9vm2]#include "Simpleio&#46;ch" FUNCTION MAIN&#40;&#41; ?? "Content-type&#58; text/html" ? ? "<HTML>" ? "<BODY>" ? "Received&#58; " + FREADSTR&#40; 0, 256 &#41; + "<BR>" ? "</BODY>" ? "</HTML>" RETURN NIL[/code:2ntd9vm2] The result is an empty string. "Received:" What am I missing? Thank you in advance for any help. EMG
CGI
Enrico, I have moved it to this section, as I understand it is important for more users <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
CGI
Ok, thank you. EMG
CGI
Solved: [code:3cv65q1e]<HTML> <BODY> <FORM METHOD = "post" ACTION = "test&#46;exe"> <INPUT TYPE = "text" NAME = "Param"> <INPUT TYPE = "submit" VALUE = "Send"> </FORM> </BODY> </HTML>[/code:3cv65q1e] EMG
CGI
Ciao a tutti, sto facendo alcuni test con applicazioni CGI, il problema è che mentre sembra funzionare con Iexplorer, con Mozilla Firefox mi visualizza in output tutti i tag HTML senza interpretarli, da cosa può dipendere ? Uso Apache installato in locale e Firefox 1.5.0.7 P.S. qualcuno conosce o ha mai usato il CMS Typo3 ? Roberto Chiaiese
CGI
[quote="chiaiese":562yqo9j]Ciao a tutti, sto facendo alcuni test con applicazioni CGI, il problema è che mentre sembra funzionare con Iexplorer, con Mozilla Firefox mi visualizza in output tutti i tag HTML senza interpretarli, da cosa può dipendere ? Uso Apache installato in locale e Firefox 1.5.0.7[/quote:562yqo9j] Controlla di aver inviato il Content-type: [code:562yqo9j]?? &#91;Content-type&#58; text/html&#93; ? ? &#91;<HTML>&#93; &#46;&#46;&#46;[/code:562yqo9j] EMG
CGI
questo è il sorgente che dovrebbe creare la pagina ? [Content-type: text/html] ? [<HTML>] ? [<HEAD>] ? [<TITLE>My test</TITLE>] ? [</HEAD>] ? [<BODY>] ? [<p1>Parametri ]+cUsr+" "+cPwd+[<br></p1>] ? [<A HREF = "test.htm"><H3>Torna indietro</H3></A>] ? [</BODY>] ? [</HTML>] e questo è l'output che genera a video su Firefox (IExplorer è ok) Content-type: text/html <HTML> <HEAD> <TITLE>My test</TITLE> </HEAD> <BODY> <p1>Parametri admin system <br></p1> <A HREF = "test.htm"><H3>Torna indietro</H3></A> </BODY> </HTML> ho trovato su internet qualcuno che segnala un errore simile, dicono sia un problema di MIME-TYPE ?? Cos'è esattamente ? ho provato anche a mettere il doppio ?? come nel tuo esempio ma mi dà errore del server 500 ciao e grazie Roberto
CGI
[quote="chiaiese":2b7dadyn]questo è il sorgente che dovrebbe creare la pagina ? [Content-type: text/html] ? [<HTML>][/quote:2b7dadyn] No, così è sbagliato. Devi inviare una riga vuota tra il Content-type e il tag HTML. Fai esattamente come nel mio esempio e vedrai che funziona. EMG
CGI
è vero, ora funziona, sono necessari sia il doppio ?? che la riga vuota dopo il content-type grazie Enrico. ora, che tu sappia è possibile integrare i cgi con php ? ho provato qualcosa del genere ma non ha funzionato: [code:21ykbmpf] ?? &#91;Content-type&#58; application/php&#93; ? ? &#91;<HTML>&#93; ? &#91;<HEAD>&#93; ? &#91;<TITLE>Errore</TITLE>&#93; ? &#91;</HEAD>&#93; ? &#91;<BODY>&#93; ? '<?php echo $_SERVER&#91;"HTTP_USER_AGENT"&#93;; ?>' ? &#91;<p1>Parametri &#93;+cUsr+" "+cPwd+&#91;<br></p1>&#93; ? &#91;<A HREF = "test&#46;htm"><H3>Torna indietro</H3></A>&#93; ? &#91;</BODY>&#93; ? &#91;</HTML>&#93; [/code:21ykbmpf] probabilmente perché l'output viene inviato direttamente al browser senza essere riprocessato dal server hai qualche idea ? Roberto
CGI
[quote="chiaiese":12xdzoom]ora, che tu sappia è possibile integrare i cgi con php ?[/quote:12xdzoom] Non credo. Se è il CGI che genera l'output come può questo essere generato anche da un altro linguaggio server-side? Invece si può tranquillamente utilizzare il Javascript che è un linguaggio client-side. EMG
CGI
è possibile invece inserire il risultato del CGI come "parte" della pagina invece che generarne una completamente nuova: es: [code:1bs0j3kr] <html> <head> html&#46;&#46;&#46; </head> <body> html&#46;&#46;&#46; come eseguo mycgi&#46;cgi&#40;params&#41; che restituisce una tabella ? altro html&#46;&#46;&#46; </body> </html> [/code:1bs0j3kr] Roberto
CGI
Potresti mettere nella pagina un simbolo riconoscibile che poi vai a sostituire. Quindi: carichi la pagina con MemoRead(), sostituisci il simbolo (sarà una stringa di caratteri riconoscibile) con l'HTML aggiuntivo da inserire precedentemente preparato, poi spari il tutto in output. EMG
CGI
se a qualcuno interessa l'argomento... finalmente ho trovato una soluzione, forse non è la migliore ma funziona: [code:13ol7l38] <body> html&#46;&#46;&#46; <! genero la mia tabella da harbour !! > <?php passthru&#40; "testexe1&#46;exe params" &#41;; ?> altro html&#46;&#46;&#46; </body> [/code:13ol7l38] in realtà sto lavorando in un CMS (content management system) e non ho il controllo sulla pagina che viene generata perchè è il CMS che la genera. Di conseguenza ci posso solo inserire un "elemento di contenuto" tramite uno script che richiama il mio eseguibile nel modo mostrato sopra ciao a tutti Roberto
CGI EXE
Hi, I have to compile this little program CGI using #include "fivewin.ch" Is it possible to obtain the same goal? Hello World in the browser Many thanks marco [code=fw:ux60naaj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Simpleio.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  ?? <span style="color: #000000;">&#91;</span>Content-type: <span style="color: #0000ff;">text</span>/html<span style="color: #000000;">&#93;</span><br />  ?<br />  ? <span style="color: #000000;">&#91;</span><HTML><span style="color: #000000;">&#93;</span><br />  ? <span style="color: #000000;">&#91;</span><BODY><span style="color: #000000;">&#93;</span><br />  ? <span style="color: #000000;">&#91;</span><HEAD><span style="color: #000000;">&#93;</span><br />  ? <span style="color: #000000;">&#91;</span> Hello World <span style="color: #000000;">&#93;</span><br />  ? <span style="color: #000000;">&#91;</span></HEAD><span style="color: #000000;">&#93;</span><br />  ? <span style="color: #000000;">&#91;</span></BODY><span style="color: #000000;">&#93;</span><br />  ? <span style="color: #000000;">&#91;</span></HTML><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:ux60naaj]
CGI EXE
Marco, That is quite similar to what FiveWeb does: [url:1eavbe2a]http&#58;//code&#46;google&#46;com/p/fiveweb/[/url:1eavbe2a] Full source code provided <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
CGI EXE
[quote="Antonio Linares":1t4if1zi]Marco, That is quite similar to what FiveWeb does: [url:1t4if1zi]http&#58;//code&#46;google&#46;com/p/fiveweb/[/url:1t4if1zi] Full source code provided <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->[/quote:1t4if1zi] El último release es del 04/12/12, y creo que hubo modificaciones posteriores. Cierto?
CGI EXE
Carlos, Puedes descargar lo más reciente directamente desde el repositorio usando TortoiseSVN
CGI EXE
[quote="Antonio Linares":3eqx7uwp]Carlos, Puedes descargar lo más reciente directamente desde el repositorio usando TortoiseSVN[/quote:3eqx7uwp] Gracias, lo tendré en cuenta.
CGI EXE
Antonio I have to do an experiment (a little test) At the moment I want to understand if there is a function Fivewin to replace the question mark. Bye
CGI EXE
Marco, You can use this function: [code=fw:2eez4vod]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> CONOUT <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;printf<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"%s<span style="color: #000000;">\n</span>"</span>, <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span> &nbsp; <br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:2eez4vod] and this command to use the ?: #xcommand ? <x> => ConOut( <x> )
CGI EXE
Many Thanks Antonio
CGI EXE and Excel OLE
Dear friends, I need to use Excel via OLE inside a xHarbour CGI EXE. Unfortunately, all I get is a 502.2 error when CreateObject() is executed. Please note that it works fine if the EXE is run from the console but not from the browser. I use IIS as web server. Anybody knows any fix for this error? Maybe it's a wrong IIS configuration setting? EMG
CGI EXE and Excel OLE
Thank you, I will look at these. EMG
CGI EXE and Excel OLE
Sorry Enrico, I have not used for a long time cgi Let's see if it helps <!-- m --><a class="postlink" href="https://docs.microsoft.com/en-us/iis/troubleshoot/diagnosing-http-errors/troubleshooting-http-5022-bad-gateway-error-in-cgi-applications">https://docs.microsoft.com/en-us/iis/tr ... plications</a><!-- m --> <!-- m --><a class="postlink" href="https://support.microsoft.com/es-es/help/942057/error-message-when-you-visit-a-web-site-that-is-hosted-on-iis-7-0-http">https://support.microsoft.com/es-es/hel ... s-7-0-http</a><!-- m --> <!-- m --><a class="postlink" href="https://forums.iis.net/t/1147121.aspx?HTTP+Error+502+2+Bad+Gateway+Anybody+has+the+solution">https://forums.iis.net/t/1147121.aspx?H ... e+solution</a><!-- m -->
CGI xHarbour
Dear friends, do you see anything wrong in the following code that I'm using as CGI? [code=fw:38q5mhp5]<div class="fw" id="{CB}" style="font-family: monospace;">oRs = CREATEOBJECT<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADODB.Recordset"</span> <span style="color: #000000;">&#41;</span><br /><br />oRs:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"SELECT * FROM Contatti"</span>, cCns, adOpenForwardOnly, <br />adLockOptimistic <span style="color: #000000;">&#41;</span><br /><br />USE <span style="color: #000000;">&#40;</span> cUpl + <span style="color: #ff0000;">"<span style="color: #000000;">\C</span>ONTATTI"</span> <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">WHILE</span> !EOF<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; oRs:<span style="color: #000000;">AddNew</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; COPYREC<span style="color: #000000;">&#40;</span> oRs <span style="color: #000000;">&#41;</span> &nbsp;<span style="color: #B900B9;">// Copy all values from DBF to recordset</span><br /><br />&nbsp; &nbsp; oRs:<span style="color: #0000ff;">Update</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; SKIP<br /><span style="color: #00C800;">ENDDO</span><br /><br />CLOSE<br /><br />oRs:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span></div>[/code:38q5mhp5] I don't know why but it only adds a certain number of records (from 1000 to 2000) on 38000. It works fine if used as normal local application. Any ideas? Thanks in advance. EMG
CGI xHarbour
Enrico, when the web app go in a large proccess, this can go to a time out with the server, I am sure this is your problem, maybe you can change some parameters in the web server regards Marcelo
CGI xHarbour
Thank you. Unfortunately the web server is not mine and I have no way to set its parameters. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
CGI xHarbour
Enrico, Not sure if it may help in this case, but you could try to call SysRefresh() from inside the loop.
CGI xHarbour
Already tried with HB_IDLESLEEP( 1 ) but the app just becomes slower. As Marcelo said, a timeout is the most likely cause. I'm going to do some tests with batch update mode trying to speed up the app. EMG
CGI xHarbour
Batch update mode made no differences. Anyway, I made the app faster and now it seems to run fine! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> EMG
CGI-BIN xHarbour with FiveWin
Ari, no debe enlazar FW para usar cgi. Al enlazar quite gtgui y reemplácelo con gtcgi. la entrada de datos viene en variables de entorno que puede leer con GetEnv(), y varian algo segun el servidor y el sistema operativo que esté usando. En los ejemplos de Harbour puede encontrar: GuestBk, un ejemplo CGi completo. HttpSrv, un ejemplo excelente de un servidor http escrito en harbour, que seguramente servira para entender el tema con más profundidad.
CGI-BIN xHarbour with FiveWin
Prezados Onde encontro informações de como tabalhar com FiveWin com cgi-bin exemplos ? Ari São Paulo - Brasil
CGI-BIN xHarbour with FiveWin
Obrigado por respodender, não achei o link do GuestBK esquece , acabei de encontrar.. no xaharbour_souce\samples\guestbk ok ! Ari
CGIs speed test
small test in C language running on remote Debian server: test.c [code=fw:x05ckmo1]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// build it doing: gcc test.c -otest</span><br /><br /><span style="color: #00D7D7;">#include</span> <stdio.h><br /><br />int main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   printf<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"%s%s<span style="color: #000000;">\n</span><span style="color: #000000;">\n</span>"</span>, <span style="color: #ff0000;">"Content-Type:"</span>, <span style="color: #ff0000;">"text/plain"</span> <span style="color: #000000;">&#41;</span>;<br />   printf<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"%s<span style="color: #000000;">\n</span>"</span>, <span style="color: #ff0000;">"Hello world from CGI"</span> <span style="color: #000000;">&#41;</span>;<br /><br />   <span style="color: #00C800;">return</span> <span style="color: #000000;">0</span>;<br /><span style="color: #000000;">&#125;</span></div>[/code:x05ckmo1] You can test it on [url:x05ckmo1]http&#58;//www&#46;modharbour&#46;org/cgi-bin/test[/url:x05ckmo1] Execution speed: around 100ms Now, using a small Harbour test: testh.prg [code=fw:x05ckmo1]<div class="fw" id="{CB}" style="font-family: monospace;">REQUEST HB_GT_STD_DEFAULT<br />REQUEST HB_GT_STD<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;Test<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 />procedure HB_GTSYS<br /><span style="color: #00C800;">return</span><br /><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <stdio.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> TEST <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;printf<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"%s%s<span style="color: #000000;">\n</span><span style="color: #000000;">\n</span>"</span>, <span style="color: #ff0000;">"Content-Type:"</span>, <span style="color: #ff0000;">"text/plain"</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;printf<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"%s<span style="color: #000000;">\n</span>"</span>, <span style="color: #ff0000;">"Hello world from CGI"</span> <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:x05ckmo1] You can test it on [url:x05ckmo1]http&#58;//www&#46;modharbour&#46;org/cgi-bin/testh[/url:x05ckmo1] Execution speed: around 130ms
CHALLENGE FOR ANTONIO AND THE C MASTERS
Hello Antonio, I don't know if you are aware that Microsoft released the Word 1.1 source code for educational purposes: [url:19yykqtm]https&#58;//computerhistory&#46;org/blog/microsoft-word-for-windows-1-1a-source-code/[/url:19yykqtm] [url:19yykqtm]https&#58;//github&#46;com/BlastarIndia/msword[/url:19yykqtm] The C slips away from me, but you could still keep an eye on it to see if it can be compiled. What do you think? Thank you!
CHALLENGE FOR ANTONIO AND THE C MASTERS
Eduardo, I think there is no point in compiling it. Instead it is a very valuable resource to review its source code and learn from it thanks!
CHANGE A BUTTONBAR ON A WINDOW
For th emain window I have a button bar with many buttons when I open a module I want change the main buttonbar and insert a new buttonbar with 4 buttons when I close this module I want erase the buttonbar of this module and recall the buttonbar of the main window Can I make it and How ?
CHANGE A BUTTONBAR ON A WINDOW
Silvio: Here's an example of what you're looking for. I hope you find it useful. [b:2vcyu5jc]Please click on the printer-button on both bars.[/b:2vcyu5jc] #include "FiveWin.ch" static oWnd function Main() local oBar, oPopup, oBtn SetBalloon( .T. ) // Balloon shape required for tooltips DEFINE WINDOW oWnd TITLE "FWH - Office 2007 look in your ButtonBars, MsgBar and Menus" [b:2vcyu5jc]Barra1() //Main button-bar[/b:2vcyu5jc] SET MESSAGE OF oWnd TO "Testing the ButtonBar 2007 Office look" ; CENTERED CLOCK KEYBOARD 2007 ACTIVATE WINDOW oWnd ; VALID MsgYesNo( "Do you want to end?" ) return nil //------------------------------ Function Barra1() local oBar, oPopup, oBtn DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007 DEFINE BUTTON OF oBar ACTION Print() ; RESOURCE "attach" PROMPT "Attach" TOOLTIP "Attach" DEFINE BUTTON OF oBar ACTION MsgInfo( "Calendar" ) ; RESOURCE "calendar" PROMPT "Calendar" WHEN .F. TOOLTIP "Calendar" MENU oPopup POPUP MENUITEM "One" ACTION MsgInfo( 1 ) MENUITEM "Two" ACTION MsgInfo( 2 ) ENDMENU DEFINE BUTTON oBtn OF oBar ACTION oBtn:ShowPopup() ; RESOURCE "people" PROMPT "Clients" GROUP ; MENU oPopup TOOLTIP "Clients" [b:2vcyu5jc] DEFINE BUTTON OF oBar ACTION Barra2(oBar) ; //second button-bar[/b:2vcyu5jc] RESOURCE "print" PROMPT "Print" TOOLTIP "Print" Return nil //------------------------------ Function Barra2(oBar1) local oBar, oPopup, oBtn oBar1:Hide() DEFINE BUTTONBAR oBar OF oWnd SIZE 60, 60 2007 DEFINE BUTTON OF oBar ACTION Print() ; RESOURCE "attach" PROMPT "Attach" TOOLTIP "Attach" DEFINE BUTTON OF oBar ACTION ( MsgInfo("My Action"), oBar:End(), oBar1:Show() ) ; RESOURCE "print" PROMPT "Print" TOOLTIP "Hi, Click me" Return nil Regards Francisco.
CHANGE A BUTTONBAR ON A WINDOW
thanks... but there is a small problem when U change the size of the main window when U return at barra1 the buttonbar is changed the size perhaps it want a resize of this buttonbar...
CHANGE COLOR HEADER WITH AUTOSORT TDOLPHIN
how could change the color of header when I click on the header [code=fw:4k0zqtwo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">ODLG</span> AUTOSORT<br /><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">servico</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">pmestre</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">produto</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">barra</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">descricao</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">unidade</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">ncm</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">lucro</span>         <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 99999.99"</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">preco</span>         <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 999,999.999"</span><br /><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"TP"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">40</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"FAMILIA"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">70</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"PRODUTO"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">70</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"BARRAS"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_LEFT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_LEFT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">120</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"DESCRICAO"</span>+CRLF+<span style="color: #ff0000;">"PRODUTO"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_LEFT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_LEFT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">400</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"UN"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">40</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"NCM"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">90</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"MARGEM"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_RIGHT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_RIGHT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">80</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"PREÇO"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_RIGHT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_RIGHT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">90</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lRecordSelector</span>        := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lfooter</span>                := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lHScroll</span>               := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lVScroll</span>               := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NHEADERLINES</span>           := <span style="color: #000000;">2</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NDATALINES</span>             := <span style="color: #000000;">1</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NFOOTERLINES</span>           := <span style="color: #000000;">1</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">l2007</span>                  := .F.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowHeight</span>             := <span style="color: #000000;">24</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NMARQUEESTYLE</span>          := <span style="color: #000000;">5</span><span style="color: #B900B9;">//MARQSTYLE_HIGHLROW</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bClrSelFocus</span>           := <span style="color: #000000;">&#123;</span> ||<span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NCOLDIVIDERSTYLE</span>       := LINESTYLE_BLACK<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NROWDIVIDERSTYLE</span>       := LINESTYLE_BLACK<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">LCOLDIVIDERCOMPLETE</span>    := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BCLRSELFOCUS</span>           := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BKEYDOWN</span>               := <span style="color: #000000;">&#123;</span>|NKEY| ::<span style="color: #000000;">KEYPRESS</span><span style="color: #000000;">&#40;</span> NKEY <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">SetDolphin</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:4k0zqtwo] [code=fw:4k0zqtwo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />**************************************<br /><span style="color: #00C800;">FUNCTION</span> Build_CodeBlock_Order<span style="color: #000000;">&#40;</span> oQry <span style="color: #000000;">&#41;</span><br />**************************************<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #000000;">&#123;</span>| nMRow, nMCol, nFlags, oCol | SetOrderDolphin<span style="color: #000000;">&#40;</span> oCol, oQry <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><br />****************************************<br /><span style="color: #00C800;">function</span> SetOrderDolphin<span style="color: #000000;">&#40;</span> oCol, oQry <span style="color: #000000;">&#41;</span><br />****************************************<br /><br />   <span style="color: #00C800;">LOCAL</span> aToken<br />   <span style="color: #00C800;">LOCAL</span> cType, cOrder<br /><br />   aToken := HB_ATokens<span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">cOrder</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> Len<span style="color: #000000;">&#40;</span> aToken <span style="color: #000000;">&#41;</span> == <span style="color: #000000;">1</span><br />      AAdd<span style="color: #000000;">&#40;</span> aToken, <span style="color: #ff0000;">"ASC"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   cOrder = AllTrim<span style="color: #000000;">&#40;</span> Lower<span style="color: #000000;">&#40;</span> aToken<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   cType = aToken<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br /><br />   AEval<span style="color: #000000;">&#40;</span> oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">aCols</span>, <span style="color: #000000;">&#123;</span>| o | o:<span style="color: #000000;">cOrder</span> := <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">IF</span> oQry:<span style="color: #000000;">aStructure</span><span style="color: #000000;">&#91;</span> oCol:<span style="color: #000000;">nCreationOrder</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> == cOrder<br />      <span style="color: #00C800;">IF</span> Upper<span style="color: #000000;">&#40;</span> cType <span style="color: #000000;">&#41;</span> == <span style="color: #ff0000;">"ASC"</span><br />         cType = <span style="color: #ff0000;">"DESC"</span><br />         oCol:<span style="color: #000000;">cOrder</span> = <span style="color: #ff0000;">"D"</span><br />      <span style="color: #00C800;">ELSE</span><br />         cType = <span style="color: #ff0000;">"ASC"</span><br />         oCol:<span style="color: #000000;">cOrder</span> = <span style="color: #ff0000;">"A"</span><br />      <span style="color: #00C800;">ENDIF</span><br />   <span style="color: #00C800;">ELSE</span><br />      cOrder = oQry:<span style="color: #000000;">aStructure</span><span style="color: #000000;">&#91;</span> oCol:<span style="color: #000000;">nCreationOrder</span> <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />      cType = <span style="color: #ff0000;">"ASC"</span><br />      oCol:<span style="color: #000000;">cOrder</span> = <span style="color: #ff0000;">"A"</span><br />   <span style="color: #00C800;">ENDIF</span><br />   oQry:<span style="color: #000000;">SetOrder</span><span style="color: #000000;">&#40;</span> cOrder + <span style="color: #ff0000;">" "</span> + cType <span style="color: #000000;">&#41;</span><br /><br /><br />   oCol:<span style="color: #000000;">oBrw</span>:<span style="color: #0000ff;">Refresh</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 /> </div>[/code:4k0zqtwo] [img:4k0zqtwo]http&#58;//imageshack&#46;com/a/img924/7030/DYLzua&#46;png[/img:4k0zqtwo]
CHANGE COLOR HEADER WITH AUTOSORT TDOLPHIN
for every column, assign bClrHeader oCol:bClrHeader := { || If( Empty( oCol:cOrder ), normal color array, highlight color array ) }
CHANGE COLOR HEADER WITH AUTOSORT TDOLPHIN
[quote="nageswaragunupudi":4ree5v72]for every column, assign bClrHeader oCol:bClrHeader := { || If( Empty( oCol:cOrder ), normal color array, highlight color array ) }[/quote:4ree5v72] THANK YOU !!! [code=fw:4ree5v72]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">XBROWSE</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">OF</span> ::<span style="color: #000000;">ODLG</span> AUTOSORT<br /><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">servico</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">pmestre</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">produto</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">barra</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">descricao</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">unidade</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">ncm</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">lucro</span>         <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 99999.99"</span><br />            ADD <span style="color: #0000ff;">TO</span> ::<span style="color: #000000;">oBrw</span> <span style="color: #00C800;">DATA</span> ::<span style="color: #000000;">oDb_prod</span>:<span style="color: #000000;">preco</span>         <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@E 999,999.999"</span><br /><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"TP"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">40</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"FAMILIA"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">70</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"PRODUTO"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">70</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"BARRAS"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_LEFT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_LEFT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">120</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"DESCRICAO"</span>+CRLF+<span style="color: #ff0000;">"PRODUTO"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_LEFT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_LEFT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">400</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"UN"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">40</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"NCM"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_CENTER<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">90</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"MARGEM"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_RIGHT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_RIGHT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">80</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">8</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">CHEADER</span>       := <span style="color: #ff0000;">"PREÇO"</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NDATASTRALIGN</span> := AL_RIGHT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NHEADSTRALIGN</span> := AL_RIGHT<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">NWIDTH</span>        := <span style="color: #000000;">90</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bClrHeader</span>    := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">ACOLS</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">9</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cOrder</span> <span style="color: #000000;">&#41;</span> ,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">248</span>,<span style="color: #000000;">195</span>,<span style="color: #000000;">34</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,<span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">240</span>,<span style="color: #000000;">240</span>,<span style="color: #000000;">240</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lRecordSelector</span>        := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lfooter</span>                := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lHScroll</span>               := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">lVScroll</span>               := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NHEADERLINES</span>           := <span style="color: #000000;">2</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NDATALINES</span>             := <span style="color: #000000;">1</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NFOOTERLINES</span>           := <span style="color: #000000;">1</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">l2007</span>                  := .F.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">nRowHeight</span>             := <span style="color: #000000;">24</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NMARQUEESTYLE</span>          := <span style="color: #000000;">4</span> <span style="color: #B900B9;">//MARQSTYLE_HIGHLROW</span><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">bClrSelFocus</span>           := <span style="color: #000000;">&#123;</span> ||<span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NCOLDIVIDERSTYLE</span>       := LINESTYLE_BLACK<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">NROWDIVIDERSTYLE</span>       := LINESTYLE_BLACK<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">LCOLDIVIDERCOMPLETE</span>    := .T.<br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BCLRSELFOCUS</span>           := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_WHITE, CLR_RED <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">BKEYDOWN</span>               := <span style="color: #000000;">&#123;</span>|NKEY| ::<span style="color: #000000;">KEYPRESS</span><span style="color: #000000;">&#40;</span> NKEY <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />           AEval<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">aCols</span>,<span style="color: #000000;">&#123;</span>|o| o:<span style="color: #000000;">bLClickFooter</span> := o:<span style="color: #000000;">bLClickHeader</span> := Build_CodeBlock_Order<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">oDb_prod</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><br /><br />           ::<span style="color: #000000;">oBrw</span>:<span style="color: #000000;">SetDolphin</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">oDb_prod</span> <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:4ree5v72]
CHANGE COLOR TExplorer FROM FWH AND NOT COLLAPSE
Greetings, I have searched and read in the forum and in the TExplorer class itself, and I can not change the colors of the class, I need to remove the color that comes by default or leave it transparent and change the color of the combs ... I do not see that DATA in the class, I also need to deactivate the COLLAPSE of the panleles ... and probe oExpBar: aPanels [1]: lCollapsed: = .f. / oExpBar: aPanels [1]: lCollapsed: = .t. and still the same ... the most I need is the color change of the tabs (TTaskPanel) and the color background of the ExplorerBar of FWH. I am also trying to put in the TTaskPanel a CALENDAR object and does not lengthen TTaskPanel so that the CALENDAR is complete ... I will try aPanel [1]: nBodyHeight: = n I do everything from code within LAYOUT. I hope some help, suggestion ... greetings ... thanks ... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
CHAR2EAN
AMIGOS, DONDE PUEDO CONSEGUIR CHAR2EAN??
CHARICON lista de codigos validos - para Cristobal ??
Hola a todos, una consulta a Cristobal; Cuales son los codigos disponibles para la clausula CHARICON en un menu , MENU 2015 MENUITEM "Agentes" SEPARATOR MENUITEM "Formas de Pago" CHARICON 57624 MENUITEM "Entidades Bancarias" ENDMENU He visto en los ejemplos que salen unos numeros como 57624 ,57621, etc. pero me gustaria saber que significa cada código y donde puedo estudiar mas sobre esto. Existe un .ch , pues no lo pude encontrar. Saludos, carito
CHARICON lista de codigos validos - para Cristobal ??
Hola Ejecuta este código y ya me dirás [code=fw:2257onbs]<div class="fw" id="{CB}" style="font-family: monospace;"><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;AllHSysBitmaps<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> AllHSysBitmaps<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> oBrw<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aHBmps &nbsp; := <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> aBmps &nbsp; &nbsp;:= <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> hBmp<br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> x<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">For</span> x = <span style="color: #000000;">32000</span> <span style="color: #0000ff;">to</span> <span style="color: #000000;">35799</span><br />&nbsp; &nbsp; &nbsp; &nbsp;hBmp := HSysBitmap<span style="color: #000000;">&#40;</span> x <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aHBmps, x <span style="color: #000000;">&#41;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span> aBmps, hBmp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">Next</span> x &nbsp; &nbsp; <br />&nbsp; &nbsp;<span style="color: #0000ff;">XBrowse</span><span style="color: #000000;">&#40;</span> aHBmps, <span style="color: #ff0000;">"Bitmaps System"</span>,, <span style="color: #000000;">&#123;</span> | o | PonBmps<span style="color: #000000;">&#40;</span> o, aBmps <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;AEval<span style="color: #000000;">&#40;</span> aBmps, <span style="color: #000000;">&#123;</span> | h | DeleteObject<span style="color: #000000;">&#40;</span> h <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> PonBmps<span style="color: #000000;">&#40;</span> o, aBmpH <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;o:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">AddBitmap</span><span style="color: #000000;">&#40;</span> aBmpH <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;o:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bBmpData</span> := <span style="color: #000000;">&#123;</span> || o:<span style="color: #000000;">nArrayAt</span> <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;">//----------------------------------------------------------------------------//</span><br />&nbsp;</div>[/code:2257onbs]
CHARICON lista de codigos validos - para Cristobal ??
Muchas gracias Cristobal, salen figuritas que no tenia idea. Tratare de utilizar algunas de ellas. Saludos, carito
CHARICON lista de codigos validos - para Cristobal ??
Buenas Sr. Cristobal Como esta??? Compile y ejecute su prg de los CharIcon y en el For Next lo aumente hast 80000 *For x = 32000 to 35799 For x = 32000 to 80000 hBmp := HSysBitmap( x ) if !Empty( hBmp ) AAdd( aHBmps, x ) AAdd( aBmps, hBmp ) endif Next x y sigue saliendo solo hasta los 35799 y en algunos ejemplo salen con números mas alto la otro pregunta es por que se descuadran cuando se le coloca o se usa el LogoMenu y no cuando no se l coloca MENU ; COLORLEFT CLR_BLACK,RGB(215, 215, 255) ; COLORRIGHT CLR_BLACK,CLR_WHITE ; LOGOMENU "\Imagenes\PNG\LogoMenu2.png" MENUITEM "&Nuevo" CHECKED MENUITEM "&Open" CHARICON "A" ITALIC MENUITEM "&1.- Item 1" RESOURCE "EXIT" //DISABLED MENUITEM "&2.- Item 2" CHARICON 58020 COLORRIGHT CLR_YELLOW MENUITEM "&3.- Item 3" CHARICON 57696 BOLD ITALIC MENUITEM "&4.- Item 4" CHARICON 57756 COLORRIGHT CLR_HRED MENUITEM "&5.- Item 5" CHARICON 57736 COLORRIGHT CLR_MAGENTA SEPARATOR MENUITEM "&Grabar como." RESOURCE "SAVE" [b:49snpikr]no se como insertar una imagen por aqui para que vea como se descuadran los CharIcon[/b:49snpikr] pero sale mas o meno asi LogoMenu v V Con LogoMenu Sin LogoMenu .-----------. .png Guardar RESOURCE "SAVE" //CharIconFile .png Guardar RESOURCE "SAVE" //CharIconFile . . A Abrir CHARICON "A" A Abrir CHARICON "A" . . bD Base de Datos CHARICON "BD" BD Base de Datos CHARICON "BD" . . / Salir CHECKED / Salir CHECKED . . -----------. No se si me explico, usted disculpe Muchas Gracias
CHARICON lista de codigos validos - para Cristobal ??
Hola, prueba este ejemplo y me comentas qué problemas o efectos estéticos no deseados encuentras [code=fw:l53xkxtn]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Autor:  Cristobal Navarro</span><br /><span style="color: #B900B9;">// Fecha:  01/01/2016</span><br /><span style="color: #B900B9;">// Pruebas de Menus</span><br /><span style="color: #B900B9;">//</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;">"wcolors.ch"</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><span style="color: #00C800;">static</span> oWnd<br /><span style="color: #00C800;">static</span> oMru1<br /><span style="color: #00C800;">static</span> oMru2<br /><span style="color: #00C800;">Static</span> cColorPan<br /><span style="color: #00C800;">Static</span> oFontMenu<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 />   <span style="color: #00C800;">local</span> oBar, oBar1, oBar2<br />   <span style="color: #00C800;">local</span> cTitle, x<br />   <span style="color: #00C800;">Local</span> cFont   := <span style="color: #ff0000;">"Segoe UI Symbol"</span> <span style="color: #B900B9;">// SemiBold"  //"Calibri"</span><br />   <span style="color: #00C800;">Local</span> cFontH  := <span style="color: #000000;">-14</span>  <br />   <span style="color: #00C800;">Local</span> aFonts<br /><br />   FW_SetUnicode<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br />   SetResDebug<span style="color: #000000;">&#40;</span> .T. <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">if</span> !IsWin8<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> .and. !IsWindows10<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      cFont   := <span style="color: #ff0000;">"Calibri"</span><br />   <span style="color: #00C800;">endif</span><br /><br />  <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFontMenu <span style="color: #0000ff;">NAME</span> cFont <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, cFontH WEIGHT <span style="color: #000000;">300</span><br /><br />  cTitle := <span style="color: #ff0000;">" Menus: "</span> + ;<br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span>, oFontMenu:<span style="color: #000000;">cFaceName</span>, <span style="color: #ff0000;">"Font not defined "</span> <span style="color: #000000;">&#41;</span> +;<br />      <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span>, Str<span style="color: #000000;">&#40;</span> oFontMenu:<span style="color: #000000;">nHeight</span> <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">" "</span> <span style="color: #000000;">&#41;</span><br /><br />  <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">3</span>, <span style="color: #000000;">6</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">20</span>, <span style="color: #000000;">70</span> <span style="color: #0000ff;">MDI</span> ;<br />      <span style="color: #0000ff;">TITLE</span> cTitle <span style="color: #0000ff;">MENU</span> BuildMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">COLOR</span> CLR_WHITE, RGB<span style="color: #000000;">&#40;</span> <span style="color: #000000;">116</span>, <span style="color: #000000;">149</span>, <span style="color: #000000;">193</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">//oWnd:SetFont( oFontMenu )</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br />   <br />   <span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> oFontMenu <span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">While</span> oFontMenu:<span style="color: #000000;">nCount</span> > <span style="color: #000000;">0</span><br />         oFontMenu:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">Enddo</span><br />   <span style="color: #00C800;">endif</span><br /><br />   <span style="color: #00C800;">if</span> File<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />      FErase<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"checkres.txt"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">endif</span><br />   CheckRes<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /><br /><span style="color: #00C800;">Function</span> BuildMenu<span style="color: #000000;">&#40;</span> oW <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">Local</span> oMenu<br />   <span style="color: #00C800;">Local</span> oMnu<br />   <span style="color: #00C800;">Local</span> oGraba<br />   <span style="color: #00C800;">Local</span> cPrompt := <span style="color: #ff0000;">"                              "</span><br /><br />   <span style="color: #00C800;">DEFAULT</span> oW    := oWnd<br /><br />   <span style="color: #0000ff;">MENU</span> oMenu COLORS MENUBAR <span style="color: #B900B9;">//FONT oFontMenu //HEIGHT 36</span><br /><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Archivos"</span> COLORMENU CLR_BLUE ITALIC<br />      <span style="color: #0000ff;">MENU</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Nuevo item Mru"</span> CHECKED<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Files  "</span> COLORRIGHT CLR_HBLUE<br />         <span style="color: #0000ff;">MENU</span><br />            <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Nuevo"</span> CHECK<br />            <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Open"</span>  CHARICON <span style="color: #ff0000;">"A"</span> ITALIC<br />            <span style="color: #0000ff;">SEPARATOR</span><br />            <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Nuevo proceso"</span> CHARICON <span style="color: #ff0000;">"P"</span> RIGHTCOLOR CLR_HRED BOLD<br />         <span style="color: #0000ff;">ENDMENU</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&New    "</span> CHARICON <span style="color: #000000;">57696</span> <br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Child  "</span> <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"new"</span> BOLD<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&New    "</span> DISABLED <br />         <span style="color: #0000ff;">SEPARATOR</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Salir"</span> <span style="color: #0000ff;">ACTION</span> oWnd:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> COLORRIGHT CLR_HRED BOLD ITALIC<br />      <span style="color: #0000ff;">ENDMENU</span><br /><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"E&ditar"</span> COLORMENU CLR_RED BOLD<br />      <span style="color: #0000ff;">MENU</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Nuevo"</span> CHECKED<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Open"</span>  CHARICON <span style="color: #ff0000;">"A"</span> ITALIC<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&1.- Item 1"</span>     <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"icon"</span>  DISABLED<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&2.- Item 2"</span>     CHARICON <span style="color: #000000;">58020</span> COLORRIGHT CLR_YELLOW<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&3.- Item 3"</span>     CHARICON <span style="color: #000000;">57696</span> BOLD ITALIC<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&4.- Item 4"</span>     CHARICON <span style="color: #000000;">57756</span> COLORRIGHT CLR_HRED<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&5.- Item 5"</span>     CHARICON <span style="color: #000000;">57736</span> COLORRIGHT CLR_MAGENTA<br />         <span style="color: #0000ff;">SEPARATOR</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Grabar como."</span> CHARICON <span style="color: #000000;">57605</span><br />      <span style="color: #0000ff;">ENDMENU</span><br /><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Buscar"</span> COLORMENU CLR_GREEN<br />      <span style="color: #0000ff;">MENU</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Nuevo"</span>  CHECKED<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Open"</span>   CHARICON <span style="color: #ff0000;">"A"</span><br />         <span style="color: #0000ff;">SEPARATOR</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Uno"</span>     <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"icon"</span>  DISABLED<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Dos"</span>     <span style="color: #0000ff;">WHEN</span> .F. CHARICON <span style="color: #000000;">58020</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"* SEPARATOR"</span> + CRLF + <span style="color: #ff0000;">"- Linea 2   "</span>      <span style="color: #0000ff;">SEPARATOR</span> COLORRIGHT CLR_HBLUE<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Tres"</span>    CHARICON <span style="color: #000000;">57696</span> COLORRIGHT CLR_GREEN<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Cuatro"</span>  CHARICON <span style="color: #000000;">57756</span> BOLD<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"Cinco"</span>   CHARICON <span style="color: #000000;">57736</span> BOLD ITALIC<br />         <span style="color: #0000ff;">SEPARATOR</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Grabar como."</span> CHARICON <span style="color: #000000;">57605</span><br />      <span style="color: #0000ff;">ENDMENU</span><br /><br />      <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Modificar"</span> COLORMENU CLR_BROWN  BOLD ITALIC<br />      <span style="color: #0000ff;">MENU</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Nuevo proceso"</span> CHARICON <span style="color: #ff0000;">"P"</span><br />         <span style="color: #0000ff;">SEPARATOR</span><br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Abrir"</span> + CRLF + <span style="color: #ff0000;">"Linea 2"</span>  CHARICON <span style="color: #ff0000;">"W"</span> COLORRIGHT CLR_BLUE BOLD<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Nuevo"</span>         CHECKED  DISABLED<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"SEPARATOR"</span> + CRLF + <span style="color: #ff0000;">"Linea 2"</span>      <span style="color: #0000ff;">SEPARATOR</span> BOLD ITALIC COLORRIGHT CLR_HRED<br />         <span style="color: #0000ff;">MENUITEM</span> <span style="color: #ff0000;">"&Grabar como."</span>  <span style="color: #0000ff;">RESOURCE</span> <span style="color: #ff0000;">"icon"</span><br />      <span style="color: #0000ff;">ENDMENU</span><br /><br />      <span style="color: #B900B9;">//oMenu:AddEdit()</span><br />      <span style="color: #B900B9;">//oMenu:AddMdi()</span><br />      oMenu:<span style="color: #000000;">AddFile</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>      <br />      oMenu:<span style="color: #000000;">AddHelp</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"FiveWin Menus"</span>, <span style="color: #ff0000;">"FiveTech 1993-2015"</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">ENDMENU</span><br /><br /><span style="color: #00C800;">Return</span> oMenu<br /><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------//</span><br /> </div>[/code:l53xkxtn] [quote:l53xkxtn] Para subir una imagen al foro es sencillo: - Copias tu pantalla y la llevas a cualquier programa de imagenes: Paint, Paint.Net, etc y la grabas en el formato que desees - Usas una web de alojamiento de imagenes. Yo uso: [url:l53xkxtn]http&#58;//postimage&#46;org/[/url:l53xkxtn] - Cuando la hayas subido, baja por la página y te aparece "Hotlink for forum", o algo asi. Copia el link - Pega el link obtenido en el mensaje que estés creando. [/quote:l53xkxtn]
CHARICON lista de codigos validos - para Cristobal ??
[url:1lb0wvdo]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=6&t=36481[/url:1lb0wvdo] Saludos.
CHARICON lista de codigos validos - para Cristobal ??
Buenas Muchas gracias, voy a probar con su menu para ver si sigue descuadrando los .ico o .bmp con los charicon cuando se coloca el logomenu y luego le comento y con respecto a esto??? y me disculpa la molestia por favor *** Compile y ejecute su prg de los CharIcon y en el For Next lo aumente hast 80000 *For x = 32000 to 35799 For x = 32000 to 80000 hBmp := HSysBitmap( x ) f !Empty( hBmp ) AAdd( aHBmps, x ) AAdd( aBmps, hBmp ) endif Next x y sigue saliendo solo hasta los 35799 y en algunos ejemplo salen con números mas alto ***
CHARICON lista de codigos validos - para Cristobal ??
Hola, antes de nada, ninguna molestia, puedes preguntar y plantear lo que consideres Bien, dime la version de Fw que estás utilizando para saber si cualquier explicación o código que se te pueda aportar es compatible con tu versión Cuando hayas probado el código con el menú que te he propuesto, podemos hacer las conclusiones adecuadas Y, para finalizar: No he probado los HSYSBITMAPS en sistemas operativos al margen de windows 8 y 10, por lo que si con esa function tú has visto en algún ejemplo que aparecen bmps indicándoles un número más alto, me interesa a mí también verlo, evidentemente. Es posible que confundas esos "números más altos" con los glyphs, propios de sistemas operativos Win 8/10 para los que se utilizan código hexadecimales, aunque suelo usar su conversión a decimal, que aprovechan los tipos de letra incluídos en estos sistemas: segoe ui symbol, Segoe MDL2 Assets y otros, que también son soportados tanto para menús, botones, etc. <!-- m --><a class="postlink" href="https://docs.microsoft.com/es-es/windows/apps/design/style/segoe-ui-symbol-font">https://docs.microsoft.com/es-es/window ... ymbol-font</a><!-- m -->
CHARICON lista de codigos validos - para Cristobal ??
Muchas gracias amigo Cristobal voy a tratar de nuevo de enviar una imgen y me disculpas si ya hay ahi algo contestado por el foro, mis respuesta son tardias por a falta de internet en mi zona [img:22nm018v]https&#58;//i&#46;postimg&#46;cc/43VbX5j4/Dudas&#46;jpg[/img:22nm018v] Cuando vuelva a tener WiFi es que podre ver las posibles ayuda del foro Muchas gacias a todo
CHARICON lista de codigos validos - para Cristobal ??
// Prueba de REDEFINE GET con array // 12/2021 // Fridgar #include "Fivewin.ch" static oDlg, oDbf, aCamposName //----------------------------------------------------------------------------// function MiPrueba() local oFont, oSay local oBtnPrev, oBtnNext, oBtnExit, oBtn2 local cTypes := "CNLDM" SET _3DLOOK ON *SELECT 1 USE C:\xPruebas\Dbf\Probar2 ALIAS xProbar2 select xProbar2 DATABASE oDbf oDbf:GoTop() * Estos son los campos del .DBF de prueba y el .RC es un formulario sencillo de prueba hecho con PelleC * Una Prueba aCamposName := {{oDbf:Cedula, 110, "Número de la cédula de identidad"}, ; {oDbf:Nombres, 120, "Nombres de la persona"}, ; {oDbf:Entero, 130, "Número entero"}, ; {oDbf:Moneda, 140, "Número con decimales"}, ; {oDbf:Fecha, 150, "Fecha"}, ; {oDbf:Fecha_Hora, 160, "Fecha y hora"}, ; {oDbf:L1, 170, "Campo lógico L1"}, ; {oDbf:L2, 180, "Campo lógico L2"}, {oDbf:Memo, 190, "Campo Memo"} } */ /* Otra Prueba aCamposName := {{"Cedula", 110, "Número de la cédula de identidad"}, ; {"Nombres", 120, "Nombres de la persona"}, ; {"Entero", 130, "Número entero"}, ; {"Moneda", 140, "Número con decimales"}, ; {"Fecha", 150, "Fecha"}, ; {"Fecha_Hora", 160, "Fecha y hora"}, ; {"L1", 170, "Campo lógico L1"}, ; {"L2", 180, "Campo lógico L2"} {oDbf:Memo, 190, "Campo Memo"} } */ define font oFont name "times new roman" size 11,20 DEFINE DIALOG oDlg RESOURCE "PROBAR2" TITLE "Programa de practica con tablas .DBF" oDlg:lHelpIcon:=.f. REDEFINE SAY oSay ID 4004 OF oDlg // Para ver el numero de registro REDEFINE BUTTON oBtnPrev ID 4002 OF oDlg ; ACTION ( oDbf:Skip( -1 ), oSay:SetText("Rec = "+str(recno())), oDlg:UpDate()) REDEFINE BUTTON oBtnNext ID 4003 OF oDlg ; ACTION ( oDbf:Skip(), oSay:SetText("Rec = "+str(recno())), oDlg:UpDate()) REDEFINE BUTTON oBtnExit Id 4001 of oDlg ; // aContols 9 Prompt "&Salir" ; ACTION (oDlg:End()) ACTIVATE DIALOG oDlg on init (MisGEts( oDlg, oDbf, aCamposName )) // Una prueba *ACTIVATE DIALOG oDlg on init (MisGEts( )) // Otra prueba close all return nil //----------------------------------------------------------------------------// *function MisGEts( ) // Otra prueba function MisGEts( oDlg, oDbf, aCamposName ) // Una prueba Local i Local oMsg1, oGets:={} local IDGet := 100 // temporal DEFINE MSGBAR oMsg1 OF oDlg 2007 /* *REDEFINE GET oDbf:Apellidos ID 100 OF oDlg MESSAGE "Apellidos de la persona" UpDate * Asi funciona bien pero me gusta como sigue en las lineas siguiente * Asi es como deberia de funcionar para no se por no muestra el contenido de los campos del .DBF *i:=0 *do while i <= len(aCamposName) -1 * i++ * REDEFINE GET aCamposName[i,1] ID aCamposName[i,2] OF oDlg MESSAGE aCamposName[i,3] UPDATE //Error BASE/1132 Bound error: array access * Falla: Mustra el .RC pero No muestra la información de los campos en el Formulario *Enddo */ i:=0 do while i <= len(aCamposName) -1 * Una Prueba *IDGet = IDGet + 10 *a = field(i) * Directo con los campos del .DBF ( a = Field( i ) ) *REDEFINE GET &a ID IDGet OF oDlg MESSAGE aCamposName[i,3] UPDATE * Falla: Solo funciona con campo de caracteres, pero asi no deberia de ser * Otra Prueba * Directo con los campos del .DBF (oDbf:Campo) *? aCamposName[i,1] // aCamposName[i,1]=Al valor o contenido del campo Ejm. Ada *REDEFINE GET aCamposName[i,1] ID aCamposName[i,2] OF oDlg MESSAGE aCamposName[i,3] UPDATE //Error BASE/1132 Bound error: array access * Falla: Mustra el .RC pero No muestra la información de los campos en el Formulario * Otra Prueba * Colocando los nombre de los campos del .DBF entre comillas ("cedula") *a := xProbar2->( Field( FieldPos( aCamposName[i,1] ) ) ) *REDEFINE GET a ID aCamposName[i,2] OF oDlg MESSAGE aCamposName[i,3] UPDATE // Nada *REDEFINE GET &a ID aCamposName[i,2] OF oDlg MESSAGE aCamposName[i,3] UPDATE // Nada * Falla: No muestra la información en el Formulario * He realizados otras pruebas y nada aun, no se que estoy heciendo mal o que no estoy haciendo * Sin alguien ya lo hizo y me puede ayudar en esto se lo agradeceria * Por supuesto tomando en cuenta los diferentes tipos de datos de la tabla .DBF * NO se trabaja todavia que SQL por eso uso .DBF * Creo que me explique bien, pero igual pido disculpa si no lo hice * MUCHAS GRACIAS A TODOS enddo oDbf:GoTop() oDbf:Load() // reload again fields info from the DBF oDlg:Update() // we repaint the controls contains return nil //----------------------------------------------------------------------------//
CHARTFX - FWH
Quizas alguien pueda orientarme: Tengo un programa que usa chart2fx.vbx pero en la version de Fivewin para Clipper, el problema es que ahora necesito compilarlo con Harbour y FwH 2.4, el problema es que no puedo, alguien tiene un ejemplo de usar chartfx con harbour ?
CHARTFX - FWH
El tiene una clase muy buena para el acceso a ChartFX en 32 bits. Saludos!!
CHARTFX - FWH
Necesitarias el ChartFX para 32 bits.... Vickthor hizo una clase muy buena para utilizarlos peroooooo..... Sucede que solo funciona con la version de demo, con la version comercial falla, y la gente de Software FX dice que no tiene idea de que pasa y te forzan a comprar una cosa llamada ChartFX Server que cuesta un monton de dinero mas.
CHARTFX - FWH
[quote="Miguel_laffont":3sgcm3tq]Quizas alguien pueda orientarme: Tengo un programa que usa chart2fx.vbx pero en la version de Fivewin para Clipper, el problema es que ahora necesito compilarlo con Harbour y FwH 2.4, el problema es que no puedo, alguien tiene un ejemplo de usar chartfx con harbour ?[/quote:3sgcm3tq] Hello I can sale 32bit ChartFx.You want LIB or full source code version? Regards, Richard
CHARTFX2 Como obtenerla?
Esa es mi pregunta....... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
CHARTFX2 Como obtenerla?
Es un control de paga que puedes obtener de: <!-- w --><a class="postlink" href="http://www.softwarefx.com">www.softwarefx.com</a><!-- w -->
CHARTFX2 Como obtenerla?
Gracias René por contestar. No sabía que era tan costosa <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> Por ahora no es para mí. Un abrazo
CHAT APP
Hello friends, I'm sure you remember the joint project in the SLACK group to develop a chat software. Today I have extended the chat software, which is in the sample folder of mod harbour, with the Tinymce text editor for testing. This could work well. Here you can test the software: [url:2deetd5q]https&#58;//winhotel&#46;org/modchat/chat&#46;prg[/url:2deetd5q] Best regards, Otto
CHAT APP
Dear Otto, very good work! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
CHAT capability
I can place a button in my program that allows a client to start a chat with "Tech Support" by going to my website's Chat page. I'm curious if anyone has worked with AIM's SDK and created a direct chat capability. Apparently the free SDK will allow you to create a custom control inside your program to activate a chat. The examples are all in C code ... not exactly my skill area ... I'm just curious if anyone has done a CHAT system yet ...
CHAT capability
Someone made a chat ( with class) see <!-- w --><a class="postlink" href="http://www.fivewin.info">www.fivewin.info</a><!-- w -->
CHAT capability
I don't see anything there. The work from AOL is new ... and it would make sense to use since it is 1) working, 2) free ...
CHAT capability
i can found for you a simply web chat
CHAT capability
There are many web chat systems available. I have several on my own host. However, they are designed for use on a website. That is no problem if I want to limit my chats that way. Also they all require a client running on my computer to monitor for chats. I already have MS IM and AOL IM running. I intend to provide a chat button within an application. Right now, I have a button that starts a web page where an AOL chat window appears and connects directly to me. AOL actually has an SDK that I can create my own chat client within my software. That bypasses my website which removes a step. I figured I would implement that, but why recreate the process if someone has already done it ? It seems like a great way to make support available to my clients when I'm on the computer. I've used it from the website, but this is just one step easier. Many of my clients will let a problem exist rather then take time to call. I can't fix problems if no one lets me know about them ... so I want them to communicate. Tim
CHAT capability
Tim, for create it you must have a server open you must user server chat program run on it with a same IP you must give to customer CLIENT CHAT PROGRAM and this program must be run to same IP of the server chat program. Only this methos run ok you must found a chat source on old web sites's fivewin but it use ip and you must use the same ip to run it <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=581">http://www.fivewin.com.br/exibedicas.asp?id=581</a><!-- m --> <!-- m --><a class="postlink" href="http://www.fivewin.com.br/exibedicas.asp?id=432">http://www.fivewin.com.br/exibedicas.asp?id=432</a><!-- m --> If YOU SEARCH YOU FOUND ANYTHING YOU WANT !!!
CHAT capability
Silvio, First, I do search .. a lot. In fact, with FWH, my first search is always on this forum. Normally I would agree with you about the IP issue and the server. However, if you install AIM ( AOL Instant Messenger ) on your computer, you go through AOL's server. Since this program is always running on my computer, it works out well for me. Its pretty transparent in the background, doesn't use a lot of resources, and pops up instantly when someone wants to chat. AOL-AIM now has a SDK ( software development kit ) that allows you to create a client rather then use theirs, or you can actually add it to your application. Then, when someone wants to chat, rather then go to a website or have AIM installed, they can click a button in your application and be connected to a specified other user ( my tech support AIM account ). I could just push my clients to all install AIM, but this eliminates that step. Anyway, AOL is the IP server that does the negotiation for the connection, and it responds to the request with a connection, my custom away message, or a not-online message. The SDK and license, like AIM, is free. The only downside is that I don't program in C so translating it to xHarbour/FWH would be more of an effort. So, back to my original inquiry, I wondered if someone has already done this ... Tim
CHECK SUM
Hola! Alguien podría indicarme como calculo el CHECK SUM? En espera de sus respuestas Laura E. Hernández H.
CHECK SUM
Hola, puedes utilizar la funcion vTotal := nStrCrc(vCampo) ; donde nStrCrc, recibe una cadena de caracteres, que puede ser la suma de todos los campos de un registro, convirtiendo los numeros, las fechas y campos logicos en caracteres, luego esta funcion propia de FW, te devuelve un numero unico, el cual puedes utilizar opara comparar luego, es decir, si en la primera instancia, la cadena te devuelve un numero, si luego esa cadena es modificada, el numero resultante sera diferente al primero. Ej. ........... Function OkChkSum(oModo,lAll) local vRet := .f., vCount := FCount(), vFields := {}, oLbx, vVar local vChkSum := "" DEFAULT oModo := 0 DEFAULT lAll := .f. vFields := LeeRegistro(vFields,vCount) // cargamos el registro al array vfields vChkSum := ChkSum(vFields) If Empty(_Field->codv) oModo := 1 EndIf If oModo == 0 If _Field->codv <> vChkSum If !lAll If MsgNoYes("Este Registro ha sido Alterado fuera de Sistema,,,","Corregir Balance?") If Rec_Lock(10) _Field->codv := vChkSum DbUnLock() EndIf EndIf EndIf vRet := .f. EndIf Else If Rec_Lock(10) _Field->codv := vChkSum DbUnLock() vRet := .t. EndIf EndIf Return(vRet) //----------------------------------------------------------------------------- Function ChkSum(vFields) local vCont,vLen := Len(vFields) - 1 local vTotal,vCampo := "",lValor vTotal := 0 For vCont := 1 To vLen If ValType(vFields[vCont]) = "N" vCampo := vCampo + AllTrim(Str(vFields[vCont])) EndIf If ValType(vFields[vCont]) = "C" vCampo := vCampo + AllTrim(vFields[vCont]) EndIf If ValType(vFields[vCont]) = "D" vCampo := vCampo + DtoS(vFields[vCont]) EndIf If ValType(vFields[vCont]) = "L" lValor := vFields[vCont] vCampo := vCampo + If(&lValor,"t","f") EndIf Next vCont vTotal := [b:8zacsz6s]nStrCrc[/b:8zacsz6s](vCampo) Return(vTotal) //----------------------------------------------------------------------------- Function OkChkSumAll() local vRecno := Recno(), vCampo, lOk CursorWait() DbGoTop() If LastRec() = 0 Return(Nil) EndIf While !Eof() If Recno() <> 0 OkChkSum(0,.t.) EndIf DbSkip() EndDo DDbGoTo(vRecno) Return(Nil) //----------------------------------------------------------------------------- Salu2 Willi........
CHECK SUM
Gracias Willi! Voy a hacer la prueba. Laura E. Hernández <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
CHECKBOX EM READONLY
Como colocar CHECKBOX em readonly
CHECKBOX EM READONLY
[quote="rasptty":bbr046od]Como colocar CHECKBOX em readonly[/quote:bbr046od]REDEFINE CHECKBOX oCheck ID 101 OF oDlgoCheck:disable()
CHECKBOX EM READONLY
You have to call to Disable(), as William has explained you, but do it from the ON INIT clause of the dialog, as from that moment the control has a valid Windows handle: [code:34twi3y8] REDEFINE CHECKBOX oCheck ID 101 OF oDlg ACTIVATE DIALOG oDlg ; ON INIT oCheck&#58;disable&#40;&#41; [/code:34twi3y8]
CHECKBOX EN TSBROWSE 7.1
Cual es la clausula correcta para presentar un campo tipo checkbox en una columna editable. Porque hasta la version anterior no tenia ningun problema pero con esta versión 7.1 tengo un problema de error. Por favor les doy gracias por su ayuda.
CHECKBOX EN TSBROWSE 7.1
por lo general el error es que estas usando un tsbrowse.ch anterior, debes verificar si estas usando el .ch que viene con la version 7 salu2 carlos vargas
CHECKBOX EN TSBROWSE 7.1
[quote="carlos vargas":1lt79t0s]por lo general el error es que estas usando un tsbrowse.ch anterior, debes verificar si estas usando el .ch que viene con la version 7 salu2 carlos vargas[/quote:1lt79t0s] Bueno el archivo include es el correcto, no entiendo cual puede ser el problema
CHECKBOX EN TSBROWSE 7.1
Hola Antonio, Puedes mandar el código de como defines la columna del checkbox. En la versión 7 cambia con respecto a las anteriores Por ejemlo: [code:2ci61210] ADD COLUMN TO oBrw&#91; 4 &#93;; HEADER "Married" ; SIZE 25 PIXELS ; DATA FieldWblock&#40; "Married", Select&#40;&#41; &#41; ; COLORS CLR_BLACK,CLR_NBLUE ; 3DLOOK TRUE CHECKBOX ; // Editing with Check Box ALIGN DT_CENTER, DT_VERT ; // Cells centered, Header Vertical EDITABLE MOVE DT_MOVE_RIGHT[/code:2ci61210]
CHECKBOX MODIFY
I can: REDEFINE [b:1rovn6xe]GET [/b:1rovn6xe]oDBF:Sometext ID 4066 OF oDLG UPDATE [b:1rovn6xe]NO MODIFY[/b:1rovn6xe] but, I can't REDEFINE [b:1rovn6xe]CHECKBOX [/b:1rovn6xe]oDBF:IsaGift ID 4067 OF oDLG UPDATE [b:1rovn6xe]NO MODIFY[/b:1rovn6xe] (There is no 'NO MODIFY' clause to make the checkbox 'readonly'.) Is there a way around this?
CHECKBOX MODIFY
Local oCheck REDEFINE CHECKBOX oCheck VAR oDBF:IsaGift ; ID 4067 OF oDLG UPDATE oCheck:disable()
CHECKBOX MODIFY
Thanks Gale.
CHECKBOX MODIFY
Or [code:25jjefd4]REDEFINE CHECKBOX oCheck VAR oDBF&#58;IsaGift ; ID 4067 OF oDLG UPDATE WHEN &#46;F&#46;[/code:25jjefd4] EMG