messages
listlengths 1
1
| topic
stringlengths 2
60
|
---|---|
[
{
"date": "2011-01-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Adolfo\":29ir9401]Fivewinners.\n\nAl inicio de nuestro sistema ( ojala al inicio de la Function MAIN() )\n[code=fw:29ir9401]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">RPrevUserBtns<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">{</span>|oPreview,oBar| ReportExtend<span style=\"color: #000000;\">(</span>oPreview,oBar<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span></div>[/code:29ir9401]\n\nCrear la funcion ReporExtend().. o cualquier otro nombre que le quieran poner\n[/quote:29ir9401]\n\n¿RPrevUserBtns es un método nuevo de la clase Preview?",
"time": "12:23",
"topic": "APORTE. Exportar a PDF",
"username": "Manuel Valdenebro"
}
] |
APORTE. Exportar a PDF
|
[
{
"date": "2011-01-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel...\n\nEsta presente desde FWH9.05 (Mayo 2009)\n\nSaludos",
"time": "12:42",
"topic": "APORTE. Exportar a PDF",
"username": "Adolfo"
}
] |
APORTE. Exportar a PDF
|
[
{
"date": "2009-08-28",
"forum": "FiveWin para CA-Clipper",
"text": "amigos de lo forum , estoy colocando un aporte a lo Forum. Se trata de la function DISPLAY.PRG version 2.0 y faz o redimensionar automaticamente a la resolucion corrente de la pantalla, o seja, sus pantallas visualizarao sempre iguales em qualquer resolucion ! Y las fuentes de los controles se ajustam automaticamente, no precisando se importar com los tamanos de las fuentes !\n\nLo exemplo TELA.EXE foi inicialmente desenado en resolucion de 800 X 600 y lo dialog aparecera sempre igual en qualquer resolucion !!!! \n\nEste projecto teve inicio con la function AutoResiz() de nostro hermano FIVEWIDI (muchas gracias Fivewidi por la grande idea inicial ) publicada aqui neste forum .\n\nlink para download:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br/exibedicas.asp?id=1009\">http://www.fivewin.com.br/exibedicas.asp?id=1009</a><!-- m -->\n\n\nPara utilizar la funcion deve-se coloca-la en lo evento ON INIT:\n\nActivate Dialog Odlg ON INIT display(odlg,nresolution)\n\n- nResolution : numero que indica qual resolucion las pam]ntallas foram desenhadas inicialmente , y podem ter los seguintes valores:\n1 = 640 X 480\n2 = 800 X 600\n3 = 1024 X 768\n4 = 1152 X 864\n5 = 1280 X 800\n6 = 1280 X 1024\n7 = 1600 X 1200\n8 = 768 X 1024\n9 = 1440 x 900 \n10 = 1280 x 768 \n11 = 1280 x 720 \n\nControles implementados ate agora: (redimensionam correctamente !)\n\n- Say\n- Get\n- Group\n- Radio\n- Checkbox\n- ComboBox\n- Xbrowse\n- Listbox\n- Wbrowse\n- Timage\n- Bitmaps\n- BarButton\n- Trees\n- Folders\n- BtnBmp\n- Tbutton\n- Ssay\n- Dsay\n- SBrowse\n- DbCombo\n- SayRef\n- TTabs\n- Tpages\n\n\nEspero que les sejam muy util, asi como esta siendo para mi.\n\nMuchas Gracias a Antonio Linares e Daniel Garcia (Gil) que bastante mi ajudaram en los processos de redimension de los controles. Y muchas, muchas gracias a FiveWidi !\n\nAguardo los coments de usteds sobre la funcion\n\nMuchas Gracias\n\nSaludos\n\n\nWilliam Adami \nPouso Alegre - Brasil",
"time": "01:12",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-08-28",
"forum": "FiveWin para CA-Clipper",
"text": "Perdon mi amigos, yo creo que publique en lugar errado ! Isto seria a lo forum XHARBOUR.\n\nMil disculpas\n\nGracias\n\nWilliam",
"time": "02:48",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2021-04-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[url=https://ibb.co/TTH6LP0:ah7lvj56][img:ah7lvj56]https://i.ibb.co/LPCm59g/vista.png[/img:ah7lvj56][/url:ah7lvj56]\n\nQuisiera aportar este abm de tipo ficha como solíamos usar hace años, pero en lugar de usar dbfs y objetos database[b:ah7lvj56] utiliza una tabla mariadb y utiliza rowset con FWHmariadb NATIVO DE FWH.[/b:ah7lvj56]\n\nEn la carpeta Documentos están las instrucciones para usarlos y un main.prg que permite probarlo\n\nEn la carpeta SQL está una archivo sql con el cual pueden cargar una base de datos con la tabla para poder probarlo.\n\nEn fin todo lo necesario se adjunta, solo hay que compilar los fuentes.\n\nUn abrazo y la gratitud a quienes pacientemente contestaron mis preguntas, [b:ah7lvj56]este abm no pretende ser una maravilla pero si un ejemplo muy eficaz, sencillo y potente de como usar rowsets y fwhmariadb.[/b:ah7lvj56]\n\nEn este link hallaran todo lo necesario.\n\n<!-- m --><a class=\"postlink\" href=\"https://mega.nz/file/eZxGnT4Q#WUDiybfh3TZSEvPANGPaYO0RMuyldiihSn3o38DI3qc\">https://mega.nz/file/eZxGnT4Q#WUDiybfh3 ... n3o38DI3qc</a><!-- m -->",
"time": "19:56",
"topic": "APORTE: ABM con FWHMariadb NATIVO (Rowsets)",
"username": "jose_murugosa"
}
] |
APORTE: ABM con FWHMariadb NATIVO (Rowsets)
|
[
{
"date": "2021-04-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola,\n\nGracias por tu aporte\n\nMe podrias pasar tu archivo xedit.cfg para tratar de compilarlo?",
"time": "20:23",
"topic": "APORTE: ABM con FWHMariadb NATIVO (Rowsets)",
"username": "Compuin"
}
] |
APORTE: ABM con FWHMariadb NATIVO (Rowsets)
|
[
{
"date": "2021-04-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Aquí va.\n\n<!-- m --><a class=\"postlink\" href=\"https://mega.nz/file/PMgEBBQC#tsdFmd6i2oOUUvGw5Ig-sQHZMDEfH9Rc4rQGfzM1o4I\">https://mega.nz/file/PMgEBBQC#tsdFmd6i2 ... rQGfzM1o4I</a><!-- m -->",
"time": "11:01",
"topic": "APORTE: ABM con FWHMariadb NATIVO (Rowsets)",
"username": "jose_murugosa"
}
] |
APORTE: ABM con FWHMariadb NATIVO (Rowsets)
|
[
{
"date": "2021-04-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Muchisimas gracias!\n\nVa genial!",
"time": "13:16",
"topic": "APORTE: ABM con FWHMariadb NATIVO (Rowsets)",
"username": "Compuin"
}
] |
APORTE: ABM con FWHMariadb NATIVO (Rowsets)
|
[
{
"date": "2021-04-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Nueva versión\n\n*Se muestra el ordinal del recordset y el Id arriba (así se puede hacer coincidir el go to con la fila del rowset\n*debajo de la folder se ve el numero ordinal y la cantidad real de registros en el rowset\n\n<!-- m --><a class=\"postlink\" href=\"https://mega.nz/file/CUgUiLrb#e8YGidFjKUu4VHM_Quhnds8SoORa9VRgbkS5Hzwm4PA\">https://mega.nz/file/CUgUiLrb#e8YGidFjK ... kS5Hzwm4PA</a><!-- m -->\n\n\nEn breve irán las búsquedas.",
"time": "14:25",
"topic": "APORTE: ABM con FWHMariadb NATIVO (Rowsets)",
"username": "jose_murugosa"
}
] |
APORTE: ABM con FWHMariadb NATIVO (Rowsets)
|
[
{
"date": "2021-04-23",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias tocayo por tus aportes.\n\nEs importantisimo para novatos como yo. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nSaludos.\n\nJose.",
"time": "12:51",
"topic": "APORTE: ABM con FWHMariadb NATIVO (Rowsets)",
"username": "jvtecheto"
}
] |
APORTE: ABM con FWHMariadb NATIVO (Rowsets)
|
[
{
"date": "2021-04-23",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"jvtecheto\":1m7qgg2g]Gracias tocayo por tus aportes.\n\nEs importantisimo para novatos como yo. <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \n\nSaludos.\n\nJose.[/quote:1m7qgg2g]\n\n\nEspero que te sea de ayuda, puedes estar pendiente porque habrá una actualización mas con las búsquedas, las cuales son fundamentales.\n\nGracias por tu comentario.",
"time": "17:12",
"topic": "APORTE: ABM con FWHMariadb NATIVO (Rowsets)",
"username": "jose_murugosa"
}
] |
APORTE: ABM con FWHMariadb NATIVO (Rowsets)
|
[
{
"date": "2021-04-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Versión Final.\n\n***Se agrega búsqueda múltiple\n\nDescargar desde:\n<!-- m --><a class=\"postlink\" href=\"https://mega.nz/file/nERU3bRD#mvPE9OFvdd6-3kRIXSH4zU8F-O6rXpl6T2DVgHfqPVY\">https://mega.nz/file/nERU3bRD#mvPE9OFvd ... 2DVgHfqPVY</a><!-- m -->",
"time": "14:42",
"topic": "APORTE: ABM con FWHMariadb NATIVO (Rowsets)",
"username": "jose_murugosa"
}
] |
APORTE: ABM con FWHMariadb NATIVO (Rowsets)
|
[
{
"date": "2009-08-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigos de lo forum , estoy colocando un aporte a lo Forum. Se trata de la function DISPLAY.PRG version 2.0 y faz o redimensionar automaticamente a la resolucion corrente de la pantalla, o seja, sus pantallas visualizarao sempre iguales em qualquer resolucion ! Y las fuentes de los controles se ajustam automaticamente, no precisando se importar com los tamanos de las fuentes !\n\nLo exemplo TELA.EXE foi inicialmente desenado en resolucion de 800 X 600 y lo dialog aparecera sempre igual en qualquer resolucion !!!! \n\nEste projecto teve inicio con la function AutoResiz() de nostro hermano FIVEWIDI (muchas gracias Fivewidi por la grande idea inicial ) publicada aqui neste forum .\n\nlink para download:\n\n<!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br/exibedicas.asp?id=1009\">http://www.fivewin.com.br/exibedicas.asp?id=1009</a><!-- m -->\n\n\nPara utilizar la funcion deve-se coloca-la en lo evento ON INIT:\n\nActivate Dialog Odlg ON INIT display(odlg,nresolution)\n\n- nResolution : numero que indica qual resolucion las pam]ntallas foram desenhadas inicialmente , y podem ter los seguintes valores:\n1 = 640 X 480\n2 = 800 X 600\n3 = 1024 X 768\n4 = 1152 X 864\n5 = 1280 X 800\n6 = 1280 X 1024\n7 = 1600 X 1200\n8 = 768 X 1024\n9 = 1440 x 900 \n10 = 1280 x 768 \n11 = 1280 x 720 \n\nControles implementados ate agora: (redimensionam correctamente !)\n\n- Say\n- Get\n- Group\n- Radio\n- Checkbox\n- ComboBox\n- Xbrowse\n- Listbox\n- Wbrowse\n- Timage\n- Bitmaps\n- BarButton\n- Trees\n- Folders\n- BtnBmp\n- Tbutton\n- Ssay\n- Dsay\n- SBrowse\n- DbCombo\n- SayRef\n- TTabs\n- Tpages\n\n\nEspero que les sejam muy util, asi como esta siendo para mi.\n\nMuchas Gracias a Antonio Linares e Daniel Garcia (Gil) que bastante mi ajudaram en los processos de redimension de los controles. Y muchas, muchas gracias a FiveWidi !\n\nAguardo los coments de usteds sobre la funcion\n\nMuchas Gracias\n\nSaludos\n\nWilliam Adami\n\nPouso Alegre - MG -Brasil",
"time": "02:45",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-08-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "EXCELENTE!!!!\nSalu2",
"time": "03:53",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "Willi Quintana"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-08-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "William,\n\ngracias! <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "07:13",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "Antonio Linares"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-08-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Yo gostaria de pedir a los colegas do Forum que ao acrescentarem otros controles en la dicta function que tambien publique en lo forum para todos.\n\nGracias y perdon por escrever no muy bien lo Espanhol ....\n\nSalu2\n\n\nWilliam Adami",
"time": "14:28",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-08-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias William,\n\nMe alegro mucho de que te haya sido útil.\n\nUn Saludo\nCarlos G.",
"time": "22:14",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "FiveWiDi"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-08-31",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias, Hace tiempo que necesitaba algo como esto, Mi problema es que no me trabaja??\n <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->",
"time": "22:04",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "ADBLANCO"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-08-31",
"forum": "FiveWin para Harbour/xHarbour",
"text": "AdBlanco, disculpa si no compreendo corretamente, non te estás funcionando la funcion ? \n\n\nWilliam",
"time": "22:19",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-01",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Que bien <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nEsto si es algo muy bueno <!-- s:shock: --><img src=\"{SMILIES_PATH}/icon_eek.gif\" alt=\":shock:\" title=\"Shocked\" /><!-- s:shock: --> \n\nMuchas gracias <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: --> \n\nSaluditos \n\nAida",
"time": "05:07",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "AIDA"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-01",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Si Wiliam, Por alguna razón me da una serie de errores a la hora de compilar.\nPuede ser por la versión de Xharbour y/o Fw que utilizo, total que cuando logré que compilara\nno hace efecto alguno.",
"time": "15:02",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "ADBLANCO"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-01",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola Aida! <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->",
"time": "15:03",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "ADBLANCO"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-01",
"forum": "FiveWin para Harbour/xHarbour",
"text": "o que no compila, lo TELA.PRG o la DISPLAY.PRG ? Usted deves Testar solamente la DISPLAY.PRG juntamente con uno Dialog que USTED criou. Existe varias pessoas que testaram la funcion y no apresenta errors, independente de la version de FW. \nVerfique los #include que no utilizar en su PRG e debes comenta-lo con // \n\nverfique o que usted estas fazendo errado\n\nWilliam",
"time": "15:14",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "la display no me compila me arroja\n\nAmbiguous reference: 'STRETCHCOL_LAST'",
"time": "21:49",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "ADBLANCO"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "ok, lo problema es con lo XBROWSE, enton su version de FWH no es compatible.\n\nPara corrigir , en la DISPLAY.PRG debes quitar lo #Include \"XBROWSE.CH\" \n\ny quitar la linea que chama a 'STRETCHCOL_LAST' \n\nRetirando estas lineas , la DISPLAY.PRG hay que compilar y funcionar con su FWH \n\n\nPlease, verifique y habla-me si funciona\n\n\nWilliam",
"time": "22:32",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Por alguna extraña razón no me trabaja, Me explico, ya compila, pero no surte efecto en el sistema,\nSin embargo el ejemplo que tu mandastes si corrige la resolución de pantalla, pero en ningún sistema de los de nosotros lo hace,\nLo estoy colocando en el On Init \n\n <!-- s:oops: --><img src=\"{SMILIES_PATH}/icon_redface.gif\" alt=\":oops:\" title=\"Embarassed\" /><!-- s:oops: -->",
"time": "14:23",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "ADBLANCO"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "ok, verifique:\n\n- los Dialogs del .RC debem estar desenhados com lo WorkShop en resolucion 800X600\n\n- la chamada a la function Display() : \n\n Activate Dialog oDlg on init display(odlg,2) // 2 = resolucion 800 X 600\n\n- Todos los controles del dialog debem tener una Font associada ( do tipo : oControl:oFont:= SuFont ) \n \n- Verifique si no tienes modificado a la classe Dialog.prg \n\n\nAgora si no te trabajas la funcion, solamente puede ser la version de su FW. Lamento.\n\n\nSaludos\n\n\nWilliam",
"time": "23:14",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-10-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Alfonso, estarei colocando essas mudanças en la nueva version de la funcion (3.0) que logo estarei a publicar.\n\n\nMuchas gracias\n\n\nWilliam",
"time": "12:13",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "WilliamAdami"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-09-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "WILIAM;\n\nYA LOGRÉ QUE TRABAJARA (A MEDIAS), PERO NO CORRIGE LA RESOLUCIÓN DEL WINDOW PRINCIPAL NI DEL MENÚ PRINCIPAL.\nEXCEPTUANDO POR ESO, ESTÁ MUY BIÉN.\n\n\nNO SERÍA BUENO QUE EL FIVEWIN TUVIERA UNA CLÁUSULA PARA DEFINIR LA RESOLUCIÓN DE DISEÑO Y LA RESPETARA EN TODO EL DESARROLLO (OPCIONAL)",
"time": "21:01",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "ADBLANCO"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2009-10-02",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola,\n\nHe estado trabajando con la funcion Display y he incrporado alguna funcionalidad.\n\n - En la funcion se tiene como obligatorio el definir font en cada control. He realizado algun cambio y no es necesario poner font en cada control, utiliza el defecto.\n - Otro cambio realizado consiste en posibilidad de usar la opcion de centrado en Activate del Dialogo (clausula Centered).\n\nAqui tienen la funcion con las modificaciones (Identificadas con // *** AAA ***//).\n\nSaludos,\n\n Jose Alfonso\n\n[code=fw:2fzth363]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"common.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br />*********************************************************************<br />* NOME......: <span style=\"color: #00C800;\">DISPLAY</span><span style=\"color: #000000;\">(</span>oWnd,nResolution<span style=\"color: #000000;\">)</span><br />*<br />* VERSAO....: <span style=\"color: #000000;\">2.0</span> - Setembro de <span style=\"color: #000000;\">2009</span><br />*<br />* AUTOR.....: <span style=\"color: #000000;\">William</span> de Brito Adami e FiveWidi, que iniciou este projeto<br />* no Forum Espanhol de Fivewin .<br />*<br />* DESCRICAO.: <span style=\"color: #000000;\">Funcao</span> para exibir a tela sempre igual em qualquer <br />* resolucao, independente da fonte ou controle utilizado.<br />*<br />* PARAMETROS: <span style=\"color: #000000;\">oWnd</span>: <span style=\"color: #0000ff;\">Window</span> ou <span style=\"color: #0000ff;\">Dialog</span> a ser redimensionado<br />* nResolution: <span style=\"color: #000000;\">Numero</span> correspondente a resolucao <br />* que se desenhou inicialmente a tela.<br />*<br />*********************************************************************<br /><span style=\"color: #00C800;\">function</span> <span style=\"color: #00C800;\">display</span><span style=\"color: #000000;\">(</span> oWnd, nResolution <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> lAutoresize:=.t. , nWhatSize:=<span style=\"color: #000000;\">0</span>, lRepaint:=.t.<br /> <br /> <br /> * atencao: <span style=\"color: #000000;\">nResolution</span> identifica em que resolucao foram inicialmente <br /> * desenhadas as telas, e DEVE ter um dos seguintes valores:<br /> <span style=\"color: #000000;\">*</span> <br /> * <span style=\"color: #000000;\">1</span> = <span style=\"color: #000000;\">640</span> X <span style=\"color: #000000;\">480</span><br /> * <span style=\"color: #000000;\">2</span> = <span style=\"color: #000000;\">800</span> X <span style=\"color: #000000;\">600</span><br /> * <span style=\"color: #000000;\">3</span> = <span style=\"color: #000000;\">1024</span> X <span style=\"color: #000000;\">768</span><br /> * <span style=\"color: #000000;\">4</span> = <span style=\"color: #000000;\">1152</span> X <span style=\"color: #000000;\">864</span><br /> * <span style=\"color: #000000;\">5</span> = <span style=\"color: #000000;\">1280</span> X <span style=\"color: #000000;\">800</span><br /> * <span style=\"color: #000000;\">6</span> = <span style=\"color: #000000;\">1280</span> X <span style=\"color: #000000;\">1024</span><br /> * <span style=\"color: #000000;\">7</span> = <span style=\"color: #000000;\">1600</span> X <span style=\"color: #000000;\">1200</span><br /> * <span style=\"color: #000000;\">8</span> = <span style=\"color: #000000;\">768</span> X <span style=\"color: #000000;\">1024</span><br /> * <span style=\"color: #000000;\">9</span> = <span style=\"color: #000000;\">1440</span> X <span style=\"color: #000000;\">900</span><br /> * <span style=\"color: #000000;\">10</span> = <span style=\"color: #000000;\">1280</span> X <span style=\"color: #000000;\">768</span><br /> * <span style=\"color: #000000;\">11</span> = <span style=\"color: #000000;\">1280</span> X <span style=\"color: #000000;\">720</span><br /><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd, nResolution, lRepaint <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br /><br /><span style=\"color: #B900B9;\">/*<br />(20/08/2009) Inicio do REdesenvolvimento da funcao.<br />Parametros recebidos :<br /><br />lAutoresize: ativa / desativa redimensionamento automatico<br /><br />nWhatSize: permite for‡ar o redimensionamento a valores concretos;<br /> permitindo desta maneira que a aplica‡ao possa ter um valor<br /> ao qual redimensionar as telas.<br /><br />oWnd: Objeto/janela/dialogo/controle a ser redimensionado.<br /><br />nResolution: Numero que identifica que resolucao tinha a tela na qual<br /> se desenhou o objeto.<br /><br />lRepaint: Indicador se deve repintar o objeto uma vez redimensionado.<br /><br />Esta funcao deve ser utilizada no evento ON INIT do ACTIVATE das WINDOWs <br /> e DIALOGs .<br /><br />Exemplo:<br /><br />ACTIVATE DIALOG oDlg ON INIT display(oDlg,2) //desenhada em 800 X 600<br /><br /><br />-* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -*<br />*/</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd, nResolution, lRepaint <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">// Resolucao da tela no momento de definir os controles.</span><br /><span style=\"color: #00C800;\">Local</span> nOriWidth, nOriHeight<br /><br /><span style=\"color: #B900B9;\">// o normal seria que fosse a resolucao atual da tela (nWhatSize=0).</span><br /><span style=\"color: #B900B9;\">// Se permite forcar esta resolucao mediante o valor de nWhatSize=1,2,3,4,5,6,7,....</span><br /><span style=\"color: #00C800;\">Local</span> nWidth, nHeight<br /><br /><span style=\"color: #B900B9;\">// Sao as relacoes entre a resolucao de tela e a resolucao de desenho.</span><br /><span style=\"color: #00C800;\">Local</span> nFactorWitdh, nFactorHeight<br /><br /><span style=\"color: #00C800;\">Local</span> nContador<br /><br /><span style=\"color: #00C800;\">DEFAULT</span> lRepaint := .T.<br /><br />nOriWidth := <span style=\"color: #000000;\">0</span><br />nOriHeight := <span style=\"color: #000000;\">0</span><br />nWidth := <span style=\"color: #000000;\">0</span><br />nHeight := <span style=\"color: #000000;\">0</span><br />nContador := <span style=\"color: #000000;\">0</span><br /><br /><br /><span style=\"color: #00C800;\">If</span> <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">1</span><br /> nOriWidth := <span style=\"color: #000000;\">640</span><br /> nOriHeight := <span style=\"color: #000000;\">480</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">2</span><br /> nOriWidth := <span style=\"color: #000000;\">800</span><br /> nOriHeight := <span style=\"color: #000000;\">600</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">3</span><br /> nOriWidth := <span style=\"color: #000000;\">1024</span><br /> nOriHeight := <span style=\"color: #000000;\">768</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">4</span><br /> nOriWidth := <span style=\"color: #000000;\">1152</span><br /> nOriHeight := <span style=\"color: #000000;\">864</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">5</span><br /> nOriWidth := <span style=\"color: #000000;\">1280</span><br /> nOriHeight := <span style=\"color: #000000;\">800</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">6</span><br /> nOriWidth := <span style=\"color: #000000;\">1280</span><br /> nOriHeight := <span style=\"color: #000000;\">1024</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">7</span><br /> nOriWidth := <span style=\"color: #000000;\">1600</span><br /> nOriHeight := <span style=\"color: #000000;\">1200</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">8</span><br /> nOriWidth := <span style=\"color: #000000;\">768</span><br /> nOriHeight := <span style=\"color: #000000;\">1024</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">9</span><br /> nOriWidth := <span style=\"color: #000000;\">1440</span><br /> nOriHeight := <span style=\"color: #000000;\">900</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">10</span><br /> nOriWidth := <span style=\"color: #000000;\">1280</span> <br /> nOriHeight := <span style=\"color: #000000;\">768</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">11</span><br /> nOriWidth := <span style=\"color: #000000;\">1280</span><br /> nOriHeight := <span style=\"color: #000000;\">720</span><br /><br /><span style=\"color: #00C800;\">Else</span><br /> ScrResolution<span style=\"color: #000000;\">(</span> @nOriWidth, @nOriHeight <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><br /><span style=\"color: #00C800;\">If</span> nWhatSize = <span style=\"color: #000000;\">1</span><br /> nWidth := <span style=\"color: #000000;\">640</span><br /> nHeight := <span style=\"color: #000000;\">480</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">2</span><br /> nWidth := <span style=\"color: #000000;\">800</span><br /> nHeight := <span style=\"color: #000000;\">600</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">3</span><br /> nWidth := <span style=\"color: #000000;\">1024</span><br /> nHeight := <span style=\"color: #000000;\">768</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">4</span><br /> nWidth := <span style=\"color: #000000;\">1152</span><br /> nHeight := <span style=\"color: #000000;\">864</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">5</span><br /> nWidth := <span style=\"color: #000000;\">1280</span><br /> nHeight := <span style=\"color: #000000;\">800</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">6</span><br /> nWidth := <span style=\"color: #000000;\">1280</span><br /> nHeight := <span style=\"color: #000000;\">1024</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">7</span><br /> nWidth := <span style=\"color: #000000;\">1600</span><br /> nHeight := <span style=\"color: #000000;\">1200</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">8</span><br /> nWidth := <span style=\"color: #000000;\">768</span><br /> nHeight := <span style=\"color: #000000;\">1024</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">9</span><br /> nWidth := <span style=\"color: #000000;\">1440</span><br /> nHeight := <span style=\"color: #000000;\">900</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">10</span><br /> nWidth := <span style=\"color: #000000;\">1280</span> <br /> nHeight := <span style=\"color: #000000;\">768</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">11</span><br /> nWidth := <span style=\"color: #000000;\">1280</span><br /> nHeight := <span style=\"color: #000000;\">720</span><br /><br /><span style=\"color: #00C800;\">Else</span><br /><br /> ScrResolution<span style=\"color: #000000;\">(</span> @nWidth, @nHeight <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><br /><span style=\"color: #00C800;\">If</span> lAutoresize .and. nOriHeight != nHeight<br /><br /> <span style=\"color: #B900B9;\">/* Este sera o caso habitual, ao qual se pretende redimensionar<br /> os controles na resolucao da tela na qual estao viendo. */</span><br /><br /><br /> <span style=\"color: #00C800;\">If</span> nResolution > <span style=\"color: #000000;\">0</span><br /><br /> nFactorWitdh := nWidth / nOriWidth<br /> nFactorHeight := nHeight / nOriHeight<br /><br /> <span style=\"color: #B900B9;\">/* Este sera o caso no qual se pretende desfazer o redimensionamiento<br /> dos controles realizado previamente. */</span><br /><br /> ElseIf nResolution < <span style=\"color: #000000;\">0</span><br /><br /> nFactorWitdh := nOriWidth / nWidth<br /> nFactorHeight := nOriHeight / nHeight<br /><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> <span style=\"color: #00C800;\">If</span> lRepaint<br /> oWnd:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /><br /> * se aumentou a altura <br /> <span style=\"color: #00C800;\">If</span> nFactorHeight > <span style=\"color: #000000;\">1</span><br /><br /> ***************************** <br /> * se tiver barbutton * NOVO *<br /> *****************************<br /> <span style=\"color: #00C800;\">if</span> ownd:<span style=\"color: #000000;\">obar</span> <> <span style=\"color: #00C800;\">NIL</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nwidth</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nwidth*</span> nfactorwitdh<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nHeight</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nHeight*nfactorheight</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnwidth</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnwidth*nfactorwitdh</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnHeight</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnHeight*nfactorheight</span><br /> <span style=\"color: #00C800;\">for</span> i= <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">)</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">next</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">If</span> oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TTOOLBAR/\"</span><br /> * AINDA NAO FUNCIONOU !<br /> ** msgalert<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nwidth</span> <span style=\"color: #000000;\">)</span> <br /> *oWnd:<span style=\"color: #000000;\">nWidth</span>:= oWnd:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh<br /> *oWnd:<span style=\"color: #000000;\">nHeight</span>:= oWnd:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight<br /> * newwit:= oWnd:<span style=\"color: #000000;\">nBtnWidth</span> * nFactorWitdh<br /> * newhei:= oWnd:<span style=\"color: #000000;\">nBtnHeight</span> * nFactorHeight<br /> * <span style=\"color: #00C800;\">for</span> i = <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">)</span><br /> * newwit:= ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nwidth</span> * nFactorWitdh<br /> * newhei:= ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nheight</span> * nFactorHeight<br /> * ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nwidth</span>:= ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nwidth*nfactorwitdh</span><br /> * ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nheight</span>:=ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nheight*nfactorheight</span><br /> * ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:= resizebmp<span style=\"color: #000000;\">(</span> ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>, newwit, newhei <span style=\"color: #000000;\">)</span><br /> *msgalert<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">oimagelist</span>:<span style=\"color: #000000;\">abitmaps</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><br /> * <span style=\"color: #00C800;\">next</span><br /> * hBmp := resizebmp<span style=\"color: #000000;\">(</span> hBmp, ::<span style=\"color: #000000;\">nWidth</span>, ::<span style=\"color: #000000;\">nHeight</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">/*<br /> * troca imagelist<br /> oWnd:AddButton( { || oWnd:nBtnWidth := 50, oWnd:nBtnHeight := 50,;<br /> ownd:oImagelist:End(), ;<br /> SendMessage( oWnd:hWnd, 1072, 0, ownd:hImageList ),;<br /> oWnd:Refresh() }, \"Users management\", \"Users\" )<br /> */</span><br /> * OwND:<span style=\"color: #0000ff;\">REFRESH</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ElseIf oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TIMAGE/TBITMAP/TLISTBOX/TWBROWSE/TSSAY/TDSAY/TSAYREF/\"</span> <br /> <br /> ad:=getcoors<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">hWnd</span><span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Else</span><br /><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">EndIf</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> <span style=\"color: #00C800;\">If</span> oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TFOLDER/TPAGES/\"</span><br /><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span><br /> <span style=\"color: #00C800;\">For</span> nContador := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>, nResolution, .F. <span style=\"color: #000000;\">)</span><br /> EndFor<br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TCOMBOBOX/TDBCOMBO/\"</span><br /><br /><br /> elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TIMAGE/\"</span><br /><br /><br /> <span style=\"color: #00C800;\">Else</span><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span><br /> <span style=\"color: #00C800;\">For</span> nContador := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span><br /><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>, nResolution, .F. <span style=\"color: #000000;\">)</span><br /><br /> * ajuste de fontes<br /> * controle TSAY<br /> <span style=\"color: #00C800;\">if</span> ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TSAY/TSAYREF/\"</span><br /> ajustaalt<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> <br /> ajustalarg<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,ownd<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TGET/TDSAY/TSSAY/\"</span><br /> ajustaalt<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> <br /> aj_get<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TFOLDER/TPAGES/TCOMBOBOX/TGROUP/TTREE/TCHECKBOX/TBTNBMP/TTOOLBAR/TRADIO/TDBCOMBO/TTABS/\"</span><br /> aja_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TXBROWSE/\"</span><br /> aja_XBRW<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_XBRW<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TSBROWSE/\"</span><br /> aja_TSB<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_TSB<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TWBROWSE/\"</span><br /> aja_OLBX<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_OLBX<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /><br /> EndFor<br /> <span style=\"color: #00C800;\">EndIf</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> * se diminuiu a altura<br /> <span style=\"color: #00C800;\">If</span> nFactorHeight < <span style=\"color: #000000;\">1</span><br /><br /> * AINDA NAO TESTADO, PODE HAVER ERROS !!! <br /><br /> <span style=\"color: #00C800;\">If</span> oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> $ <span style=\"color: #ff0000;\">\"/TLISTBOX/TCOMBOBOX/\"</span> <br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nHeight</span> , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Else</span><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> <span style=\"color: #00C800;\">If</span> lRepaint<br /> <span style=\"color: #00C800;\">if</span> oWnd:<span style=\"color: #000000;\">lCentered</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oWnd:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oWnd:<span style=\"color: #000000;\">Show</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> ***************************************<br /> * se <span style=\"color: #00C800;\">for</span> resolucao igual a que desenhou <br /> ***************************************<br />elseif lAutoresize .and. nOriHeight = nHeight<br /><br /> <span style=\"color: #00C800;\">If</span> nResolution > <span style=\"color: #000000;\">0</span><br /> nFactorWitdh := nWidth / nOriWidth<br /> nFactorHeight := nHeight / nOriHeight<br /> ElseIf nResolution < <span style=\"color: #000000;\">0</span><br /> nFactorWitdh := nOriWidth / nWidth<br /> nFactorHeight := nOriHeight / nHeight<br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> <span style=\"color: #00C800;\">If</span> oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TFOLDER/TPAGES/\"</span><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span><br /> <span style=\"color: #00C800;\">For</span> nContador := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>, nResolution, .F. <span style=\"color: #000000;\">)</span><br /> EndFor<br /> <span style=\"color: #00C800;\">EndIf</span><br /> elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TIMAGE/TBITMAP/TLISTBOX/TWBROWSE/TSSAY/TDSAY/TSAYREF/\"</span> <br /> ad:=getcoors<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">hWnd</span><span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TCOMBOBOX/TDBCOMBO/\"</span><br /><br /> elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TXBROWSE/\"</span><br /><br /> ElseIf oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TIMAGE/\"</span> <br /><br /><br /> <span style=\"color: #00C800;\">Else</span><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span><br /> <span style=\"color: #00C800;\">For</span> nContador := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span><br /><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>, nResolution, .F. <span style=\"color: #000000;\">)</span><br /><br /> * ajuste de fontes<br /> * controle TSAY<br /><br /> <span style=\"color: #00C800;\">if</span> ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TSAY/TSAYREF/\"</span><br /> ajustaalt<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> <br /> ajustalarg<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,ownd<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TGET/TDSAY/TSSAY/\"</span><br /> ajustaalt<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span> <br /> aj_get<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TFOLDER/TPAGES/TCOMBOBOX/TGROUP/TTREE/TCHECKBOX/TBTNBMP/TTOOLBAR/TRADIO/TDBCOMBO/TTABS/\"</span><br /> aja_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TXBROWSE/\"</span><br /> aja_XBRW<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_XBRW<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TSBROWSE/\"</span><br /> aja_TSB<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_TSB<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TWBROWSE/\"</span><br /> aja_OLBX<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_OLBX<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /><br /> EndFor<br /> <span style=\"color: #00C800;\">EndIf</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /><span style=\"color: #00C800;\">EndIf</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><br /><br /><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> AjustaLarg<span style=\"color: #000000;\">(</span>oq,ownd<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte atribuida, nao faz !<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F.,;<br /> nAlturaDaFonte,;<br /> nLarguraDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDoControle ,;<br /> nTime := SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>,;<br /> oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cFontName=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span> <br /> <span style=\"color: #00C800;\">endif</span><br /><br /> nAlturaDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span><br /> nLarguraDoControle := oq:<span style=\"color: #000000;\">nWidth</span><br /><br /> <span style=\"color: #00C800;\">WHILE</span> SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < nTime <span style=\"color: #B900B9;\">// Evita congelamento da aplicação caso não seja possível recalcular a fonte</span><br /><br /> nLarguraDaFonte += <span style=\"color: #000000;\">1</span> <span style=\"color: #B900B9;\">// Nao funciona com numeros facionados</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> nLarguraDaFonte,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> lFlagReleaseFont := .T.<br /> <br /> <span style=\"color: #00C800;\">IF</span> oWnd:<span style=\"color: #000000;\">GetWidth</span><span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">varget</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>,oFontTmp<span style=\"color: #000000;\">)</span> >= nLarguraDoControle<br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /> lFlagReleaseFont := .F.<br /><br /> <span style=\"color: #00C800;\">ENDDO</span><br /><br /> <span style=\"color: #00C800;\">IF</span> lFlagReleaseFont<br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFont<span style=\"color: #000000;\">)</span><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> AjustaAlt<span style=\"color: #000000;\">(</span>oq<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte , nao faz !<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte:=<span style=\"color: #000000;\">0</span>, nAlturaDoControle <br /> <span style=\"color: #00C800;\">LOCAL</span> nLarguraDaFonte, nTime:= SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>, oFontTmp,ofont<br /><br /> * se nao tiver fonte, volta sem ajustar <br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span> <br /><br /> * se tiver fonte , ajusta <br /> nAlturaDoControle := <span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">-6</span><br /> nLarguraDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> <br /><br /> <span style=\"color: #00C800;\">WHILE</span> SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < nTime <span style=\"color: #B900B9;\">// Evita congelamento da aplicação caso não seja possível recalcular a fonte</span><br /><br /> nAlturaDaFonte += <span style=\"color: #000000;\">0.1</span> <span style=\"color: #B900B9;\">// Na altura o fracionamento funcionou</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> nLarguraDaFonte,nAlturaDaFonte<br /><br /> lFlagReleaseFont := .T.<br /><br /> <span style=\"color: #00C800;\">IF</span> oFontTmp:<span style=\"color: #000000;\">nHeight</span> >= nAlturaDoControle<br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//oSay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /> lFlagReleaseFont := .F.<br /><br /> <span style=\"color: #00C800;\">ENDDO</span><br /><br /> <span style=\"color: #00C800;\">IF</span> lFlagReleaseFont<br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFont<span style=\"color: #000000;\">)</span><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Aj_get<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte , nao faz<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">Local</span> lFlagReleaseFont := .F., nAlturaDaFonte ,;<br /> nLarguraDaFonte := <span style=\"color: #000000;\">0</span>, nLarguraDoControle , nTime := SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>,;<br /> oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span> <br /><br /> nLarguraDoControle := oq:<span style=\"color: #000000;\">nWidth</span><br /><br /> nAlturaDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span> <br /> nLarguraDaFonte = nLarguraDaFonte*nf<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ajl_FLD<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte , nao faz<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte, nLarguraDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDoControle ,nTime:= SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>, oFontTmp,ofont<br /> <br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> nLarguraDoControle := oq:<span style=\"color: #000000;\">nWidth</span><br /> nAlturaDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span><br /> nLarguraDaFonte = nLarguraDaFonte*nf<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> aja_FLD<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDaFonte := <span style=\"color: #000000;\">0</span>, oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <br /> nLarguraDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span><br /> nAlturaDaFonte:=nalturaDafonte*nf <br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ajl_XBRW<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte, nao faz !<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte,;<br /> nLarguraDaFonte := <span style=\"color: #000000;\">0</span>, nLarguraDoControle, nTime := SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>,;<br /> oFontTmp,ofont<br /> <br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <br /> nLarguraDoControle := oq:<span style=\"color: #000000;\">nWidth</span><br /> nAlturaDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span> <br /> nLarguraDaFonte = nLarguraDaFonte*nf<br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">acols</span><span style=\"color: #000000;\">)</span><br /> * redimensiona fontes <span style=\"color: #00C800;\">do</span> xbrw<br /> oq:<span style=\"color: #000000;\">acols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">odatafont</span> :=oFontTmp<br /> oq:<span style=\"color: #000000;\">acols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oHeaderFont</span>:=ofontTmp<br /> oq:<span style=\"color: #000000;\">acols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oFooterFont</span>:=oFontTmp<br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> aja_XBRW<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte, nao faz !<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDaFonte , oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /><br /> nLarguraDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span><br /> nAlturadaFonte:=nalturadafonte*nf <br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> * redimensiona as colunas <span style=\"color: #00C800;\">do</span> Xbrw<br /> <span style=\"color: #00C800;\">if</span> nf=<span style=\"color: #000000;\">1</span><br /> nf:=<span style=\"color: #000000;\">1.2</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">acols</span><span style=\"color: #000000;\">)</span><br /><br /> * pega tamanho anterior X factor<br /> ov:=oq:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> * nf<br /> * atualiza o novo tamanho da coluna<br /> oq:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> := ov<br /><br /> <span style=\"color: #00C800;\">next</span><br /><br /> oq:<span style=\"color: #000000;\">nStretchcol</span>:=STRETCHCOL_LAST<br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> aja_OLBX<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte, nao faz !<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDaFonte , oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /><br /> nLarguraDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span><br /> nAlturadaFonte:=nalturadafonte*nf <br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> * redimensiona as colunas <span style=\"color: #00C800;\">do</span> Xbrw<br /> <span style=\"color: #00C800;\">if</span> nf=<span style=\"color: #000000;\">1</span><br /> nf:=<span style=\"color: #000000;\">1.2</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ajl_OLBX<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte, nao faz !<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte,;<br /> nLarguraDaFonte := <span style=\"color: #000000;\">0</span>, nLarguraDoControle,;<br /> nTime := SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>, oFontTmp,ofont<br /><br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /><br /> nLarguraDoControle := oq:<span style=\"color: #000000;\">nWidth</span><br /> nAlturaDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span><br /> nLarguraDaFonte = nLarguraDaFonte*nf<br /><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /><br /> * atualiza a largura das colunas<br /> <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">acolsizes</span><span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">acolsizes</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:=oq:<span style=\"color: #000000;\">acolsizes</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>*nf<br /><br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> Ajustal_ds<span style=\"color: #000000;\">(</span>oq<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nAlturaDoControle , nLarguraDaFonte , nTime := SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>,;<br /> oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /><br /> nLarguraDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span><br /> nAlturaDoControle := <span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">nHeight</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">-6</span><br /><br /> <span style=\"color: #00C800;\">WHILE</span> SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> < nTime <span style=\"color: #B900B9;\">// Evita congelamento da aplicação caso não seja possível recalcular a fonte</span><br /><br /> nAlturaDaFonte += <span style=\"color: #000000;\">0.1</span> <span style=\"color: #B900B9;\">// Na altura o fracionamento funcionou</span><br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> nLarguraDaFonte,nAlturaDaFonte<br /> <br /> lFlagReleaseFont := .T.<br /><br /> <span style=\"color: #00C800;\">IF</span> oFontTmp:<span style=\"color: #000000;\">nHeight</span> >= nAlturaDoControle<br /> EXIT<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /> lFlagReleaseFont := .F.<br /><br /> <span style=\"color: #00C800;\">ENDDO</span><br /><br /> <span style=\"color: #00C800;\">IF</span> lFlagReleaseFont<br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /> <span style=\"color: #00C800;\">ENDIF</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFont<span style=\"color: #000000;\">)</span><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><br />* ajusta altura tsbrowse<br /><span style=\"color: #00C800;\">FUNCTION</span> aja_TSB<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDaFonte, oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /><br /> nLarguraDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span><br /> nAlturadaFonte:=nalturadafonte*nf <br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> * redimensiona as colunas <span style=\"color: #00C800;\">do</span> Xbrw<br /> <span style=\"color: #00C800;\">if</span> nf=<span style=\"color: #000000;\">1</span><br /> nf:=<span style=\"color: #000000;\">1.2</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">acolumns</span><span style=\"color: #000000;\">)</span><br /> * pega tamanho anterior X factor<br /> ov:=oq:<span style=\"color: #000000;\">nHeightCell</span> * nf<br /> * atualiza o novo tamanho da coluna<br /> oq:<span style=\"color: #000000;\">nHeightCell</span> := ov<br /> oq:<span style=\"color: #000000;\">nheightHead</span>:=oq:<span style=\"color: #000000;\">nheightHead*nf</span><br /> oq:<span style=\"color: #000000;\">nheightFoot</span>:=oq:<span style=\"color: #000000;\">nheightFoot*nf</span><br /> <span style=\"color: #00C800;\">next</span><br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br />* ajusta largura tsbrowse<br /><span style=\"color: #00C800;\">FUNCTION</span> ajl_TSB<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte , nao faz !<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte ,;<br /> nLarguraDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDoControle , nTime := SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>, oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /><br /> nLarguraDoControle := oq:<span style=\"color: #000000;\">nWidth</span><br /> nAlturaDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span> <br /> nLarguraDaFonte = nLarguraDaFonte*nf<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">acolumns</span><span style=\"color: #000000;\">)</span><br /><br /> * redimensiona fontes <span style=\"color: #00C800;\">do</span> tsbrowse<br /> oq:<span style=\"color: #000000;\">acolumns</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oFont</span> :=oFontTmp<br /> oq:<span style=\"color: #000000;\">acolumns</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oFontHead</span>:=ofontTmp<br /> oq:<span style=\"color: #000000;\">acolumns</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">oFontFoot</span>:=oFontTmp<br /><br /> * reajusta a largura fo sbrowse<br /> oq:<span style=\"color: #000000;\">acolsizes</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:=oq:<span style=\"color: #000000;\">acolsizes</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>*nf<br /><br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span></div>[/code:2fzth363]",
"time": "14:37",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "alfonso"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2016-01-31",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola\n\nde donde lo puedo bajar?\n\nGracias <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\n\nSaluditos <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->",
"time": "07:44",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "AIDA"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2016-02-01",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Aida:\n\n[url:1jeigyv9]http://www.4shared.com/rar/NIwJho3C/DISPLAY3.html[/url:1jeigyv9]\n\n[code=fw:1jeigyv9]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"FiveWin.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"common.ch\"</span><br /><span style=\"color: #00D7D7;\">#include</span> <span style=\"color: #ff0000;\">\"xbrowse.ch\"</span><br /><br />*********************************************************************<br />* NOME......: <span style=\"color: #00C800;\">DISPLAY</span><span style=\"color: #000000;\">(</span>oWnd,nResolution<span style=\"color: #000000;\">)</span><br />*<br />* VERSAO....: <span style=\"color: #000000;\">3.0</span> - Julho de <span style=\"color: #000000;\">2010</span><br />*<br />* AUTOR.....: <span style=\"color: #000000;\">William</span> de Brito Adami e FiveWidi, que iniciou este projeto<br />* no Forum Espanhol de Fivewin .<br />*<br />* DESCRICAO.: <span style=\"color: #000000;\">Funcao</span> para exibir a tela sempre igual em qualquer <br />* resolucao, independente da fonte ou controle utilizado.<br />*<br />* PARAMETROS: <span style=\"color: #000000;\">oWnd</span>: <span style=\"color: #0000ff;\">Window</span> ou <span style=\"color: #0000ff;\">Dialog</span> a ser redimensionado<br />* nResolution: <span style=\"color: #000000;\">Numero</span> correspondente a resolucao <br />* que se desenhou inicialmente a tela.<br />*<br />*********************************************************************<br /><span style=\"color: #00C800;\">function</span> <span style=\"color: #00C800;\">display</span><span style=\"color: #000000;\">(</span> oWnd, nResolution, lFullres <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">local</span> lAutoresize:=.t. , nWhatSize:=<span style=\"color: #000000;\">0</span>, lRepaint:=.t. <br /> <br /> * atencao: <span style=\"color: #000000;\">nResolution</span> identifica em que resolucao foram inicialmente <br /> * desenhadas as telas, e DEVE ter um dos seguintes valores:<br /> <span style=\"color: #000000;\">*</span> <br /> * <span style=\"color: #000000;\">1</span> = <span style=\"color: #000000;\">640</span> X <span style=\"color: #000000;\">480</span><br /> * <span style=\"color: #000000;\">2</span> = <span style=\"color: #000000;\">800</span> X <span style=\"color: #000000;\">600</span><br /> * <span style=\"color: #000000;\">3</span> = <span style=\"color: #000000;\">1024</span> X <span style=\"color: #000000;\">768</span><br /> * <span style=\"color: #000000;\">4</span> = <span style=\"color: #000000;\">1152</span> X <span style=\"color: #000000;\">864</span><br /> * <span style=\"color: #000000;\">5</span> = <span style=\"color: #000000;\">1280</span> X <span style=\"color: #000000;\">800</span><br /> * <span style=\"color: #000000;\">6</span> = <span style=\"color: #000000;\">1280</span> X <span style=\"color: #000000;\">1024</span><br /> * <span style=\"color: #000000;\">7</span> = <span style=\"color: #000000;\">1600</span> X <span style=\"color: #000000;\">1200</span><br /> * <span style=\"color: #000000;\">8</span> = <span style=\"color: #000000;\">768</span> X <span style=\"color: #000000;\">1024</span><br /> * <span style=\"color: #000000;\">9</span> = <span style=\"color: #000000;\">1440</span> X <span style=\"color: #000000;\">900</span><br /> * <span style=\"color: #000000;\">10</span> = <span style=\"color: #000000;\">1280</span> X <span style=\"color: #000000;\">768</span><br /> * <span style=\"color: #000000;\">11</span> = <span style=\"color: #000000;\">1280</span> X <span style=\"color: #000000;\">720</span><br /> * <span style=\"color: #000000;\">12</span> = <span style=\"color: #000000;\">1366</span> X <span style=\"color: #000000;\">768</span><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd, nResolution, lRepaint, lFullres <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /><br /><br /><br /><span style=\"color: #B900B9;\">/*<br />(20/08/2009) Inicio do REdesenvolvimento da funcao.<br />Parametros recebidos :<br /><br />lAutoresize: ativa / desativa redimensionamento automatico<br /><br />nWhatSize: permite for‡ar o redimensionamento a valores concretos;<br /> permitindo desta maneira que a aplica‡ao possa ter um valor<br /> ao qual redimensionar as telas.<br /><br />oWnd: Objeto/janela/dialogo/controle a ser redimensionado.<br /><br />nResolution: Numero que identifica que resolucao tinha a tela na qual<br /> se desenhou o objeto.<br /><br />lRepaint: Indicador se deve repintar o objeto uma vez redimensionado.<br /><br />lFullres: Indica se os textos devem ser redimensionados no tamanho maximo<br /> do resource desenhado.<br /> <br /><br />Esta funcao deve ser utilizada no evento ON INIT do ACTIVATE das WINDOWs <br /> e DIALOGs .<br /><br />Exemplo:<br /><br />ACTIVATE DIALOG oDlg ON INIT display(oDlg,2,.t.) //desenhada em 800 X 600<br /><br /><br />-* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -* -*<br />*/</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd, nResolution, lRepaint,lFullres <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #B900B9;\">// Resolucao da tela no momento de definir os controles.</span><br /><span style=\"color: #00C800;\">Local</span> nOriWidth, nOriHeight<br /><br /><span style=\"color: #B900B9;\">// o normal seria que fosse a resolucao atual da tela (nWhatSize=0).</span><br /><span style=\"color: #B900B9;\">// Se permite forcar esta resolucao mediante o valor de nWhatSize=1,2,3,4,5,6,7,....</span><br /><span style=\"color: #00C800;\">Local</span> nWidth, nHeight<br /><br /><span style=\"color: #B900B9;\">// Sao as relacoes entre a resolucao de tela e a resolucao de desenho.</span><br /><span style=\"color: #00C800;\">Local</span> nFactorWitdh, nFactorHeight<br /><br /><span style=\"color: #00C800;\">Local</span> nContador,ofonttmp<br /><br /><span style=\"color: #00C800;\">DEFAULT</span> lRepaint := .T.<br /><br />nOriWidth := <span style=\"color: #000000;\">0</span><br />nOriHeight := <span style=\"color: #000000;\">0</span><br />nWidth := <span style=\"color: #000000;\">0</span><br />nHeight := <span style=\"color: #000000;\">0</span><br />nContador := <span style=\"color: #000000;\">0</span><br /><br /><span style=\"color: #00C800;\">If</span> <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">1</span><br /> nOriWidth := <span style=\"color: #000000;\">640</span><br /> nOriHeight := <span style=\"color: #000000;\">480</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">2</span><br /> nOriWidth := <span style=\"color: #000000;\">800</span><br /> nOriHeight := <span style=\"color: #000000;\">600</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">3</span><br /> nOriWidth := <span style=\"color: #000000;\">1024</span><br /> nOriHeight := <span style=\"color: #000000;\">768</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">4</span><br /> nOriWidth := <span style=\"color: #000000;\">1152</span><br /> nOriHeight := <span style=\"color: #000000;\">864</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">5</span><br /> nOriWidth := <span style=\"color: #000000;\">1280</span><br /> nOriHeight := <span style=\"color: #000000;\">800</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">6</span><br /> nOriWidth := <span style=\"color: #000000;\">1280</span><br /> nOriHeight := <span style=\"color: #000000;\">1024</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">7</span><br /> nOriWidth := <span style=\"color: #000000;\">1600</span><br /> nOriHeight := <span style=\"color: #000000;\">1200</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">8</span><br /> nOriWidth := <span style=\"color: #000000;\">768</span><br /> nOriHeight := <span style=\"color: #000000;\">1024</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">9</span><br /> nOriWidth := <span style=\"color: #000000;\">1440</span><br /> nOriHeight := <span style=\"color: #000000;\">900</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">10</span><br /> nOriWidth := <span style=\"color: #000000;\">1280</span> <br /> nOriHeight := <span style=\"color: #000000;\">768</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">11</span><br /> nOriWidth := <span style=\"color: #000000;\">1280</span><br /> nOriHeight := <span style=\"color: #000000;\">720</span><br />ElseIf <span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nResolution<span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">12</span><br /> nOriWidth := <span style=\"color: #000000;\">1366</span><br /> nOriHeight := <span style=\"color: #000000;\">768</span><br /><br /><span style=\"color: #00C800;\">Else</span><br /> ScrResolution<span style=\"color: #000000;\">(</span> @nOriWidth, @nOriHeight <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><br /><span style=\"color: #00C800;\">If</span> nWhatSize = <span style=\"color: #000000;\">1</span><br /> nWidth := <span style=\"color: #000000;\">640</span><br /> nHeight := <span style=\"color: #000000;\">480</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">2</span><br /> nWidth := <span style=\"color: #000000;\">800</span><br /> nHeight := <span style=\"color: #000000;\">600</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">3</span><br /> nWidth := <span style=\"color: #000000;\">1024</span><br /> nHeight := <span style=\"color: #000000;\">768</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">4</span><br /> nWidth := <span style=\"color: #000000;\">1152</span><br /> nHeight := <span style=\"color: #000000;\">864</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">5</span><br /> nWidth := <span style=\"color: #000000;\">1280</span><br /> nHeight := <span style=\"color: #000000;\">800</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">6</span><br /> nWidth := <span style=\"color: #000000;\">1280</span><br /> nHeight := <span style=\"color: #000000;\">1024</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">7</span><br /> nWidth := <span style=\"color: #000000;\">1600</span><br /> nHeight := <span style=\"color: #000000;\">1200</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">8</span><br /> nWidth := <span style=\"color: #000000;\">768</span><br /> nHeight := <span style=\"color: #000000;\">1024</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">9</span><br /> nWidth := <span style=\"color: #000000;\">1440</span><br /> nHeight := <span style=\"color: #000000;\">900</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">10</span><br /> nWidth := <span style=\"color: #000000;\">1280</span> <br /> nHeight := <span style=\"color: #000000;\">768</span><br />ElseIf nWhatSize = <span style=\"color: #000000;\">11</span><br /> nWidth := <span style=\"color: #000000;\">1280</span><br /> nHeight := <span style=\"color: #000000;\">720</span><br /><br />ElseIf nWhatSize = <span style=\"color: #000000;\">12</span><br /> nWidth := <span style=\"color: #000000;\">1366</span><br /> nHeight := <span style=\"color: #000000;\">768</span><br /><br /><span style=\"color: #00C800;\">Else</span><br /><br /> ScrResolution<span style=\"color: #000000;\">(</span> @nWidth, @nHeight <span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">Endif</span><br /><br /><br /><span style=\"color: #00C800;\">If</span> lAutoresize .and. nOriHeight != nHeight<br /><br /> <span style=\"color: #B900B9;\">/* Este sera o caso habitual, ao qual se pretende redimensionar<br /> os controles na resolucao da tela na qual estao viendo. */</span><br /><br /> <span style=\"color: #00C800;\">If</span> nResolution > <span style=\"color: #000000;\">0</span><br /><br /> nFactorWitdh := nWidth / nOriWidth<br /> nFactorHeight := nHeight / nOriHeight<br /><br /> ElseIf nResolution < <span style=\"color: #000000;\">0</span><br /><br /> nFactorWitdh := nOriWidth / nWidth<br /> nFactorHeight := nOriHeight / nHeight<br /><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> <span style=\"color: #00C800;\">If</span> lRepaint<br /> oWnd:<span style=\"color: #000000;\">Hide</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /><br /> * se aumentou a altura <br /> <span style=\"color: #00C800;\">If</span> nFactorHeight > <span style=\"color: #000000;\">1</span><br /><br /> ***************************** <br /> * se tiver barbutton * NOVO *<br /> *****************************<br /> <span style=\"color: #00C800;\">if</span> ownd:<span style=\"color: #000000;\">obar</span> <> <span style=\"color: #00C800;\">NIL</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nwidth</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nwidth*</span> nfactorwitdh<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nHeight</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nHeight*nfactorheight</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnwidth</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnwidth*nfactorwitdh</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnHeight</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnHeight*nfactorheight</span><br /> <span style=\"color: #00C800;\">for</span> i= <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">)</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /> * redimensiona o BMP da BARBUTTON<br /> o:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">hbitmap1</span><br /> <span style=\"color: #00C800;\">if</span> o<><span style=\"color: #000000;\">0</span><br /> hbmp:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">hbitmap1</span> <br /> nbmpwidth := nbmpwidth<span style=\"color: #000000;\">(</span>hbmp<span style=\"color: #000000;\">)</span><br /> nbmpheight:= nbmpheight<span style=\"color: #000000;\">(</span>hbmp<span style=\"color: #000000;\">)</span> <br /> larg:=nbmpwidth*nfactorwitdh<br /> alt:=nbmpheight*nfactorheight<br /> o:=resizebmp<span style=\"color: #000000;\">(</span>o,larg ,alt <span style=\"color: #000000;\">)</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">hbitmap1</span>:=o<br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">next</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><br /> <span style=\"color: #00C800;\">If</span> oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TIMAGE/\"</span> <br /><br /> ad:=getcoors<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">hWnd</span><span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">Else</span><br /><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">EndIf</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /><br /><br /> <span style=\"color: #00C800;\">if</span> oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TFOLDER/TPAGES/\"</span><br /><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span><br /> <span style=\"color: #00C800;\">For</span> nContador := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>, nResolution, .F.,lFullres <span style=\"color: #000000;\">)</span><br /> EndFor<br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /><br /> Elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TBTNBMP/\"</span> <br /><br /> *********************************<br /> * redimensiona o BMP <span style=\"color: #00C800;\">do</span> <span style=\"color: #0000ff;\">BTNBMP</span><br /> o:=oWnd:<span style=\"color: #000000;\">hbitmap1</span><br /> <span style=\"color: #00C800;\">if</span> o<><span style=\"color: #000000;\">0</span><br /> hbmp:=ownd:<span style=\"color: #000000;\">hbitmap1</span> <br /> nbmpwidth := nbmpwidth<span style=\"color: #000000;\">(</span>hbmp<span style=\"color: #000000;\">)</span><br /> nbmpheight:= nbmpheight<span style=\"color: #000000;\">(</span>hbmp<span style=\"color: #000000;\">)</span> <br /> larg:=nbmpwidth*nfactorwitdh<br /> alt:=nbmpheight*nfactorheight<br /> o:=resizebmp<span style=\"color: #000000;\">(</span>o,larg ,alt <span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #000000;\">hbitmap1</span>:=o<br /> <span style=\"color: #00C800;\">endif</span><br /> *********************************<br /><br /><br /><br /> elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TCOMBOBOX/TDBCOMBO/\"</span><br /><br /><br /> <span style=\"color: #00C800;\">Else</span><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span><br /> <span style=\"color: #00C800;\">For</span> nContador := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span><br /><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>, nResolution, .F.,lFullres <span style=\"color: #000000;\">)</span><br /><br /> * ajuste de fontess<br /> * controle TSAY<br /> <span style=\"color: #00C800;\">if</span> ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TSAY/TSAYREF/\"</span><br /><br /> aja_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /><br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TGET/TSSAY/TDSAY/\"</span><br /><br /> aja_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /><br /> ELSEif ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TFOLDER/TPAGES/TCOMBOBOX/TGROUP/TTREE/TCHECKBOX/TBTNBMP/TTOOLBAR/TRADIO/TDBCOMBO/TTABS/TXBROWSE/TSBROWSE/TWBROWSE/\"</span><br /> aja_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_FLD<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">endif</span> <br /><br /> EndFor<br /> <span style=\"color: #00C800;\">EndIf</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> * se diminuiu a altura<br /> <span style=\"color: #00C800;\">If</span> nFactorHeight < <span style=\"color: #000000;\">1</span><br /><br /> ***************************** <br /> * se tiver barbutton * NOVO *<br /> *****************************<br /> <span style=\"color: #00C800;\">if</span> ownd:<span style=\"color: #000000;\">obar</span> <> <span style=\"color: #00C800;\">NIL</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nwidth</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nwidth*</span> nfactorwitdh<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nHeight</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nHeight*nfactorheight</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnwidth</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnwidth*nfactorwitdh</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnHeight</span>:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">nbtnHeight*nfactorheight</span><br /> <span style=\"color: #00C800;\">for</span> i= <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">)</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /><br /> * redimensiona o BMP da BARBUTTON<br /> o:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">hbitmap1</span><br /> <span style=\"color: #00C800;\">if</span> o<><span style=\"color: #000000;\">0</span><br /> hbmp:=ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">hbitmap1</span> <br /> nbmpwidth := nbmpwidth<span style=\"color: #000000;\">(</span>hbmp<span style=\"color: #000000;\">)</span><br /> nbmpheight:= nbmpheight<span style=\"color: #000000;\">(</span>hbmp<span style=\"color: #000000;\">)</span> <br /> larg:=nbmpwidth*nfactorwitdh<br /> alt:=nbmpheight*nfactorheight<br /> o:=resizebmp<span style=\"color: #000000;\">(</span>o,larg ,alt <span style=\"color: #000000;\">)</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #000000;\">acontrols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">hbitmap1</span>:=o<br /> <span style=\"color: #00C800;\">endif</span> <br /> <span style=\"color: #00C800;\">next</span><br /> ownd:<span style=\"color: #000000;\">obar</span>:<span style=\"color: #0000ff;\">refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">endif</span><br /> ***************************************<br /><br /> <span style=\"color: #00C800;\">if</span> oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TIMAGE/\"</span> <br /><br /> ad:=getcoors<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">hWnd</span><span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /><br /> Elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TBTNBMP/\"</span> <br /><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /><br /> *********************************<br /> * redimensiona o BMP <span style=\"color: #00C800;\">do</span> <span style=\"color: #0000ff;\">BTNBMP</span><br /> o:=oWnd:<span style=\"color: #000000;\">hbitmap1</span><br /> <span style=\"color: #00C800;\">if</span> o<><span style=\"color: #000000;\">0</span><br /> hbmp:=ownd:<span style=\"color: #000000;\">hbitmap1</span> <br /> nbmpwidth := nbmpwidth<span style=\"color: #000000;\">(</span>hbmp<span style=\"color: #000000;\">)</span><br /> nbmpheight:= nbmpheight<span style=\"color: #000000;\">(</span>hbmp<span style=\"color: #000000;\">)</span> <br /> larg:=nbmpwidth*nfactorwitdh<br /> alt:=nbmpheight*nfactorheight<br /> o:=resizebmp<span style=\"color: #000000;\">(</span>o,larg ,alt <span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #000000;\">hbitmap1</span>:=o<br /> <span style=\"color: #00C800;\">endif</span><br /> *********************************<br /><br /><br /> <span style=\"color: #00C800;\">Else</span><br /><br /><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nWidth</span> * nFactorWitdh, ;<br /> oWnd:<span style=\"color: #000000;\">nHeight</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">endif</span><br /><br /><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span> <> <span style=\"color: #ff0000;\">\"A\"</span><br /><br /> * ajuste de fontess<br /> * controle TSAY<br /> <span style=\"color: #00C800;\">if</span> ownd:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TSAY/TSAYREF/\"</span><br /><br /> aja_FLD<span style=\"color: #000000;\">(</span>ownd,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_FLD<span style=\"color: #000000;\">(</span>ownd,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /><br /> ELSEif ownd:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TGET/TSSAY/TDSAY/\"</span><br /><br /> aja_FLD<span style=\"color: #000000;\">(</span>ownd,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_FLD<span style=\"color: #000000;\">(</span>ownd,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /><br /> ELSEif ownd:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TFOLDER/TPAGES/TCOMBOBOX/TGROUP/TTREE/TCHECKBOX/TBTNBMP/TTOOLBAR/TRADIO/TDBCOMBO/TTABS/TXBROWSE/TSBROWSE/TWBROWSE/\"</span><br /> aja_FLD<span style=\"color: #000000;\">(</span>ownd,nFactorHeight<span style=\"color: #000000;\">)</span> <br /> ajl_FLD<span style=\"color: #000000;\">(</span>ownd,nFactorWitdh<span style=\"color: #000000;\">)</span> <br /><br /> <span style=\"color: #00C800;\">endif</span> <br /><br /><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> <span style=\"color: #00C800;\">If</span> lRepaint<br /><br /> <span style=\"color: #00C800;\">if</span> oWnd:<span style=\"color: #000000;\">lCentered</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oWnd:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /><br /> oWnd:<span style=\"color: #000000;\">Show</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> ***************************************<br /> * se <span style=\"color: #00C800;\">for</span> resolucao igual a que desenhou <br /> ***************************************<br />elseif lAutoresize .and. nOriHeight = nHeight<br /><br /><br /><span style=\"color: #00C800;\">if</span> lfullres<br /><br /> <span style=\"color: #00C800;\">If</span> nResolution > <span style=\"color: #000000;\">0</span><br /> nFactorWitdh := nWidth / nOriWidth<br /> nFactorHeight := nHeight / nOriHeight<br /> ElseIf nResolution < <span style=\"color: #000000;\">0</span><br /> nFactorWitdh := nOriWidth / nWidth<br /> nFactorHeight := nOriHeight / nHeight<br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /> <span style=\"color: #00C800;\">If</span> oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TFOLDER/TPAGES/\"</span><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span><br /> <span style=\"color: #00C800;\">For</span> nContador := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aDialogs</span> <span style=\"color: #000000;\">)</span><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd:<span style=\"color: #000000;\">aDialogs</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>, nResolution, .F.,lfullres <span style=\"color: #000000;\">)</span><br /> EndFor<br /> <span style=\"color: #00C800;\">EndIf</span><br /> elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TIMAGE/\"</span> <span style=\"color: #B900B9;\">//TBITMAP/TLISTBOX/TWBROWSE/TSSAY/TDSAY/TSAYREF/\" </span><br /> ad:=getcoors<span style=\"color: #000000;\">(</span>ownd:<span style=\"color: #000000;\">hWnd</span><span style=\"color: #000000;\">)</span><br /> oWnd:<span style=\"color: #0000ff;\">Move</span><span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">nTop</span> * nFactorHeight , ;<br /> oWnd:<span style=\"color: #000000;\">nLeft</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">4</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">2</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorWitdh, ;<br /> <span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">(</span>ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">3</span><span style=\"color: #000000;\">]</span>-ad<span style=\"color: #000000;\">[</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">]</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> * nFactorHeight , ;<br /> .F. <span style=\"color: #000000;\">)</span><br /><br /> elseif oWnd:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TCOMBOBOX/TDBCOMBO/\"</span><br /><br /><br /> <span style=\"color: #00C800;\">Else</span><br /> <span style=\"color: #00C800;\">If</span> ValType<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span> = <span style=\"color: #ff0000;\">\"A\"</span><br /> <span style=\"color: #00C800;\">For</span> nContador := <span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">To</span> Len<span style=\"color: #000000;\">(</span> oWnd:<span style=\"color: #000000;\">aControls</span> <span style=\"color: #000000;\">)</span><br /><br /> AutResiz<span style=\"color: #000000;\">(</span> lAutoresize, nWhatSize, oWnd:<span style=\"color: #000000;\">aControls</span><span style=\"color: #000000;\">[</span>nContador<span style=\"color: #000000;\">]</span>, nResolution, .F.,lfullres <span style=\"color: #000000;\">)</span><br /><br /><br /><span style=\"color: #B900B9;\">/*<br /><br /> * ajuste de fontes<br /> * controle TSAY<br /> if ownd:acontrols[nContador]:classname$\"/TSAY/TSAYREF/\"<br />* ajustaalt(ownd:acontrols[nContador],nfactorheight,lFullres) <br />* ajustalarg(ownd:acontrols[nContador],ownd,nfactorwitdh,lFullres) <br /> ELSEif ownd:acontrols[nContador]:classname$\"/TGET/TSSAY/TDSAY/\"<br />* ajustaalt(ownd:acontrols[nContador],nfactorheight,lFullres) <br />* ajl_FLD(ownd:acontrols[nContador],nFactorWitdh) <br /> ELSEif ownd:acontrols[nContador]:classname$\"/TFOLDER/TPAGES/TCOMBOBOX/TGROUP/TTREE/TCHECKBOX/TBTNBMP/TTOOLBAR/TRADIO/TDBCOMBO/TTABS/TXBROWSE/TSBROWSE/TWBROWSE/\"<br /> aja_FLD(ownd:acontrols[nContador],nFactorHeight) <br /> ajl_FLD(ownd:acontrols[nContador],nFactorWitdh) <br /><br /> endif <br />*/</span><br /><br /> EndFor<br /> <span style=\"color: #00C800;\">EndIf</span><br /> <span style=\"color: #00C800;\">EndIf</span><br /><br /><span style=\"color: #00C800;\">endif</span><br /><span style=\"color: #00C800;\">EndIf</span><br /><br /><span style=\"color: #00C800;\">Return</span> <span style=\"color: #00C800;\">Nil</span><br /><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ajl_FLD<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> * se nao tiver fonte , nao faz<br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte, nLarguraDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDoControle ,nTime:= SECONDS<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">+3</span>, oFontTmp,ofont<br /> <br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <br /><br /> nLarguraDoControle := oq:<span style=\"color: #000000;\">nWidth</span><br /> nAlturaDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nHeight</span><br /> nLarguraDaFonte = nLarguraDaFonte*nf<br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /><br /> <span style=\"color: #00C800;\">If</span> oq:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TXBROWSE/\"</span><br /><br /> <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">acols</span><span style=\"color: #000000;\">)</span><br /> * pega tamanho anterior X factor<br /> ov:=oq:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> * nf<br /> * atualiza o novo tamanho da coluna<br /> oq:<span style=\"color: #000000;\">aCols</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:<span style=\"color: #000000;\">nWidth</span> := ov<br /> <span style=\"color: #00C800;\">next</span><br /><br /> elseif oq:<span style=\"color: #000000;\">classname</span>$<span style=\"color: #ff0000;\">\"/TDSAY/\"</span><br /><br /> oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> elseif oq:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TWBROWSE/\"</span><br /><br /> * atualiza a largura das colunas<br /> <span style=\"color: #00C800;\">for</span> i=<span style=\"color: #000000;\">1</span> <span style=\"color: #0000ff;\">to</span> len<span style=\"color: #000000;\">(</span>oq:<span style=\"color: #000000;\">acolsizes</span><span style=\"color: #000000;\">)</span><br /> oq:<span style=\"color: #000000;\">acolsizes</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>:=oq:<span style=\"color: #000000;\">acolsizes</span><span style=\"color: #000000;\">[</span>i<span style=\"color: #000000;\">]</span>*nf<br /> <span style=\"color: #00C800;\">next</span><br /><br /> <span style=\"color: #00C800;\">endif</span><br /><br />* oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> aja_FLD<span style=\"color: #000000;\">(</span>oq,nf<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> cFontName := iif <span style=\"color: #000000;\">(</span> oq:<span style=\"color: #000000;\">oFont</span>=<span style=\"color: #00C800;\">NIL</span> , <span style=\"color: #ff0000;\">\"NAOFAZ\"</span> ,oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">cFaceName</span> <span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> lFlagReleaseFont := .F., nAlturaDaFonte := <span style=\"color: #000000;\">0</span>,;<br /> nLarguraDaFonte, oFontTmp,ofont<br /><br /> <span style=\"color: #00C800;\">if</span> cfontname=<span style=\"color: #ff0000;\">\"NAOFAZ\"</span><br /> <span style=\"color: #00C800;\">return</span> <span style=\"color: #00C800;\">nil</span><br /> <span style=\"color: #00C800;\">endif</span><br /><br /> <span style=\"color: #00C800;\">if</span> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> = <span style=\"color: #00C800;\">NIL</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span> := <span style=\"color: #000000;\">0</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /> <span style=\"color: #00C800;\">endif</span> <span style=\"color: #B900B9;\">// *** AAA ***//</span><br /><br /> nLarguraDaFonte := oq:<span style=\"color: #000000;\">oFont</span>:<span style=\"color: #000000;\">nWidth</span><br /> nAlturadaFonte:=nalturadafonte*nf <br /><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp;<br /> <span style=\"color: #0000ff;\">NAME</span> cFontName;<br /> <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #0000ff;\">abs</span><span style=\"color: #000000;\">(</span>nLarguraDaFonte<span style=\"color: #000000;\">)</span>,<span style=\"color: #0000ff;\">ABS</span><span style=\"color: #000000;\">(</span>nAlturaDaFonte<span style=\"color: #000000;\">)</span><br /><br /> oq:<span style=\"color: #000000;\">SetFont</span><span style=\"color: #000000;\">(</span>oFontTmp<span style=\"color: #000000;\">)</span><br /> oFont := oq:<span style=\"color: #000000;\">ofont</span> <span style=\"color: #B900B9;\">//osay:GetFont()</span><br /><br /> <span style=\"color: #0000ff;\">RELEASE</span> <span style=\"color: #0000ff;\">FONT</span> oFontTmp<br /><br /> <span style=\"color: #00C800;\">If</span> oq:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TXBROWSE/\"</span><br /> oq:<span style=\"color: #000000;\">nRowHeight</span> := oq:<span style=\"color: #000000;\">nRowHeight*</span> nf<br /> oq:<span style=\"color: #000000;\">nStretchcol</span>:=STRETCHCOL_LAST<br /><br /> elseif oq:<span style=\"color: #000000;\">ClassName</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>$<span style=\"color: #ff0000;\">\"/TSBROWSE/\"</span><br /><br /> oq:<span style=\"color: #000000;\">nHeightCell</span>:=oq:<span style=\"color: #000000;\">nHeightCell</span> * nf<br /> * oq:<span style=\"color: #000000;\">nheightHead</span>:=oq:<span style=\"color: #000000;\">nheightHead*nf</span><br /> * oq:<span style=\"color: #000000;\">nheightFoot</span>:=oq:<span style=\"color: #000000;\">nheightFoot*nf</span><br /><br /><br /><br /> <span style=\"color: #00C800;\">endif</span><br /><br />* oq:<span style=\"color: #0000ff;\">Refresh</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #00C800;\">NIL</span><br /> </div>[/code:1jeigyv9]\n\nSaludos",
"time": "12:48",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "karinha"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2016-05-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Karinha\n\nMuchas gracias <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nSaluditos <!-- s:wink: --><img src=\"{SMILIES_PATH}/icon_wink.gif\" alt=\":wink:\" title=\"Wink\" /><!-- s:wink: -->",
"time": "07:02",
"topic": "APORTE: FUNCTION DISPLAY 2.0",
"username": "AIDA"
}
] |
APORTE: FUNCTION DISPLAY 2.0
|
[
{
"date": "2022-07-27",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola, es mi primera solicitud de ayuda para solucionar una obsesión \"[b:3ehm55rc]Colocar la leyenda (valor) sobre la barra[/b:3ehm55rc]\" en una \"grafica de barras\", por default la leyenda aparece a la derecha de la barra.\n\nAgradezco su atención",
"time": "14:45",
"topic": "APOYO PARA TGRAPH",
"username": "Piteco"
}
] |
APOYO PARA TGRAPH
|
[
{
"date": "2022-08-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "+1",
"time": "16:30",
"topic": "APOYO PARA TGRAPH",
"username": "jose_murugosa"
}
] |
APOYO PARA TGRAPH
|
[
{
"date": "2022-08-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Estimado Piteco,\n\nPuedes poner aqui un PRG de ejemplo de cómo lo estás haciendo ?\n\ngracias",
"time": "19:47",
"topic": "APOYO PARA TGRAPH",
"username": "Antonio Linares"
}
] |
APOYO PARA TGRAPH
|
[
{
"date": "2022-08-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Piteco, no se si es lo que buscas, pero si es que muestre los valores de las barras sería:\n[code=fw:1m2zo4u6]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">oGraph:<span style=\"color: #000000;\">lViewVal</span> := .t.</div>[/code:1m2zo4u6]",
"time": "00:07",
"topic": "APOYO PARA TGRAPH",
"username": "cmsoft"
}
] |
APOYO PARA TGRAPH
|
[
{
"date": "2022-08-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Saludos\nAlgún sitio para descargar estas clases?",
"time": "04:28",
"topic": "APOYO PARA TGRAPH",
"username": "jnavas"
}
] |
APOYO PARA TGRAPH
|
[
{
"date": "2022-08-10",
"forum": "FiveWin para Harbour/xHarbour",
"text": "La clase TGraph viene incluida en la distribucion de Fivewin",
"time": "06:09",
"topic": "APOYO PARA TGRAPH",
"username": "cnavarro"
}
] |
APOYO PARA TGRAPH
|
[
{
"date": "2006-09-29",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Existe AppBox para FWH 2.6\n\nDaniel Segura\n<!-- e --><a href=\"mailto:ciacpd@terra.com.br\">ciacpd@terra.com.br</a><!-- e -->",
"time": "21:20",
"topic": "APPBOX para 32",
"username": "Daniel Segura"
}
] |
APPBOX para 32
|
[
{
"date": "2006-09-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Daniel,\n\nQue es AppBox ?",
"time": "06:08",
"topic": "APPBOX para 32",
"username": "Antonio Linares"
}
] |
APPBOX para 32
|
[
{
"date": "2006-09-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "uma classe\n\nIncrustando ventanas externas / Embedding external windows\n\ntorna aplicações externas como se fosse feitas em fivewin\n\ndentro de uma dialog ou window voce coloca o internet explore como se fosse um componente, fica muito bom para fundo de dialog\n\nse quiser mando um exemplo em fw20 é so informar o email.\n\nbaixado de <!-- m --><a class=\"postlink\" href=\"http://www.fivewin.info/ulfiles/Appbox.zip\">http://www.fivewin.info/ulfiles/Appbox.zip</a><!-- m -->\n\nDaniel Segura\n<!-- e --><a href=\"mailto:ciacpd@terra.com.br\">ciacpd@terra.com.br</a><!-- e -->",
"time": "12:52",
"topic": "APPBOX para 32",
"username": "Daniel Segura"
}
] |
APPBOX para 32
|
[
{
"date": "2006-09-30",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Daniel,\n\nDe donde se puede descargar AppBox ?",
"time": "18:08",
"topic": "APPBOX para 32",
"username": "Antonio Linares"
}
] |
APPBOX para 32
|
[
{
"date": "2012-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi,\n\nI want to add CSV-files like into a DBF like this\n\n[list:jpvdeav8]11795129,\"2012-07-31\",42,9,\"\",\"Laadbrug\",8,1,0,0.00\n11795130,\"2012-07-31\",42,10,\"\",\"Ret.oude ketting\",8,1,0,0.00\n11795131,\"2012-07-31\",42,11,\"\",\"\",8,1,0,0.00\n11795132,\"2012-07-31\",42,12,\"\",\"HULSHOUT\",8,1,0,0.00\n11795133,\"2012-07-26\",84,1,\"\",\"Vervolg\",1,3,0,0.00\n11795134,\"2012-07-27\",97,1,\"\",\"JWJ-153\",1,0,0,0.00\n11795135,\"2012-07-27\",54,1,\"\",\"YRT-645\",1,0,0,0.00\n11795136,\"2012-07-27\",95,13,\"VERS\",\"DEINZE\",13,0,0,0.00\n11795137,\"2012-07-27\",95,14,\"\",\"13.30U - 17.30U\",13,0,0,0.00\n11795138,\"2012-07-27\",95,15,\"\",\"31545\",13,0,0,0.00\n11795139,\"2012-07-27\",95,16,\"\",\"laden3007\",13,0,0,0.00\n11795140,\"2012-07-27\",95,17,\"\",\"LONDERZEEL\",13,0,0,0.00\n11795141,\"2012-07-27\",91,11,\"VERS\",\"DEINZE\",11,2,0,0.00\n11795142,\"2012-07-27\",91,12,\"\",\"13.30U - 17.30U\",11,2,0,0.00\n11795143,\"2012-07-27\",91,13,\"\",\"31544\",11,2,0,0.00\n11795144,\"2012-07-27\",91,14,\"\",\"laden3007\",11,2,0,0.00\n[/list:u:jpvdeav8]\n\nAll fields are imported except the date.\nI have tried to use\n[code=fw:jpvdeav8]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\">SET DATE ansi</div>[/code:jpvdeav8]\nWithout result.\nDoes anyone know how to import this?\n\nThanks,\nMarc",
"time": "11:35",
"topic": "APPE FROM ...DELIMITED date-format question.",
"username": "Marc Vanzegbroeck"
}
] |
APPE FROM ...DELIMITED date-format question.
|
[
{
"date": "2012-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Dear Marc Vanzegbroeck,\n\nTry use numeric for date with format YYYYMMDD ,\n\nlike :\n\n11795129,20120731,42,9,\"\",\"Laadbrug\",8,1,0,0.00\n\n\nThank\n\nkok",
"time": "12:12",
"topic": "APPE FROM ...DELIMITED date-format question.",
"username": "kok joek hoa"
}
] |
APPE FROM ...DELIMITED date-format question.
|
[
{
"date": "2012-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks for the reply, but the problem is that I can't change this, because it's a CSV-file created by an SQL-command.\nI can't find how how to change the format in MySQL in an 'INTO OUTFILE' command.\nSo I need to solve this with Harbour..\n\nRegards,\nMarc",
"time": "12:16",
"topic": "APPE FROM ...DELIMITED date-format question.",
"username": "Marc Vanzegbroeck"
}
] |
APPE FROM ...DELIMITED date-format question.
|
[
{
"date": "2012-09-07",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi solved it with a workaround by first reading the file into a memofield and remove all '-' with a STRTRAN, and save it again.\n\nMarc",
"time": "13:03",
"topic": "APPE FROM ...DELIMITED date-format question.",
"username": "Marc Vanzegbroeck"
}
] |
APPE FROM ...DELIMITED date-format question.
|
[
{
"date": "2007-02-19",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigos del foro....\n\nResulta y pasa que tengo que convertir un archivo txt a una dbf lo estoy haciendo de la siguiente manera:\n\n[code:13m5hb2j]\n\n rutaf:=LFN2SFN(ruta)\n USE (oLamcla:tSube) ALIAS tSube NEW EXCLUSIVE\n ZAP\n dbgotop()\n APPEND FROM (rutaf) DELIMITED WITH \";\"\n dbgotop()\n\n[/code:13m5hb2j]\n\nEl problema es que no vale el WITH \";\" no valida el punto y coma, solo recibe lo que este delimitado por comas \",\".\n\nAlguien me puede indicar por que sucede esto, o que debo hacer para que si tome el valor de punto y coma \";\".\n\nDe antemano gracias",
"time": "23:15",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "leandro"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-20",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigo\n\nUse SET DEMILITER TO \";\" no cabecalho do programa e veja se funciona.",
"time": "05:06",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "Rochinha"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-20",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Nop <!-- s:( --><img src=\"{SMILIES_PATH}/icon_sad.gif\" alt=\":(\" title=\"Sad\" /><!-- s:( --> \n\nRochinha:\n\nNo me funciono... de todas formas muchas gracias por la respuesta. \n\nUn abrazo.",
"time": "20:37",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "leandro"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "OK\n\nTry\n[code:31d21zwd]\nAPPEND FROM (rutaf) DELIMITED WITH chr(59)\n[/code:31d21zwd]",
"time": "01:19",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "Rochinha"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigo Leandro,\n\nYo lo hago de la siguiente forma:\n\n1) Creo un fichero temporal, con un solo campo (muy grande)\nDbCreate( \"tFichero.dbf\",{ {\"NOMBRE\", \"C\", 256, 0} } )\n\n2) Hago el Append From a este fichero temporal :\nUSE tFichero new EXCLUSIVE\nAPPE FROM (cFichero) SDF\nDBGOTOP()\n\n3) Abro el fichero definitivo y voy copiando la información desde el fichero temporal al definitivo, usando la claúsula SUBSTRING para cada uno de los campos.\n\n definitivo->NOMBRE:= SUBS(tFichero->NOMBRE, 1, 24)",
"time": "05:17",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "Manuel Valdenebro"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Rochinha de Nuevo gracias por tu respuesta hice el intento pero no funca..\n\njejeje\n\nManuel.. muchas gracias por tu respuesta creo que es lo que voy a hacer... voy a dejar la pereza y montar la rutina... De paso te hago una preguntica... ¿Como detecto si hay un tab ?, en caso que el archivo no venga separado por \";\" si no por \"tab\"? Valga la rebusnancia.\n\ny de Nuevo gracias por la ayuda.",
"time": "17:54",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "leandro"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Solo se acepta como delimitador la COMA \",\" , asi que para otro tipo de caracter delimitador diferente a la COMA\",\" solo te queda crear una funcion para leer tu archivo que contenga otro tipo de delimitadores, no hay otra.\n\n\nJaime",
"time": "18:24",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "jacgsoft"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Amigo Leandro,\n\nCuando al mandato APPEND FROM le añade la claúsula SDF los registros y los campos tienen una longitud fija. De esa forma, es facil saber donde empieza cada campo y donde termina.",
"time": "18:27",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "Manuel Valdenebro"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "No me do por vencido.\n\nAmigo usa la solucion de Manuel Valdenebro para cada linha del fichero.\n\nUsa mi funcion em <!-- m --><a class=\"postlink\" href=\"http://www.pctoledo.com.br/forum/viewtopic.php?t=5306\">http://www.pctoledo.com.br/forum/viewtopic.php?t=5306</a><!-- m --> asi:\n\naArrayObtido := StringToArray( \"O|Rochinha|es|tu|amigo\", \";\" )\n\nResultado:\n\n? aArrayObtido[1] // Mostra O\n? aArrayObtido[2] // Mostra Rochinha\n? aArrayObtido[3] // Mostra Es\n? aArrayObtido[4] // Mostra Tu\n? aArrayObtido[5] // Mostra Amigo\n\nFica por tu conta ahora.",
"time": "23:35",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "Rochinha"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Rochinha,\n\nExcelente función, verdaderamente combinándola con la idea de Manuel se logra un \"append from\" cualquier cosa, sin bases intermedias y con excelente desempeño!!!",
"time": "04:53",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "jose_murugosa"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Obrigado Jose, no podemos vencer sempre, mas lutar sempre!",
"time": "05:38",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "Rochinha"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2007-02-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Muchas Gracias Rochinha, de verdad que me uno a las felicitaciones de jose excelente funcion, problema solucionado......\n\nDe nuevo Muchas Gracias",
"time": "16:53",
"topic": "APPEND FROM (rutaf) DELIMITED WITH \";\"",
"username": "leandro"
}
] |
APPEND FROM (rutaf) DELIMITED WITH ";"
|
[
{
"date": "2010-08-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Seria posible utilizar un control \"progress bar\" durante un APPEND FROM?\nAlguna sugerencia o codigo de alguien que lo haya implementado?\n\nGracias\n\nGeorge",
"time": "20:19",
"topic": "APPEND FROM + Progress Bar",
"username": "George"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2010-08-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hola\n\nYo utilizo con un MsgRun..\n\n\n[code=fw:32q6igl7]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"> MsgRun<span style=\"color: #000000;\">(</span> <span style=\"color: #ff0000;\">\"Espere, importando \"</span>, <span style=\"color: #ff0000;\">\"Usuario\"</span>,;<br /> <span style=\"color: #000000;\">{</span> || __dbApp<span style=\"color: #000000;\">(</span> cPath + <span style=\"color: #ff0000;\">\"<span style=\"color: #000000;\">\\\"</span>+cDbf, {},,,,,.F., \"</span>DBFCDX<span style=\"color: #ff0000;\">\") } )<br /></span></div>[/code:32q6igl7]\n\npodrias hacerlo dentro del codeblock <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "22:59",
"topic": "APPEND FROM + Progress Bar",
"username": "Patricio Avalos Aguirre"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2010-08-07",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Eu, utilizo desta forma:\n\n\n APPEND FROM IMOVEL ;\n FOR If(lNewFile,(oMtr1:nTotal:=Reccount(), Sysrefresh(), lNewFile:=.f.,.t. ), (nPercent1++,oMtr1:Set(nPercent1),SysRefresh(),.t. ) )",
"time": "01:06",
"topic": "APPEND FROM + Progress Bar",
"username": "ronaldo"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2010-08-07",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias Ronaldo y Patricio por su ayuda.\nCreo cualquiera de las dos soluciones propuesta por ustedes me sirve.\n\nSaludos\n\nGeorge",
"time": "20:19",
"topic": "APPEND FROM + Progress Bar",
"username": "George"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2010-08-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Ronaldo,\n\nEstá muy ben. ¿Se podría utilizar un CodeBlock o llamara una funcción desde la clausula FOR?\n\nGracias",
"time": "10:49",
"topic": "APPEND FROM + Progress Bar",
"username": "antolin"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2010-08-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Añadiendo un dialogo NOWAIT con el control METER, el siguiente codigo funciona:\n[code=fw:yd391xti]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /> MsgRun<span style=\"color: #000000;\">(</span>cMsgRun, <span style=\"color: #ff0000;\">\"Creating Transactions file January 2010 [BETA 0.9]\"</span>,;<br /> <span style=\"color: #000000;\">{</span> || TransaJan2010<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> TransaJan2010<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> APPEND <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"Jan2010.CSV\"</span> <span style=\"color: #00C800;\">FOR</span> <span style=\"color: #000000;\">(</span>nPercent1++, oMtr1:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">(</span>nPercent1<span style=\"color: #000000;\">)</span>, SysRefresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span> DELIMITED WITH <span style=\"color: #000000;\">(</span>,<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">(</span>.T.<span style=\"color: #000000;\">)</span><br /> </div>[/code:yd391xti]\n\nEl problema es que hice una prueba añadiendo cerca de 800,000 records con los siguientes resultados:\nA) Sin el METER tarda 1.5 minutos\nB) Con el METER tarda casi 7 minutos.\n\nHabra algun otro modo de hacerlo o alguna otra sugerencia?\n\nSaludos\n\n\nGeorge",
"time": "21:13",
"topic": "APPEND FROM + Progress Bar",
"username": "George"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2010-08-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "George..\n\n\nPueds intentar hacer el SysRefresh() cada \"x\" registros, por ejemplo 100, 200, 500 o 1000",
"time": "21:27",
"topic": "APPEND FROM + Progress Bar",
"username": "Daniel Garcia-Gil"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2010-08-09",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias Daniel por tu sugerencia.\nCon el siguiente cambio en APPEND FROM se toma ahora cerca de 2 minutos lo cual es aceptable.\n\n[code=fw:39zjyunw]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">FUNCTION</span> TransaJan2010<span style=\"color: #000000;\">(</span>nPercent1, oMtr1<span style=\"color: #000000;\">)</span><br /> APPEND <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #ff0000;\">\"Jan2010.CSV\"</span> <span style=\"color: #00C800;\">WHILE</span> <span style=\"color: #000000;\">(</span>nPercent1++, oMtr1:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">(</span>nPercent1<span style=\"color: #000000;\">)</span>, IIF<span style=\"color: #000000;\">(</span> <span style=\"color: #000000;\">(</span>nPercent1/<span style=\"color: #000000;\">1000</span> - int<span style=\"color: #000000;\">(</span>nPercent1/<span style=\"color: #000000;\">1000</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span> = <span style=\"color: #000000;\">0</span> , SysRefresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, <span style=\"color: #000000;\">)</span>, <span style=\"color: #00C800;\">TRUE</span> <span style=\"color: #000000;\">)</span> DELIMITED WITH <span style=\"color: #000000;\">(</span>,<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">(</span>.T.<span style=\"color: #000000;\">)</span><br /> </div>[/code:39zjyunw]\n\nGeorge",
"time": "22:55",
"topic": "APPEND FROM + Progress Bar",
"username": "George"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2022-02-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Buen dia\n\nAlguien tiene el ejemplo completo de como funciona un APPEND FROM con el PROGRESS BAR, trato de implementar el que aqui adjuntan pero no me sale bien, GRACIAS",
"time": "17:22",
"topic": "APPEND FROM + Progress Bar",
"username": "Enrrique Vertiz"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2022-02-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Enrique aqui tienes un ejemplo de la implementación de la barra de progreso leyendo el CSV que está en el array. \n[code=fw:1w7qxiab]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><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;\">(</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #00C800;\">LOCAL</span> oDlg, oMeter, nActual := <span style=\"color: #000000;\">0</span><br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">BRUSH</span> oBrush <span style=\"color: #0000ff;\">COLOR</span> CLR_LGRAY<br /> <span style=\"color: #0000ff;\">DEFINE</span> <span style=\"color: #0000ff;\">WINDOW</span> oDlg ;<br /> <span style=\"color: #0000ff;\">TITLE</span> <span style=\"color: #ff0000;\">\"Reading CSV file in array\"</span>;<br /> <span style=\"color: #0000ff;\">BRUSH</span> oBrush;<br /> <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">0</span>,<span style=\"color: #000000;\">0</span> <span style=\"color: #0000ff;\">TO</span> <span style=\"color: #000000;\">20</span>, <span style=\"color: #000000;\">80</span><br /><br /> @ <span style=\"color: #000000;\">8</span>, <span style=\"color: #000000;\">10</span> METER oMeter <span style=\"color: #0000ff;\">VAR</span> nActual TOTAL <span style=\"color: #000000;\">100</span> <span style=\"color: #0000ff;\">OF</span> oDlg <span style=\"color: #0000ff;\">SIZE</span> <span style=\"color: #000000;\">500</span>, <span style=\"color: #000000;\">30</span><br /><br /> <span style=\"color: #0000ff;\">ACTIVATE</span> <span style=\"color: #0000ff;\">WINDOW</span> oDlg <span style=\"color: #0000ff;\">ON</span> <span style=\"color: #0000ff;\">INIT</span> <span style=\"color: #000000;\">(</span> oDlg:<span style=\"color: #0000ff;\">Center</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, ReadCSV<span style=\"color: #000000;\">(</span>oDlg, oMeter<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> ReadCSV<span style=\"color: #000000;\">(</span>oDlg, oMeter<span style=\"color: #000000;\">)</span> <br /> <span style=\"color: #00C800;\">LOCAL</span> cMsgRun := <span style=\"color: #ff0000;\">\"Procedure in execution; please Wait...\"</span>, cMsgArrayData := <span style=\"color: #ff0000;\">\"Creating CSV array data; please wait...\"</span><br /> <span style=\"color: #00C800;\">LOCAL</span> nStart := Seconds<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>, nEnd, aData := <span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span>, cText := <span style=\"color: #ff0000;\">\"\"</span>, cMsgMemo := <span style=\"color: #ff0000;\">\"Reading CSV data source; please wait...\"</span><br /><br /> <span style=\"color: #B900B9;\">//===================================================================================================================</span><br /> <span style=\"color: #B900B9;\">// STEP ONE: Read CSV File</span><br /> <span style=\"color: #B900B9;\">//===================================================================================================================</span><br /> cFileCSV = <span style=\"color: #ff0000;\">\"your_file.csv\"</span><br /> MsgRun<span style=\"color: #000000;\">(</span>cMsgMemo, <span style=\"color: #ff0000;\">\"Main\"</span>, <span style=\"color: #000000;\">{</span> | | cText := fCSVMemo<span style=\"color: #000000;\">(</span>cFileCSV<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> Sysrefresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//===================================================================================================================</span><br /> <span style=\"color: #B900B9;\">// STEP TWO: Read each line and save the result in array aData</span><br /> <span style=\"color: #B900B9;\">//===================================================================================================================</span><br /> MsgRun<span style=\"color: #000000;\">(</span>cMsgArrayData, <span style=\"color: #ff0000;\">\"Main\"</span>, <span style=\"color: #000000;\">{</span> | | aData := HB_ATokens<span style=\"color: #000000;\">(</span> cText, Chr<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>, .t., .t. <span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> syswait<span style=\"color: #000000;\">(</span>.<span style=\"color: #000000;\">05</span><span style=\"color: #000000;\">)</span><br /> Sysrefresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /> ? <span style=\"color: #ff0000;\">\"Total rows in array: \"</span>, len<span style=\"color: #000000;\">(</span>aData<span style=\"color: #000000;\">)</span>, <span style=\"color: #ff0000;\">\" \"</span>, <span style=\"color: #ff0000;\">\"Delay (secs): \"</span>, <span style=\"color: #000000;\">(</span>Seconds<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span> - nStart<span style=\"color: #000000;\">)</span><br /><br /> separate_fields_in_array<span style=\"color: #000000;\">(</span>aData, oDlg, oMeter<span style=\"color: #000000;\">)</span><br /><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> fCSVMemo<span style=\"color: #000000;\">(</span>cFileCSV<span style=\"color: #000000;\">)</span><br /> cText := StrTran<span style=\"color: #000000;\">(</span> MemoRead<span style=\"color: #000000;\">(</span> cFileCSV <span style=\"color: #000000;\">)</span>, CRLF, Chr<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">(</span>cText<span style=\"color: #000000;\">)</span><br /><br /><span style=\"color: #00C800;\">FUNCTION</span> separate_fields_in_array<span style=\"color: #000000;\">(</span>aData, oDlg, oMeter<span style=\"color: #000000;\">)</span><br /><br /> <span style=\"color: #B900B9;\">//=======================================================================================================================</span><br /> <span style=\"color: #B900B9;\">// STEP THREE: Separate fields in each line based in delimiters and save the info in Array</span><br /> <span style=\"color: #B900B9;\">//=======================================================================================================================</span><br /> nLenData := int<span style=\"color: #000000;\">(</span>len<span style=\"color: #000000;\">(</span>aData<span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span><br /> nDivisor := int<span style=\"color: #000000;\">(</span>nLenData/<span style=\"color: #000000;\">100</span><span style=\"color: #000000;\">)</span><br /> IIF<span style=\"color: #000000;\">(</span> nDivisor < <span style=\"color: #000000;\">1</span>, nDivisor := <span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">)</span><br /> oMeter:<span style=\"color: #000000;\">nTotal</span> := nLenData<br /> oMeter:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">)</span><br /><br /> AEval<span style=\"color: #000000;\">(</span> aData, <span style=\"color: #000000;\">{</span> |c,i| c := StrTran<span style=\"color: #000000;\">(</span> c, Chr<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">1</span><span style=\"color: #000000;\">)</span>, CRLF <span style=\"color: #000000;\">)</span>, aData<span style=\"color: #000000;\">[</span> i <span style=\"color: #000000;\">]</span> := HB_ATokens<span style=\"color: #000000;\">(</span> c, <span style=\"color: #ff0000;\">\",\"</span>, .t., .t. <span style=\"color: #000000;\">)</span>, MyProgressBar<span style=\"color: #000000;\">(</span>i, nDivisor, oMeter, oDlg<span style=\"color: #000000;\">)</span> <span style=\"color: #000000;\">}</span> <span style=\"color: #000000;\">)</span><br /> nSec4 := Second<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /> oMeter:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">(</span>nLenData<span style=\"color: #000000;\">)</span><br /> syswait<span style=\"color: #000000;\">(</span>.<span style=\"color: #000000;\">05</span><span style=\"color: #000000;\">)</span><br /> Sysrefresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><br /><br /><br /><span style=\"color: #B900B9;\">//================================================================================================================</span><br /><span style=\"color: #00C800;\">FUNCTION</span> MyProgressBar<span style=\"color: #000000;\">(</span>i, nDivisor, oMeter, oDlg<span style=\"color: #000000;\">)</span><br /> IIF<span style=\"color: #000000;\">(</span>i/nDivisor = int<span style=\"color: #000000;\">(</span>i/nDivisor<span style=\"color: #000000;\">)</span>,;<br /> <span style=\"color: #000000;\">(</span>oMeter:<span style=\"color: #000000;\">Set</span><span style=\"color: #000000;\">(</span>i<span style=\"color: #000000;\">)</span>,sysrefresh<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span><span style=\"color: #000000;\">)</span>,<span style=\"color: #000000;\">)</span><br /><span style=\"color: #00C800;\">RETURN</span> <span style=\"color: #000000;\">(</span>.T.<span style=\"color: #000000;\">)</span><br /><br /><br /> </div>[/code:1w7qxiab]",
"time": "18:54",
"topic": "APPEND FROM + Progress Bar",
"username": "George"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2022-02-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "George\n\nGRACIAS eso era lo que necesitaba !!! y es rapidisimo en comparacion con leer Excel",
"time": "20:35",
"topic": "APPEND FROM + Progress Bar",
"username": "Enrrique Vertiz"
}
] |
APPEND FROM + Progress Bar
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I don't really know if this an XHB error or FWH error.\n\nIt worked before Feb 2006 (XHB and FWH), but now it crashes\n[code:32k9g5g2]\n Error description: Error DBFCDX/1023 Exclusive required\n\n Called from: => __DBPACK(0)\n Called from: dbsdf.prg => __DBSDF(241)\n Called from: IMP_CLK.PRG => IMPORT_HRS(343)\n\n Line 343 contained this below, but never had problems before 10/mar/2006\n\n append from (xClPath+\"_MAST.TXT\") SDF \n[/code:32k9g5g2]\n\nMy search for DBSDF.PRG in FWH\\SOURCE failed of course ...\n\nThe original code was as this:\n\n[code:32k9g5g2]\n Create (xClPath+\"_MIMP.DBF\") FROM (xClPath+\"_MAST.STR\")\n newinfile := Select()\n SELECT (newinfile)\n append from (xClPath+\"_MAST.TXT\") SDF\n (newinfile)->(DBCLOSEAREA())\n[/code:32k9g5g2]\n\nMy solution was to add this line:\n[code:32k9g5g2]\n Create (xClPath+\"_MIMP.DBF\") FROM (xClPath+\"_MAST.STR\")\n newinfile := Select()\n SELECT (newinfile)\n USE (xClPath+\"_MIMP.DBF\") alias QQQQ EXCLUSIVE // added\n append from (xClPath+\"_MAST.TXT\") SDF\n (newinfile)->(DBCLOSEAREA())\n[/code:32k9g5g2]\n\nAny advise ?\n\nRegards, saludos\nEvans",
"time": "10:57",
"topic": "APPEND FROM ... SDF",
"username": "E. Bartzokas"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "The following sample works fine. Can you modify it to reproduce the problem?\n\n[code:31wd44ht]FUNCTION MAIN()\n\n USE TEST SHARED\n\n COPY TO TMPTEST FOR .F.\n\n USE TMPTEST SHARED\n\n APPEND FROM TEST\n\n GO TOP\n\n BROWSE()\n\n CLOSE\n\n FERASE( \"TMPTEST.DBF\" )\n\n RETURN NIL[/code:31wd44ht]\n\nEMG",
"time": "11:09",
"topic": "APPEND FROM ... SDF",
"username": "Enrico Maria Giordano"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sorry for the long example.\nThis example you can save in \\FWH\\SAMPLES and run it.\nI use XHB Professional ver. 4.01 Jan 24 2006 09:15:21\n\nAPPEND FROM ... DATABASE works fine.\nAPPEND FROM ... SDF does not work (see the error below)\n\nThanks for the interest\nregards\nEvans\n\n[code:13ocrqsk]\n#INCLUDE 'FIVEWIN.CH'\n\nFunction MAIN()\n\n // This example was ran in FWH\\SAMPLES\n \n USE CUSTOMER SHARED\n\n COPY TO TMPTEST.TXT FOR RTrim(first) == 'Homer' SDF // SDF correctly outputs 5 records\n COPY TO TMPTEST.DBF FOR RTrim(first) == 'Andy' // DBF correctly outputs 2 records\n \n USE TMPTEST SHARED\n BROWSE() // Contains 2 records\n\n APPEND FROM TMPTEST.TXT SDF // SDF crashes here !!!\n \n /*\n Error description: Error DBFNTX/1023 Exclusive required\n Stack Calls\n ===========\n Called from: => __DBPACK(0)\n Called from: dbsdf.prg => __DBSDF(241)\n Called from: APPEND_FROM.PRG => MAIN(15)\n */\n\n GO TOP\n BROWSE()\n CLOSE\n FERASE( \"TMPTEST.TXT\" ) // .TXT !!!\n\n RETURN NIL\n \n\n\n// Suggested solution by Antonio - Must be added to a PRG\n\n#pragma BEGINDUMP \n\n#include \"hbapi.h\" \n#include \"hbapiitm.h\" \n\nPHB_SYMB hb_dynsymSymbol( PHB_DYNS pDynSym ) \n{ \nreturn pDynSym->pSymbol; \n} \n\n#pragma ENDDUMP \n \n\n [/code:13ocrqsk]",
"time": "15:53",
"topic": "APPEND FROM ... SDF",
"username": "E. Bartzokas"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Confirmed. Already reported in the xHarbour developer's mailing-list.\n\nThank you.\n\nEMG",
"time": "16:07",
"topic": "APPEND FROM ... SDF",
"username": "Enrico Maria Giordano"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"E. Bartzokas\":lov6xfw2]Sorry for the long example.\nThis example you can save in \\FWH\\SAMPLES and run it.\nI use XHB Professional ver. 4.01 Jan 24 2006 09:15:21\n\nAPPEND FROM ... DATABASE works fine.\nAPPEND FROM ... SDF does not work (see the error below)\n\nThanks for the interest\nregards\nEvans\n\n[code:lov6xfw2]\n#INCLUDE 'FIVEWIN.CH'\n\nFunction MAIN()\n\n // This example was ran in FWH\\SAMPLES\n \n USE CUSTOMER SHARED\n\n COPY TO TMPTEST.TXT FOR RTrim(first) == 'Homer' SDF // SDF correctly outputs 5 records\n COPY TO TMPTEST.DBF FOR RTrim(first) == 'Andy' // DBF correctly outputs 2 records\n \n USE TMPTEST SHARED\n BROWSE() // Contains 2 records\n\n APPEND FROM TMPTEST.TXT SDF // SDF crashes here !!!\n \n /*\n Error description: Error DBFNTX/1023 Exclusive required\n Stack Calls\n ===========\n Called from: => __DBPACK(0)\n Called from: dbsdf.prg => __DBSDF(241)\n Called from: APPEND_FROM.PRG => MAIN(15)\n */\n\n GO TOP\n BROWSE()\n CLOSE\n FERASE( \"TMPTEST.TXT\" ) // .TXT !!!\n\n RETURN NIL\n \n\n\n// Suggested solution by Antonio - Must be added to a PRG\n\n#pragma BEGINDUMP \n\n#include \"hbapi.h\" \n#include \"hbapiitm.h\" \n\nPHB_SYMB hb_dynsymSymbol( PHB_DYNS pDynSym ) \n{ \nreturn pDynSym->pSymbol; \n} \n\n#pragma ENDDUMP \n \n\n [/code:lov6xfw2][/quote:lov6xfw2]\n\nI have reported this bug over a month ago in the xharbour ng with a sample, but no one replied !!!!! <!-- s:? --><img src=\"{SMILIES_PATH}/icon_confused.gif\" alt=\":?\" title=\"Confused\" /><!-- s:? --> \n\nA fix will be opening the file \"exclusive\"\n <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> \nRichard",
"time": "17:11",
"topic": "APPEND FROM ... SDF",
"username": "Richard Chidiak"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2006-03-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "You may directly report it to Przemek at <!-- e --><a href=\"mailto:druzus@priv.onet.pl\">druzus@priv.onet.pl</a><!-- e --> as he is the RDDs best expert.",
"time": "19:08",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-08",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Atualizei minhas versão tanto do Fivewin quanto Xharbour para FHW7.05 e Xharb99.71 e me deparei com dois problemas até o momento:\n\n1- @ 0.35,8.5 SAY \" \" RAISED BOX COLOR CLR_BLACK,CLR_WHITE SIZE 95,50 OF oDlg\nVersões anteriores fazia um box de linha preta e findo branco, agora fax somente o box com a linha preta e não aceito o fundo que defino não importa a cor\n\n2- Dou um APPEND FROM TEXTO.TXT SDF e não funciona nesta nova versão\n\nO que posso fazer?",
"time": "20:58",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Paulo,\n\nEstas usando este xharbour ? \n<!-- w --><a class=\"postlink\" href=\"http://www.fivetechsoft.com/files/xharbour.exe\">www.fivetechsoft.com/files/xharbour.exe</a><!-- w -->",
"time": "00:39",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Sim estou usando esse versão, baixei novamente para ter certeza.\nMas continua sem funcionar o APPEND FROM TEXTO.TXT SDF e as cores do SAY.\nEstou usando FWH7.05 + Xharbour 0.99.71 (simplex)",
"time": "00:56",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Paulo,\n\n> APPEND FROM TEXTO.TXT SDF\n\nPor favor envíame por email en un fichero ZIP incluyendo Texto.txt y la DBF en donde vas a añadirlo\n\nVamos a revisar el tema de los colores que nos comentas",
"time": "10:45",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Enviei para seu e-mail.",
"time": "16:36",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Paulo,\n\nAñade el texto de esta forma:\n[code:qeio6e7i]\n#include \"FiveWin.ch\"\n\nfunction Main()\n\n local cText := MemoRead( \"texto.txt\" ), n\n\n DBCREATE( \"NOTICW.DBF\", {{ \"LINHA\",\"C\",255,0 }} )\n\n USE NOTICW.DBF\n\n for n = 1 to MLCount( cText )\n APPEND BLANK\n field->Linha := MemoLine( cText,, n )\n next \n\n GO TOP\n Browse()\n\nreturn nil\n[/code:qeio6e7i]",
"time": "19:26",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "El color del SAY funciona bien aqui. Estás usando temas de XP ?\n[url=http://imageshack.us:3icgcgwa][img:3icgcgwa]http://img354.imageshack.us/img354/6334/colorfp9.png[/img:3icgcgwa][/url:3icgcgwa]",
"time": "19:34",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":14c6msfy]Paulo,\n\nAñade el texto de esta forma:\n[code:14c6msfy]\n#include \"FiveWin.ch\"\n\nfunction Main()\n\n local cText := MemoRead( \"texto.txt\" ), n\n\n DBCREATE( \"NOTICW.DBF\", {{ \"LINHA\",\"C\",255,0 }} )\n\n USE NOTICW.DBF\n\n for n = 1 to MLCount( cText )\n APPEND BLANK\n field->Linha := MemoLine( cText,, n )\n next \n\n GO TOP\n Browse()\n\nreturn nil\n[/code:14c6msfy][/quote:14c6msfy]\n\nFuncionou, mas não é igual a Função APPEND FROM TEXTO.TXT SDF, o arquivo gerado pela Função acima gerou um DBF diferente do DBF do APPEND FROM SDF.\nPreciso que seja igual a APPEND FROM SDF",
"time": "21:45",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-09",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":rqvinfd4]El color del SAY funciona bien aqui. Estás usando temas de XP ?\n[url=http://imageshack.us:rqvinfd4][img:rqvinfd4]http://img354.imageshack.us/img354/6334/colorfp9.png[/img:rqvinfd4][/url:rqvinfd4][/quote:rqvinfd4]\nSim uso tema do WINDOWS num arquivo .manifest, tirei o arquivo .manifest e funcionou corretamente.\nPorém em versões anteriores ele funcionava independente do arquivo .Manisfest.",
"time": "21:50",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Paulo,\n\n> Preciso que seja igual a APPEND FROM SDF\n\nEs un comportamiento propio de xharbour que tendrás que reportar en el foro de xharbour, gracias",
"time": "01:06",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":32c9ex2z]Paulo,\n\n> Preciso que seja igual a APPEND FROM SDF\n\nEs un comportamiento propio de xharbour que tendrás que reportar en el foro de xharbour, gracias[/quote:32c9ex2z]\n\nO que fazer neste caso, eu uso a versão FWH7.05, qual outro build do xHarbour posso utilizar e como recomplicar as LIBs do FWH?",
"time": "13:02",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Paulo,\n\nLa mejor solución es que comentes el problema en comp.lang.xharbour (puedes registrarte y escribir en él desde Google, groups). Seguramente lo arreglaran en sólo unos dias",
"time": "13:07",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Como conseguir outro build compativel com a versão 7.05 para fazer testes, a versão do xHarbour 99.70 é compativel? Onde consegui-la?",
"time": "23:39",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Paulo,\n\nEl pcode de otras versiones de xharbour no es compatible con FWH 7.05. Lo más fácil es que pidas ayuda en comp.lang.xharbour\n\nOtra solución sería reconstruir FiveHX.lib con el build de xharbour que te funciona bien con el APPEND FROM ... SDF",
"time": "00:15",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":vmgfc2af]Paulo,\n\nEl pcode de otras versiones de xharbour no es compatible con FWH 7.05. Lo más fácil es que pidas ayuda en comp.lang.xharbour\n\nOtra solución sería reconstruir FiveHX.lib con el build de xharbour que te funciona bien con el APPEND FROM ... SDF[/quote:vmgfc2af]\n\nComo fazer para reconstruir a FiveHx.Lib? pretento testar com o build 99.70",
"time": "00:37",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "for %%f in (*.prg) do c:\\harbour\\bin\\harbour %%f /n /ic:\\fwh\\include;c:\\harbour\\include \nfor %%f in (*.c) do c:\\bcc55\\bin\\bcc32 -c -Ic:\\bcc55\\include;c:\\harbour\\include %%f \nfor %%f in (*.obj) do c:\\bcc55\\bin\\tlib fivehx.lib -+ %%f /0 /P32,,",
"time": "01:09",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Antonio Linares\":2qinkj2f]for %%f in (*.prg) do c:\\harbour\\bin\\harbour %%f /n /ic:\\fwh\\include;c:\\harbour\\include \nfor %%f in (*.c) do c:\\bcc55\\bin\\bcc32 -c -Ic:\\bcc55\\include;c:\\harbour\\include %%f \nfor %%f in (*.obj) do c:\\bcc55\\bin\\tlib fivehx.lib -+ %%f /0 /P32,,[/quote:2qinkj2f]\n\nEm qual diretório do FWH devo executar os comandos acima?",
"time": "02:20",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Es preferible que crees un directorio nuevo en donde copies todos los PRGs de source\\classes y source\\function",
"time": "09:32",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Resolvido\n\nmat_stru={}\nAadd(mat_stru,{\"LINHA\",\"C\",255,0})\nDBCREATE(\"NOTICW.DBF\",mat_stru)\nUSE NOTICW.DBF\nSET(_SET_EOL,CHR(10)) // Muda o caracter de finalização APPEND de CHR(10)+CHR(13) para CHR(10)\nAPPEND FROM NOTIC.DAT SDF\nGO TOP\nSET(_SET_EOL,cSvSetEOL) //Retorno o caracter de finalização default do APPEND CHR(10)+CHR(13)\n\nResolvido por Flavio: <!-- m --><a class=\"postlink\" href=\"http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=10067\">http://www.fivewin.com.br/forum/topic.a ... C_ID=10067</a><!-- m -->",
"time": "14:28",
"topic": "APPEND FROM ... SDF",
"username": "pauloperes"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2007-06-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "bien <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "14:38",
"topic": "APPEND FROM ... SDF",
"username": "Antonio Linares"
}
] |
APPEND FROM ... SDF
|
[
{
"date": "2009-03-26",
"forum": "FiveWin para CA-Clipper",
"text": "Hola amigos, son mis primeros pasos con Clipper y tengo un problema que no pude resolver, tal vez me puedan ayudar dándome una pista. Desde el Append From quiero tomar un archivo .csv con ; (punto y coma) como separadores para meterlos en una tabla y me levanta todos los datos en el primer campo con el ; incluido, en lugar de meterlos en cada uno de los campos correspondientes.",
"time": "13:50",
"topic": "APPEND FROM DE CLIPPER",
"username": "OLODUM"
}
] |
APPEND FROM DE CLIPPER
|
[
{
"date": "2009-03-26",
"forum": "FiveWin para CA-Clipper",
"text": "Append From xxx.cvs DELIMITER \";\"\n\nSalu2",
"time": "14:44",
"topic": "APPEND FROM DE CLIPPER",
"username": "Willi Quintana"
}
] |
APPEND FROM DE CLIPPER
|
[
{
"date": "2009-03-26",
"forum": "FiveWin para CA-Clipper",
"text": "Muchas Gracias por tu Ayuda Willi . Saludos !",
"time": "16:36",
"topic": "APPEND FROM DE CLIPPER",
"username": "OLODUM"
}
] |
APPEND FROM DE CLIPPER
|
[
{
"date": "2013-11-19",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Estoy tratando de importar datos de un fichero txt en el que los datos están delimitado con un * pero no logro importar más que el primer dato. Seguramente estaré haciendo algo mal. ¿Alguna sugerencia? Este es el código:\n[code=fw:2n3l0ufg]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">Local</span> cNombreFi:=<span style=\"color: #ff0000;\">\"prueba.txt\"</span><br /><span style=\"color: #00C800;\">Local</span> aDbf:=<span style=\"color: #000000;\">{</span><span style=\"color: #000000;\">}</span><br /><span style=\"color: #B900B9;\">//</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TIPO\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">1</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"DNI\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"NOMBRE\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"APE1\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"APE2\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">10</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"DOMICILIO\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">41</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"CPOSTAL\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">5</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"NPROVIN\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">2</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"NLOCA\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">3</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> AADD<span style=\"color: #000000;\">(</span>aDbf,<span style=\"color: #000000;\">{</span><span style=\"color: #ff0000;\">\"TELEFONO\"</span>,<span style=\"color: #ff0000;\">\"C\"</span>,<span style=\"color: #000000;\">9</span>,<span style=\"color: #000000;\">0</span><span style=\"color: #000000;\">}</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">//</span><br /> DBCREATE<span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"PRUEBA\"</span>,aDbf<span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">//</span><br /> DbUseArea<span style=\"color: #000000;\">(</span>.T.,,<span style=\"color: #ff0000;\">\"PRUEBA\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">//</span><br /> APPEND <span style=\"color: #0000ff;\">FROM</span> <span style=\"color: #000000;\">(</span>cNombreFi<span style=\"color: #000000;\">)</span> DELIMITED WITH <span style=\"color: #000000;\">(</span><span style=\"color: #ff0000;\">\"*\"</span><span style=\"color: #000000;\">)</span><br /> <span style=\"color: #B900B9;\">//</span><br /><br /> </div>[/code:2n3l0ufg]",
"time": "20:33",
"topic": "APPEND FROM DELIMITED",
"username": "Manuel Aranda"
}
] |
APPEND FROM DELIMITED
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.