topic
stringlengths
1
63
text
stringlengths
1
577k
problema con get en folder
Te falla en todos los GETs de todos esos diálogos ? Que versión de FWH usas ?
problema con get en folder
Antonio, falla en todos los gets. Mi version de FWH es la 12.04, Harbour 3.1 y BCC 5.82. Gracias. Saludos
problema con hbcurl
Buenas noches estoy tratando de crear un programa con la libreria curl y harbour consola estoy probando este codigo pero me da siempre error en hCurl := curl_easy_init() pero si hago el programa equivalente con Mod_Harbour funciona bien ni siquiera necesito las protecciones TRY CATCH END [code=fw:22k3enwi]<div class="fw" id="{CB}" style="font-family: monospace;"><br />#ifdef __HARBOUR__<br />&nbsp; &nbsp; #ifndef __XHARBOUR__<br />&nbsp; &nbsp; &nbsp; &nbsp; #xcommand <span style="color: #00C800;">TRY</span> &nbsp;=> BEGIN SEQUENCE WITH <span style="color: #000000;">&#123;</span>| oErr | <span style="color: #00C800;">Break</span><span style="color: #000000;">&#40;</span> oErr <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; #xcommand CATCH <span style="color: #000000;">&#91;</span><!oErr!><span style="color: #000000;">&#93;</span> => RECOVER <span style="color: #000000;">&#91;</span>USING <oErr><span style="color: #000000;">&#93;</span> <-oErr-><br />&nbsp; &nbsp; &nbsp; &nbsp; #xcommand FINALLY => ALWAYS<br />&nbsp; &nbsp; &nbsp; &nbsp; #xtranslate <span style="color: #00C800;">Throw</span><span style="color: #000000;">&#40;</span> <oErr> <span style="color: #000000;">&#41;</span> => <span style="color: #000000;">&#40;</span> Eval<span style="color: #000000;">&#40;</span> ErrorBlock<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <oErr> <span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">Break</span><span style="color: #000000;">&#40;</span> <oErr> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; #endif<br />#endif<br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbcurl.ch"</span><br /><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> hCurl<br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> lError &nbsp;:= .f.<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; curl_global_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">'init'</span><br />&nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">'error al tratar de cargar curl init'</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hCurl := curl_easy_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ? hCurl<br />&nbsp; &nbsp; &nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"error hCurl no se formo"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; lError &nbsp;:= .t.<br />&nbsp; &nbsp; &nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">'error al tratar de cargar curl easy_init'</span><br />&nbsp; &nbsp; END<br /><br />&nbsp; &nbsp; <span style="color: #00C800;">if</span> lError<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; end<br /><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">TRY</span><br />&nbsp; &nbsp; &nbsp; &nbsp; curl_easy_cleanup<span style="color: #000000;">&#40;</span> hCurl <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; hCurl := <span style="color: #00C800;">Nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; curl_global_cleanup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; hb_gcAll<span style="color: #000000;">&#40;</span> .t. <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">'cleanup'</span><br /><br />&nbsp; &nbsp; CATCH<br />&nbsp; &nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">'error cierre'</span><br />&nbsp; &nbsp; END<br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:22k3enwi] la pregunta es porque no puedo atrapar el error y porque da de 5 veces al menos una da error, por favor si alguien me puede dar luces gracias, no tengo errores de compilacion
problema con hbcurl
Buen día. ¿Dónde puedo descargar hbcurl.lib y hbcurl.ch para probar? Gracias. Regards, saludos.
problema con hbcurl
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33123&p=240881&hilit=hbcurl&sid=342658fb390261083c68a1af287893ad#p240881">viewtopic.php?f=3&t=33123&p=240881&hilit=hbcurl&sid=342658fb390261083c68a1af287893ad#p240881</a><!-- l -->
problema con hbcurl
[quote="hmpaquito":1qao1nvy]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33123&p=240881&hilit=hbcurl&sid=342658fb390261083c68a1af287893ad#p240881[/quote:1qao1nvy] Gracias. Regards, saludos.
problema con imagenes con canal Alpha
Estos dias he visto al usar pngs ,que el canal alpha no se interpreta correctamente ,es lo mismo que pasa con los bmp que tenemos que hacer "premultipliced" primero para que se muestren bien . ¿ no se podría hacer que la function abpaint() detecte si están o no premultiplied los archivos y realice la conversion correctamente ? , mirando por internet he visto algún código que lo hace pero que se escapa a mi nivel de conocimientos de c++ , otros ejemplos estan en java o Powerbasic , pero sería una solución tanto para pngs como para bmps . Este enlace puede servir como punto de partida : <!-- m --><a class="postlink" href="https://github.com/maxme/PNG-Alpha-Premultiplier/blob/master/NPMApng2PMApng.c">https://github.com/maxme/PNG-Alpha-Prem ... g2PMApng.c</a><!-- m --> Saludos.
problema con imagenes con canal Alpha
He encontrado el codigo para el primer paso que es detectar si esta o no Premultipied una imagen .... [code=fw:254mmdef]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />BOOL IsPremultiplied<span style="color: #000000;">&#40;</span>LPRGBQUAD pBits, int numberOfPixels<span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">for</span> <span style="color: #000000;">&#40;</span>int i = <span style="color: #000000;">0</span>; i < numberOfPixels; ++i<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span>pBits<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.rgbBlue > pBits<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.rgbReserved ||<br />&nbsp; &nbsp; &nbsp; &nbsp;pBits<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.rgbGreen > pBits<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.rgbReserved ||<br />&nbsp; &nbsp; &nbsp; &nbsp;pBits<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.rgbRed > pBits<span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span>.rgbReserved<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">false</span>;<br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">return</span> <span style="color: #00C800;">true</span>;<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:254mmdef]
problema con la dbf
si pongo la clausula SHARED al abrir una dbf , el emulador se congela , ¿ ocurre lo mismo en un PDA real ? No está soportada esta clausula ? Saludos.
problema con la dbf
El Windows Mobile actual de las Pocket PC no soporta la claúsula SHARED. Nos pusimos en contacto con Microsoft y nos confirmaron que para la version Windows Mobile 2005, implementarán soporte de ficheros compartidos (shared).
problema con los combobox y manifiest
Hola a todos. El problema que tengo es el siguiente, cuando incluyo el "manifiest" en el archivo de recursos ( *.res ) los combo-box se desplegan a su antojo obviando el tamaño máximo que he definido en el archivo de recursos para ese control. ¿ Hay alguna forma de solucionar esto ?. Muchas gracias. Un saludo. Uso : WINDOWS 7 Professional xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 9656) FWH 1301 RECURSOS CON PELLES C ( archivo del tipo "res")
problema con los combobox y manifiest
Ricardo, Puedes probar FWH\samples\combos.prg y ver si le ocurre igual ? Que dimensión deseas darle ? Por que no te sirve las dimensiones que Windows le asigna ? Puedes mostrar una imagen de como se ve y como quieres que se vea ? gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
problema con los combobox y manifiest
Antes de nada muchas gracias Antonio por tu interés. Como ejemplo he cogido el archivo \samples\combosb.prg y he modificado la array del combo por otra de más elementos, como ves el combo con manifiest se desplega todo lo largo que sea la pantalla no respetando las dimensiones del control , ni del diálogo o ventana que lo contiene, en vez de sacar una barra de scroll vertical, tal y como lo hace si quito "manifiest" del archivo de recursos. Este efecto del combo rompe toda la estética del programa al desplegarse. En la imagen se puede ver la definición de las dimensiones del control y como se ve al ejecutar el programa. Muchas gracias Un saludo. [img:3jql835y]http&#58;//imageshack&#46;us/a/img163/6995/0msq&#46;jpg[/img:3jql835y]
problema con los combobox y manifiest
Ricardo, Acabo de probarlo en el editor de recursos de PellesC, usando Windows 8, y hace el mismo "mal" efecto que comentas. Es decir, no respeta la longitud que se le ha asignado en el recurso <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( -->
problema con los combobox y manifiest
Ricardo, Parece que la solución es darle el estilo CBS_NOINTEGRALHEIGHT Puedes probarlo desde PellesC seleccionando "No integral height" desde propiedades <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
problema con los combobox y manifiest
Antonio, Dicho y hecho, he configurado la propiedad "No integral height" al control combobox y [b:ywkg0yh9][i:ywkg0yh9]funciona perfecto[/i:ywkg0yh9][/b:ywkg0yh9], ahora si respeta las dimensiones definidas y sale la barra de scroll vertical cuando es necesario. Muchísimas gracias.
problema con los combobox y manifiest
Antonio, y si el combobox esta hecho bajo codigo, como podria ser? [code=fw:qftbotv1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#define</span> CBS_NOINTEGRALHEIGHT  <span style="color: #000000;">1024</span>     <span style="color: #B900B9;">// 0x0400L</span><br /><br />   @ <span style="color: #000000;">412</span>, <span style="color: #000000;">102</span><span style="color: #000000;">+80</span> <span style="color: #0000ff;">COMBOBOX</span> oTipos <span style="color: #0000ff;">VAR</span> cTipoEx ;<br />     <span style="color: #0000ff;">ITEMS</span> aTipo ;<br />     <span style="color: #0000ff;">OF</span> oPnel1 ;<br />     <span style="color: #0000ff;">SIZE</span> Int<span style="color: #000000;">&#40;</span><span style="color: #000000;">264</span>*<span style="color: #000000;">0.68</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">190</span> ;   <span style="color: #B900B9;">//275</span><br />     <span style="color: #0000ff;">FONT</span> oFontX;              <span style="color: #B900B9;">//     STYLE CBS_DROPDOWN  LIST ;</span><br /><br />    oTipos:<span style="color: #000000;">nStyle</span> := nOr<span style="color: #000000;">&#40;</span> oTipos:<span style="color: #000000;">nStyle</span>, CBS_NOINTEGRALHEIGHT <span style="color: #000000;">&#41;</span><br /><br /> </div>[/code:qftbotv1]
problema con los combobox y manifiest
Cristobal, Tu código se ve correcto, te ha funcionado ?
problema con los combobox y manifiest
Pues no, eso es lo que llevo mirando esta tarde
problema con nombre de usuario publico en cualquier parte
saludos, feliz año, como saben soy nuevo en harbour, y estoy migrando toda mi aplicacion de clipper, y bueno........¡ Tengo el siguiente problema: mi programa tiene varios prg, y cuando ingreso al mismo, le solicito una solo la clave al usuario y la valido contra un archivo dbf, en el cual esta la clave y el nombre del usuario, ahora bien quiero guardar ese nombre en una variable publica para usarla en cualquier parte del programa, para saber en todo momento como se llama el usuario. trate de hacerlo con una funcion que pasa el nombre de aqui para alla, pero necesito una manera mas sencilla claveusu(cpass) donde cpass es la clave que introdujo el cliente FUNCTION CLAVEUSU(cPass,prueb1) IF NUSE('.\DATA\DB010',.T.,5,'','CLAVES') //ABRO EN MODO SHARE LA TABLA CLAVES ELSE CLOSE DATA RETURN NIL ENDIF Select claves DBGOTOP() DO WHILE .NOT. EOF() IF claves->clave=cpass usuario:=claves->nombre ------>esta es la que quiero ver CLOSE claves desde cualquier parte, RETURN .T. como la defino y manejo ENDIF para tenerla siempre SKIP activa ENDDO close claves RETURN .F. yo en clipper la coloca publica y listo pero aqui no tengo ni idea, y la manera que he conseguido es super complicada y engorrosa. y este metodo debo usarlo en gran parte de todo mi programa. de antemano gracias.
problema con nombre de usuario publico en cualquier parte
Pues aqui es lo mismo puedes crear una variable publica para usarla en todos los modulos de tu aplicacion. Una mejor idea es tener un modulo o una clase donde tengas todas tuas variables publicas o quizas un arreglo y ese sea el unico que sea publico
problema con nombre de usuario publico en cualquier parte
[quote="YamilBracho":22by1vxa]Pues aqui es lo mismo puedes crear una variable publica para usarla en todos los modulos de tu aplicacion. Una mejor idea es tener un modulo o una clase donde tengas todas tuas variables publicas o quizas un arreglo y ese sea el unico que sea publico[/quote:22by1vxa] pero cuando a una variable la hago publica con public xxxx me da un error de compilacion, es que de verdad no tengo ni idea, podrias enviarme un pequeño ejemplo, gracias.
problema con nombre de usuario publico en cualquier parte
[quote="DiGregorio":2b7bi6wn][quote="YamilBracho":2b7bi6wn]Pues aqui es lo mismo puedes crear una variable publica para usarla en todos los modulos de tu aplicacion. Una mejor idea es tener un modulo o una clase donde tengas todas tuas variables publicas o quizas un arreglo y ese sea el unico que sea publico[/quote:2b7bi6wn] pero cuando a una variable la hago publica con public xxxx me da un error de compilacion, es que de verdad no tengo ni idea, podrias enviarme un pequeño ejemplo, gracias.[/quote:2b7bi6wn] Una forma de hacerlo es la siguiente: En tu programa principal haces lo que te indico #include "FiveWin.ch" MemVar nMiVarPublica Function Main() Public nMiVarPublica ... ... ... Return NIL y en todos tus demás PRGs deberás hacer lo siguiente: #include "FiveWin.ch" MemVar nMiVarPublica Function blablablabla() Return NIL En conclusión, en todos tus demás prgs deberás poner MemVar y tu variable para que puedas ver la variable pública. Saludos, espero te funcione, así lo trabajo yo.
problema con nombre de usuario publico en cualquier parte
[quote="VeRCE":23jzdy42][quote="DiGregorio":23jzdy42][quote="YamilBracho":23jzdy42]Pues aqui es lo mismo puedes crear una variable publica para usarla en todos los modulos de tu aplicacion. Una mejor idea es tener un modulo o una clase donde tengas todas tuas variables publicas o quizas un arreglo y ese sea el unico que sea publico[/quote:23jzdy42] pero cuando a una variable la hago publica con public xxxx me da un error de compilacion, es que de verdad no tengo ni idea, podrias enviarme un pequeño ejemplo, gracias.[/quote:23jzdy42] Una forma de hacerlo es la siguiente: En tu programa principal haces lo que te indico #include "FiveWin.ch" MemVar nMiVarPublica Function Main() Public nMiVarPublica ... ... ... Return NIL y en todos tus demás PRGs deberás hacer lo siguiente: #include "FiveWin.ch" MemVar nMiVarPublica Function blablablabla() Return NIL En conclusión, en todos tus demás prgs deberás poner MemVar y tu variable para que puedas ver la variable pública. Saludos, espero te funcione, así lo trabajo yo.[/quote:23jzdy42] Hola Yamil, de verdad gracias, me funciono perfecto, lo que pasaba era que estaba usando el memvar pero habia dejado de usar el public, jajajja gracias, feliz año
problema con nombre de usuario publico en cualquier parte
Yo lo hago de la siguiente forma: Uso una variable static y una clase que maneja todas la variables del sistema pero como DATAS de la clase y no como variables públicas. Y una función que me devuelve el objeto contenedor de las datas. Es un proceso muy sencillo y fácil de usar. [code:5a9wka26] #INCLUDE "FiveWin&#46;ch" STATIC oApp FUNCTION Main&#40;&#41; oApp &#58;= TAdmin&#40;&#41;&#58;New&#40;&#41; oApp&#58;Activate&#40;&#41; RETURN&#40; Nil &#41; FUNCTION GetApp&#40;&#41;; RETURN oApp CLASS TAdmin From TWindow DATA oWnd DATA cIp DATA oIni DATA cRuta DATA cIniFile DATA cEmpresa DATA cBmpFondo DATA oBoton DATA oBar DATA SysName DATA cFont DATA oFont DATA oFont2 DATA oTimer DATA oTray DATA oIcon DATA oUsuario DATA oMenu DATA aObj DATA oBrs DATA aDbf DATA oDbf DATA nEvento METHOD New&#40;&#41; CONSTRUCTOR METHOD Activate&#40;&#41; METHOD MainMenu&#40;&#41; METHOD Save&#40;&#41; METHOD End&#40;&#41; METHOD KeyDown&#40; nKey, nFlags &#41; METHOD SetTray&#40;&#41; METHOD MenuTray&#40; nRow , nCol , oTray &#41; ENDCLASS [/code:5a9wka26]
problema con oMenu:aitems()
Hola: oMenu:aItems() sólo me devuelve el grupo de Menus (Principal, Ayuda, Salir), pero no los submenus (Principal -> Altas, Bajas, etc). ¿Cómo lo obtengo?. Gracias <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
problema con oMenu:aitems()
MgSoft, I don't know whether this is your requirement. oSubMenu:=GetSubMenu( hPopup ) -> Returns SubMenu Object oSubMenu:aItems() Regards Anser
problema con padl
Me gustaria alinear el campo codigo así 9 10 Uso PADL( CLIENTES->CODIGO, 20, " " ) y no me funciona, me lo centra. Sin embargo, si especifico un carácter, p. ej., un 0, si me funciona. ¿Qué hago mal?. muchas gracias. Salu2
problema con padl
Se es una ListBox... oLbx:aJustify := { .F., .T., .T., .T., .T., .T., .F., .F. }
problema con padl
Muchas gracias, es en un browse, me estaba volviendo loco!!
problema con padl
[quote="edu_parada":3i5txmyu]Me gustaria alinear el campo codigo así 9 10 Uso PADL( CLIENTES->CODIGO, 20, " " ) y no me funciona, me lo centra. Sin embargo, si especifico un carácter, p. ej., un 0, si me funciona. ¿Qué hago mal?. muchas gracias. Salu2[/quote:3i5txmyu] Edu, PADL( LTrim(CLIENTES->CODIGO), 20, " " ) asi le quitariamos los espacios del principio. Saludos, Carlos.
problema con radiobutton
salve a tutti,ho creato il radio button qui sotto per avere i pulsanti nella stessa linea e non uno sotto l'altro.all'avvio se nRad = 1 appare selezionato, se nRad = 2 i radiobutton sono vuoti.@ 5, 400 RADIO oRad1 VAR nRad ITEMS "uno" OF oBar PIXEL ...@ 5, 450 RADIOITEM oRad2 PROMPT "due" RADIOMENU oRad1 OF oBar PIXEL ... oRad2:lChecked := .t. non funzionacome fare per attivare all'avvio il oRad2?è possibile invertire il testo come col paramentro "left text" con il radio button creato da risorse?xHb 1.0.0 + fwhx 7.12grazie in anticipo,marzio
problema con radiobutton
Marzio, [code:23dmn9pc] ACTIVATE DIALOG oDlg ; ON INIT oRad2&#58;SetCheck( &#46;T&#46; ) [/code:23dmn9pc]
problema con reposicionamiento en xBrowse
Hola. mi problema es el siguiente: en un xbrowse muestro datos de una DBF con un set filter, al darle enter en el registro modifico valores y ese registro desaparece, hasta ahi todo bien. el problema viene cuando muevo el registro marcado y por ejemplo bajo 4 registros realizo la misma operacion anterior, el registro desaparece pero ya me queda como tope de datos ese registro y me muestra los datos del primer registro del xbrowse. esta es la sentencia que uso: {"Aceptar.bmp","Modifico Registro " , "Cobrar" , {||editapago(nporciento, dfliq,nncons),dbgobottom(),oBrw:Refresh(),oBrw:SetFocus(),DbGoTop(),oBrw:Refresh(),oBrw:SetFocus() },VK_RETURN,"<Return>" } como se debe repintar el xbrowse para subsanar este error? gracias
problema con reposicionamiento en xBrowse
José: Tal vez con oBrw:Refresh() Saludos
problema con reposicionamiento en xBrowse
Gracias Armando pero ya lo estoy usando y no es ese el problema. Gracias igual.
problema con reposicionamiento en xBrowse
Perdón. Alguien con Alguna otra sugerencia? Gracias
problema con reposicionamiento en xBrowse
Ponga un ejemplo simples con la DBF en el Mega Upload para pruebas, porfa. Regards, saludos.
problema con reposicionamiento en xBrowse
[code=fw:3aubgy39]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #000000;">&#123;</span><span style="color: #ff0000;">"Aceptar.bmp"</span>,<span style="color: #ff0000;">"Modifico Registro "</span> , <span style="color: #ff0000;">"Cobrar"</span> , <span style="color: #000000;">&#123;</span>||editapago<span style="color: #000000;">&#40;</span>nporciento, dfliq,nncons<span style="color: #000000;">&#41;</span>,dbgobottom<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,DbGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,oBrw:<span style="color: #000000;">SetFocus</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>,VK_RETURN,<span style="color: #ff0000;">"<Return>"</span> <span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:3aubgy39] Hola me parece que ese DbGoTop() es el problema
problema con reposicionamiento en xBrowse
Suelo guardar el registro en el que hago cambios de esta forma nRegistro:=EMPRESAS->(Recno()) y después de haber hecho los cambios y volver al xBrowse reposicionarlo de la forma siguiente: EMPRESAS->(DbGoto(nRegistro)) bastante simple y funcional.
problema con say-refresh en 6.12
saludos y aprovechando desearles un feliz año 2.007 a todos a ver quien me puede ayudar. esto me esta pasando es con la ultima version de FWH 6.12 uso harbour tengo el siguiente codigo para un dialogo, REDEFINE SAY ::o202 VAR strzero(::nTriples,4) ID 202 oF oDlgLot ; COLOR CLR_BLUE update REDEFINE SAY ::o203 VAR strzero(::nTerm,4) ID 203 oF oDlgLot ; COLOR CLR_BLUE update REDEFINE SAY ::o209 VAR TRANSFORM(::nTotTick,"999,999,999") ID 209 oF oDlgLot FONT oFont2 COLOR CLR_BLUE update por otro lado tengo una funcion que me actualiza el contenido de esas variables ::o202:Refresh() ::o203:Refresh() ::o209:Refresh() antes cada vez que llamaba a esta funcion y el contenido de la variable cambiaba el igual me cambiaba el say ahora solo me lo cambia una sola vez <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> espero me hayan entendido de antemano muchas gracias.
problema con say-refresh en 6.12
Amigo... Alguna vez a mi me sucedio algo por el estilo... y solucione el problema quitando la clausula UPDATE a los say. Espero te sirva..
problema con say-refresh en 6.12
Gracias por tu pronta repuesta Leandro pero le quito los update y me sigue solo mostrando el primer cambio <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> ,
problema con say-refresh en 6.12
Hola Por que no pruebas con esto : /* por otro lado tengo una funcion que me actualiza el contenido de esas variables ::o202:Refresh() ::o203:Refresh() ::o209:Refresh() */ ::o202:SetText( "Lo que sea" ) Saludos
problema con say-refresh en 6.12
Gracias Raymundo lo que me indicastes funciono correctamente lo que me parece extraño es que es una aplicacion que solo queriamos actualizar al 6.12 y con las antiguas librerias FWH trabaja bien pero haremos el cambio a settext Gracias a todos
problema con say-refresh en 6.12
Mario, Elimina la línea 265 de la Clase TSay: ::VarPut( ... )
problema con un listbox....
Hola a todos... Tengo declarado un ListBox en el que muestro 4 campos de una tabla, el codigo(declarado como Caracter), la descripcion(tambien como caracter), la cantidad y el precio (ambos numericos) El problema es que no se porque muestra solamente los dos primeros y sin embargo los dos datos numericos no lo muestra... El codigo que empleo es el siguiente... redefine LISTBOX oBrw ; FIELDS articulos->cod_art,articulos->nom_art,articulos->cant, articulos->precio ; HEADERS "Código", "Descripción", "Cant", "Precio" ID 100 OF oDlg Alguien sabe porque me ocurre esto? Un saludo y gracias... Elías Torres.
problema con un listbox....
Elías, Los valores numéricos has de pasarlos a texto usando Str(): FIELDS articulos->cod_art,articulos->nom_art, Str( articulos->cant ), Str( articulos->precio ) ya que los números se identifican como handles de bitmaps a dibujar.
problema con un listbox....
Gracias Antonio, ya está solucionado..... Saludos Elías Torres
problema con verce 4.3
Hola a todos estoy pasando una aplicación de fw21 16bits a fw25 harbour, y estoy compilando con verce, ya que con xmate me da muchos problemas de compilado, bien, el problema es que si en el apartado de prg de terceros introduzco los prgs de por ejemplo el twbrowse o el btnget, cuando ejecuto el programa me da errores .and. etc. errores sin numero de linea, sin embargo si estos mismos prg los pongo en el apartado de prg del programa el programa funciona perfectamente, lo mismo sucedo si en lugar de poner el prg los pongo como lib, es como si al compilar el programa esto no lo adjuntara o los adjuntara despues. despues de todo esto seria saber si a alguien le ha pasado lo mismo y como lo ha solucionado, ya que me interesa muchisimo poder poner los programas o prg externos como eso como lib de terceros o como prg de terceros. saludos. Manolo.
problema con verce 4.3
[quote="MANOLO":4vjnv3jf]Hola a todos estoy pasando una aplicación de fw21 16bits a fw25 harbour, y estoy compilando con verce, ya que con xmate me da muchos problemas de compilado, bien, el problema es que si en el apartado de prg de terceros introduzco los prgs de por ejemplo el twbrowse o el btnget, cuando ejecuto el programa me da errores .and. etc. errores sin numero de linea, sin embargo si estos mismos prg los pongo en el apartado de prg del programa el programa funciona perfectamente, lo mismo sucedo si en lugar de poner el prg los pongo como lib, es como si al compilar el programa esto no lo adjuntara o los adjuntara despues. despues de todo esto seria saber si a alguien le ha pasado lo mismo y como lo ha solucionado, ya que me interesa muchisimo poder poner los programas o prg externos como eso como lib de terceros o como prg de terceros. saludos. Manolo.[/quote:4vjnv3jf] Puedes intentar creaar la libreria y luego incluirsela al VERCE en librerias de terceros. Saludos
problema con verce 4.3
[quote="VeRCE":znizbxek][quote="MANOLO":znizbxek]Hola a todos estoy pasando una aplicación de fw21 16bits a fw25 harbour, y estoy compilando con verce, ya que con xmate me da muchos problemas de compilado, bien, el problema es que si en el apartado de prg de terceros introduzco los prgs de por ejemplo el twbrowse o el btnget, cuando ejecuto el programa me da errores .and. etc. errores sin numero de linea, sin embargo si estos mismos prg los pongo en el apartado de prg del programa el programa funciona perfectamente, lo mismo sucedo si en lugar de poner el prg los pongo como lib, es como si al compilar el programa esto no lo adjuntara o los adjuntara despues. despues de todo esto seria saber si a alguien le ha pasado lo mismo y como lo ha solucionado, ya que me interesa muchisimo poder poner los programas o prg externos como eso como lib de terceros o como prg de terceros. saludos. Manolo.[/quote:znizbxek] Puedes intentar creaar la libreria y luego incluirsela al VERCE en librerias de terceros. Saludos[/quote:znizbxek] Hola, esto ya lo he hecho, pero sigue haciendo lo mismo, compila o linka bien las librerias, es como si antes del las librerias de fwh es cuando se debieran incluir las librerias de terceros, no le ha pasado a nadie más esto, como podría solucionarlo. Gracias anticipadas a todos.
problema con verce 4.3
Si, es raro, mira, cada vez que compilas con verce se genera un archivo script llamado C:\WINDOWS\PROY.MAK ese archivo es enlazado con el make de borland. Revisa y verás que las librerias de terceros se enlazan antes que las de fivewin. Voy a revisar en mis apps a ver si sucede lo mismo. Saludos
problema con wbrowse...
estoy probando a poner una imagen en una columna, para esto uso el lSelect de la clase para saber si estoy posicionado en el registro, y me manda este error al abrir el browse No exported method: lSelect from errorsys, line: 0 mi codigo esta asi: hBmp:=LoadBitMap(GetResources(),"Puntero") @ 0,0 LISTBOX oBCos ; FIELDS IF(oBCos:lSelect,hBmp,""), STR((oDCos)->Codigo,4),; (oDCos)->Descri ; HEADER "","Codigo", "D E S C R I P C I O N" ; SIZES 20,90,350 ; WHEN !(dbEmpty(oDCos)) OF oWndHija es la wbrowse que modifico alfredo arteaga para poner el puntero, gracias paco
problema con wbrowse...
Paco, Prueba a hacerlo en dos pasos: @ 0,0 LISTBOX oBCos ; FIELDS "", "", "" ; HEADER "","Codigo", "D E S C R I P C I O N" ; SIZES 20,90,350 ; WHEN !(dbEmpty(oDCos)) OF oWndHija oBCos:bLine := { || { IF(oBCos:lSelect,hBmp,""), STR((oDCos)->Codigo,4), (oDCos)->Descri } }
problema con wbrowse...
gracias antonio, funciono, pero este comportamiento a que se puede deber? salu2 paco
problema con wbrowse...
Paco, Al hacerlo en una sola línea se genera primero el codeblock para bLine y en ese momento oBCos es aún nil. Después de la primera línea, oBCos ya no es nil y por eso el codeblock toma su valor correcto: el objeto browse
problema con wbrowse...
ok, gracias paco
problema con xbrowse
Saludos Estoy haciendo mis primeras pruebas utilizando xbrowse pero al intentar utilizar el metodo bONPOSTEDIT Resulta que al escribir en la celda, borra el contenido no se si sera la version que utilizo Aqui esta el codigo que utilizo FUNCTION PANPRESUP2(MMODO,MABRE) Local oDLGPRESUP, APASA:=.F., XFPASA:=.F. * DEFINE DIALOG oDlgPRESUP RESOURCE 'PRESUP' FONT aFONT[2] SELE ENTG000 ENTG000->(Ordscope(0,ENT000->NUMERO)) ENTG000->(Ordscope(1,ENT000->NUMERO)) ENTG000->(DBGOTOP()) * oBrw := TXBrowse():New(oDlgPRESUP) oBrw:nMarqueeStyle := MARQSTYLE_HIGHLCELL oBrw:nColDividerStyle := LINESTYLE_BLACK oBrw:nRowDividerStyle := LINESTYLE_BLACK oBrw:lColDividerComplete := .t. oBrw:bCLRSTD:={||IF(RECNO()%2==0,{CLR_BLACK,CLR_1},{CLR_BLACK,CLR_2})} oBRW:nFREEZE:=2 * oCol:=oBrw:Addcol() oCol:cHeader := "Concepto" oCol:bStrData := { || ENTG000->CONCEPTO } oCol:=oBrw:Addcol() oCol:cHeader := "Descripcion" oCol:bStrData := { || CIMP001->DESCRIP } oCol:nHeadStrAlign:=AL_LEFT oCol:nDataStrAlign:=AL_LEFT oCol:=oBrw:Addcol() oCol:cHeader := "Referencia" oCol:bStrData := { || ENTG000->SERIE } oCol:nHeadStrAlign:=AL_LEFT oCol:nDataStrAlign:=AL_LEFT oCol:nEditType := 1 oCol:bOnPostEdit := {|o,x| ENTG000->SERIE:=x} * oBRW:SETRDD() oBrw:CreateFromRESOURCE(500) * ACTIVATE DIALOG oDLGPRESUP CENTERED ENTG000->(Ordscope(0,NIL)) ENTG000->(Ordscope(1,NIL)) SELE ENT000 oBRWPRESUP:REFRESH() oBRWPRESUP:SETFOCUS() oBRWPRESUP:UPSTABLE() RETURN NIL
problema con xbrowse
Creo que tu problema es que en el bonPostEdit, estas pidiendo 2 variables , pero usas solo una. Mira mi ejemplo, busco en mi array los dos datos solicitados y luego le asigno el cambio. oBrw:aCols[5]:bOnPostEdit := { | o,x | aDatos[ oBrw:nArrayAt, 5 ] := x } Saludos
problema con xbrowse y Grid (SOLUCIONADO)
Tengo un xbrowse con colores en degradado y al moverve con los cursores no limpia bien las celdas. (haciendo click con el ratón en otra fila sí actualiza las filas bien) Se quedan restos por debajo de la celda del color amarillo y verde. [img:f090gmp4]https&#58;//i&#46;ibb&#46;co/RH2bn6P/1&#46;png[/img:f090gmp4] He modificado el ejemplo /Samples/xbwser.prg [code=fw:f090gmp4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> fSetUp<span style="color: #000000;">&#40;</span> oBrw, aHead <span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">local</span> nI<br /><br />   <span style="color: #00C800;">for</span> nI = <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span> aHead <span style="color: #000000;">&#41;</span><br />      oBrw:<span style="color: #000000;">aCols</span><span style="color: #000000;">&#91;</span> nI <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cHeader</span>   = aHead<span style="color: #000000;">&#91;</span> nI <span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">next</span><br /><br />   <span style="color: #B900B9;">//oBrw:bClrStd := {|| {CLR_BLACK, iif( oBrw:nArrayAt() % 2 = 0, CLR_HCYAN, CLR_LIGHTGRAY  ) } }</span><br />   oBrw:<span style="color: #000000;">bClrStd</span>          := <span style="color: #000000;">&#123;</span> || <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> oBrw:<span style="color: #000000;">nArrayAt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> % <span style="color: #000000;">2</span> == <span style="color: #000000;">0</span>, <span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">186</span>, <span style="color: #000000;">224</span>, <span style="color: #000000;">191</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> CLR_BLACK, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">214</span>, <span style="color: #000000;">237</span>, <span style="color: #000000;">215</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <br />   oBrw:<span style="color: #000000;">bClrSelFocus</span>     := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">193</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, nRGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">193</span><span style="color: #000000;">&#41;</span>, nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">128</span>, <span style="color: #000000;">128</span>, <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />   oBrw:<span style="color: #000000;">bClrRowFocus</span>     := <span style="color: #000000;">&#123;</span> || <span style="color: #000000;">&#123;</span> CLR_BLACK, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> .<span style="color: #000000;">5</span>, CLR_WHITE, nRgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>, <span style="color: #000000;">217</span>, <span style="color: #000000;">93</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span>    <br />   <br />   oBrw:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> BUTTON_PRINT <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"My Text"</span><br />   oBrw:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> BUTTON_PRINT <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span>|| <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"My Action"</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   oBrw:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> BUTTON_SHEET <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">cCaption</span> := <span style="color: #ff0000;">"Notepad"</span><br />   oBrw:<span style="color: #000000;">oWnd</span>:<span style="color: #000000;">aControls</span><span style="color: #000000;">&#91;</span> BUTTON_SHEET <span style="color: #000000;">&#93;</span>:<span style="color: #000000;">bAction</span> := <span style="color: #000000;">&#123;</span>|| winexec<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Notepad.exe"</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /> </div>[/code:f090gmp4]
problema con xbrowse y Grid (SOLUCIONADO)
Fernando, El Sr. Rao lo va a revisar ya que él es el mantenedor de la Clase TXBrowse gracias por reportarlo
problema con xbrowse y Grid (SOLUCIONADO)
[quote="Antonio Linares":3ogv9hv6]Fernando, El Sr. Rao lo va a revisar ya que él es el mantenedor de la Clase TXBrowse gracias por reportarlo[/quote:3ogv9hv6] Dear Antonio, Same as my problem. But no any answer for it. [url:3ogv9hv6]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=41983&sid=03f9d927ce2d8747bb610a38cb326610[/url:3ogv9hv6]
problema con xbrowse y Grid (SOLUCIONADO)
Please add one more setting: [code=fw:3azgkrvv]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">lFullPaint</span> := .t.</div>[/code:3azgkrvv]
problema con xbrowse y Grid (SOLUCIONADO)
Hola, con lFullPaint, se soluciona el problema del pintado. Pero si el browse tiene muchas columnas en pantalla, se ralentiza mucho el movimiento con los cursores hacia arriba y hacia abajo.
problema con xbrowse y Grid (SOLUCIONADO)
Fernando, El Sr. Rao me comentó ayer que esto es una solución temporal y que se pone manos a la obra para solucionarlo correctamente Démosle tiempo para poder hacerlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> un abrazo
problema con xbrowse y Grid (SOLUCIONADO)
[quote="Antonio Linares":2ekkh80f]Fernando, El Sr. Rao me comentó ayer que esto es una solución temporal y que se pone manos a la obra para solucionarlo correctamente Démosle tiempo para poder hacerlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> un abrazo[/quote:2ekkh80f] Ok. Waiting for it.
problema con xbrowse y Grid (SOLUCIONADO)
Ok. Encantado de poder esperar.
problema con xbrowse y Grid (SOLUCIONADO)
Can you both please help me by testing this fix? In the program [b:iwlifawx]fwh\source\function\imgtxtio.prg,[/b:iwlifawx] [b:iwlifawx]function GradientFill(...)[/b:iwlifawx] Please locate these lines of code: [code=fw:iwlifawx]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">if</span> lVert<br />&nbsp; &nbsp; &nbsp; nSize &nbsp; &nbsp;:= nBottom - nTop + <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> nClr := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nClrs<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSlice = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nClr == nClrs, nBottom, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nBottom, nTop + nSize * aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Gradient<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> nTop, nLeft, nSlice, nRight <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, .T. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTop = nSlice + <span style="color: #000000;">1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nTop > nBottom<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp;</div>[/code:iwlifawx] Please replace the above block of code with this block: [code=fw:iwlifawx]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">if</span> lVert<br />&nbsp; &nbsp; &nbsp; nSize &nbsp; &nbsp;:= nBottom - nTop <span style="color: #B900B9;">//+ 1</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> nClr := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nClrs<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nSlice = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nClr == nClrs, nBottom, ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nBottom, nTop + nSize * aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Gradient<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> nTop, nLeft, nSlice - <span style="color: #000000;">1</span>, nRight <span style="color: #000000;">&#125;</span>,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, .T. <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;nTop = nSlice <span style="color: #B900B9;">//+ 1</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> nTop > nBottom<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp;</div>[/code:iwlifawx] Please test with this change and let us know if this change solves the problem.
problema con xbrowse y Grid (SOLUCIONADO)
Perfect. It works perfectly. Thank you very much
problema con xbrowse y Grid (SOLUCIONADO)
[quote="fgondi":34uzs4dl]Perfect. It works perfectly. Thank you very much[/quote:34uzs4dl] Did you remove "oBrw:lFullPaint := .t." and test? Thanks for testing.
problema con xbrowse y Grid (SOLUCIONADO)
[quote="richard-service":2hetdeca][quote="Antonio Linares":2hetdeca]Fernando, El Sr. Rao me comentó ayer que esto es una solución temporal y que se pone manos a la obra para solucionarlo correctamente Démosle tiempo para poder hacerlo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> un abrazo[/quote:2hetdeca] Ok. Waiting for it.[/quote:2hetdeca] Please test and confirm. I need all your help because I have poor eye vision. I can not accurately decide by myself.
problema con xbrowse y Grid (SOLUCIONADO)
Yes, I removed "oBrw:lFullPaint := .t."
problema con xbrowse y Grid (SOLUCIONADO)
[quote="nageswaragunupudi":2oyy1gn9]Can you both please help me by testing this fix? In the program [b:2oyy1gn9]fwh\source\function\imgtxtio.prg,[/b:2oyy1gn9] [b:2oyy1gn9]function GradientFill(...)[/b:2oyy1gn9] Please locate these lines of code: [code=fw:2oyy1gn9]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">if</span> lVert<br />      nSize    := nBottom - nTop + <span style="color: #000000;">1</span><br /><br />      <span style="color: #00C800;">for</span> nClr := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nClrs<br /><br />         nSlice = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nClr == nClrs, nBottom, ;<br />                     <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nBottom, nTop + nSize * aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />         Gradient<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> nTop, nLeft, nSlice, nRight <span style="color: #000000;">&#125;</span>,;<br />                   aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, .T. <span style="color: #000000;">&#41;</span><br /><br />         nTop = nSlice + <span style="color: #000000;">1</span><br /><br />         <span style="color: #00C800;">if</span> nTop > nBottom<br />            exit<br />         <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">next</span><br /><br />   <span style="color: #00C800;">else</span><br /> </div>[/code:2oyy1gn9] Please replace the above block of code with this block: [code=fw:2oyy1gn9]<div class="fw" id="{CB}" style="font-family: monospace;">   <span style="color: #00C800;">if</span> lVert<br />      nSize    := nBottom - nTop <span style="color: #B900B9;">//+ 1</span><br /><br />      <span style="color: #00C800;">for</span> nClr := <span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> nClrs<br /><br />         nSlice = <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> nClr == nClrs, nBottom, ;<br />                     <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nBottom, nTop + nSize * aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> - <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />         Gradient<span style="color: #000000;">&#40;</span> hDC, <span style="color: #000000;">&#123;</span> nTop, nLeft, nSlice - <span style="color: #000000;">1</span>, nRight <span style="color: #000000;">&#125;</span>,;<br />                   aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span>, aGradInfo<span style="color: #000000;">&#91;</span> nClr <span style="color: #000000;">&#93;</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#93;</span>, .T. <span style="color: #000000;">&#41;</span><br /><br />         nTop = nSlice <span style="color: #B900B9;">//+ 1</span><br /><br />         <span style="color: #00C800;">if</span> nTop > nBottom<br />            exit<br />         <span style="color: #00C800;">endif</span><br />      <span style="color: #00C800;">next</span><br /><br />   <span style="color: #00C800;">else</span><br /> </div>[/code:2oyy1gn9] Please test with this change and let us know if this change solves the problem.[/quote:2oyy1gn9] Dear Mr.Rao not work.
problema con xbrowser
Este codigo si descomento el where falla. Alguien sabe el motivo ? Gracias anticipadas. [code=fw:3e4bhv82]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cSource := <span style="color: #ff0000;">"SELECT articulo.* FROM articulo"</span><br /><br /><span style="color: #00C800;">if</span> !Empty<span style="color: #000000;">&#40;</span> nFam <span style="color: #000000;">&#41;</span><br />&nbsp;<span style="color: #B900B9;">// &nbsp;cSource := cSource + " WHERE FAMILIA = 24 " </span><br />&nbsp; &nbsp;cSource := cSource + <span style="color: #ff0000;">" ORDER BY articulo.descrip"</span><br /><span style="color: #00C800;">endif</span><br /><br />dbselectar<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp;AdsConnect<span style="color: #000000;">&#40;</span> oApli:<span style="color: #000000;">cDbfPath</span> , <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />&nbsp;AdsCreateSqlStatement<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"temp"</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">if</span> ! AdsExecuteSqlDirect<span style="color: #000000;">&#40;</span> cSource <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"temp"</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> DBCloseArea<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; pausa<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"error"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">nil</span><br />&nbsp;<span style="color: #00C800;">endif</span><br />&nbsp;sele <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"temp"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp;xbrowser temp<br /><br />&nbsp;close<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"temp"</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3e4bhv82]
problema con xbrowser
should be xbrowser "temp"
problema con xbrowser
[code=fw:1kewil29]<div class="fw" id="{CB}" style="font-family: monospace;">Ejp: <span style="color: #000000;">con</span> tablas dbf libres y ads remote <span style="color: #00C800;">server</span> <br /><br />      nError := <span style="color: #000000;">0</span><br />      cError := <span style="color: #ff0000;">""</span><br /><br />      cTexCon := <span style="color: #ff0000;">"SELECT art.* FROM [articulo.dat] AS art WHERE art.nexisteart > 10 ORDER BY art.cnombreart"</span><br /><br />      <span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">0</span><br />      <span style="color: #00C800;">IF</span> !ADSCreateSQLStatement<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"INV"</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />         alert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Error sql  : "</span> + cTexCon <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">RETURN</span><br />      <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">IF</span> !ADSExecuteSQLDirect<span style="color: #000000;">&#40;</span>cTexCon<span style="color: #000000;">&#41;</span><br />         alert<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Error sql  : "</span> + cTexCon <span style="color: #000000;">&#41;</span><br />         nError := AdsGetLastError<span style="color: #000000;">&#40;</span>@cError<span style="color: #000000;">&#41;</span><br />         alert<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"execute_sql_direct error : "</span>+str<span style="color: #000000;">&#40;</span>nError,<span style="color: #000000;">10</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />         <span style="color: #00C800;">RETURN</span><br />      <span style="color: #00C800;">ENDIF</span><br /><br />      <span style="color: #0000ff;">select</span> INV<br />      browse<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />Johnson Russi<br /> </div>[/code:1kewil29]
problema con xbrowser
nages ... changed xbrowser "temp" if Source := "SELECT articulo.* FROM articulo order by articulo.descrip" is ok . if Source := "SELECT articulo.* FROM articulo where familia = 24 order by articulo.descrip" if use function browse() is ok. if use xbrowser command lauch error : Error description: Error ADSCDX/5018 The handle given was not recognized by Advantage. Verify specified handle is open/active. Stack Calls =========== Called from: => ORDKEYGOTO( 0 ) Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE_SETRDD( 4141 ) Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE( 444 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:_KEYNO( 0 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:REFRESH( 1294 ) Called from: .\source\classes\XBROWSE.PRG => (b)TXBROWSE( 475 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:RESIZE( 0 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT( 1733 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:HANDLEEVENT( 12667 ) Called from: .\source\classes\WINDOW.PRG => _FWH( 3355 ) Called from: => WNDWIDTH( 0 ) Called from: .\source\classes\CONTROL.PRG => (b)TCONTROL( 181 ) Called from: .\source\classes\CONTROL.PRG => TXBROWSE:_NWIDTH( 0 ) Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:BRWFITSIZE( 1021 ) Called from: .\source\function\XBROWSER.PRG => FITSIZES( 273 ) Called from: .\source\function\XBROWSER.PRG => (b)XBROWSE( 242 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE( 703 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 893 ) Called from: => DIALOGBOXINDIRECT( 0 ) Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 289 ) Called from: .\source\function\XBROWSER.PRG => XBROWSE( 242 ) Called from: ESTADIST.PRG => YOYO( 3540 )
problema con xbrowser
Maybe: [url:gfuohi7d]http&#58;//stackoverflow&#46;com/questions/3495918/getting-an-exception-from-the-adsdatareader[/url:gfuohi7d] Regards.
problema con xbrowser
[quote="karinha":ht1tje7q]Maybe: [url:ht1tje7q]http&#58;//stackoverflow&#46;com/questions/3495918/getting-an-exception-from-the-adsdatareader[/url:ht1tje7q] Regards.[/quote:ht1tje7q] No creo que sea el problema pues fallaría igualmente con cSource := "SELECT articulo.* FROM articulo" y éste no falla . <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> Gracias por contestar ...
problema con xbrowser
You said without where clause xbrowse is working okay but you are getting error when you use where clause. Right? I expect that without where clause the record count may be greater than 200 and with where clause the recordcount could be less than 200. Can you please check this and confirm? If so, please look at this part of code in method SetRDD() of xbrowse.prg: [code=fw:3ni1c707]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">If</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span>$<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> .or. <span style="color: #ff0000;">'ADT'</span> $ <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> .and. ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> LastRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">200</span><br />&nbsp;</div>[/code:3ni1c707] Please change this line as: [code=fw:3ni1c707]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">If</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span>$<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> .or. <span style="color: #ff0000;">'ADT'</span> $ <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3ni1c707] Please see if it is working correctly after this change even with where clause. Note: You can read in the notes below this line of code why I had to put this 200 limit. That was in 2009.
problema con xbrowser
nages . Con el cambio funciona ok. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Pero eso afecta al código con < 200 registros. para tablas dbf "clasicas" ( use comand ) . Tambien afecta al efecto "pijama" <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> ::bClrStd := { || aClrCol[ ::KeyNo()%2 + 1 ] } Seria bueno que el efecto pijama en vez depender del registro se pintase como fondo . Seria deseable distinguir entre llamdas ADS por RDD y ADS con SQL . Gracias por la solucion .
problema con xbrowser
[quote:2qdz60zf]ADS por RDD y ADS con SQL[/quote:2qdz60zf] How to distinguish? Whether a table is opened normally or through SQL, after opening the alias should function alike. AdsRelKeyPos functions do not give reliable results. Not just for pajama effect. Sometimes we get very awkward results for small tables. What is puzzling me is why OrdKeyNo() and OrdKeyGoTo() are failing in this case? If RDD was written correctly we should not get any error. Did you try with Harbour or xHarbour? I suggest you try with both. Note: I am not using ads these days.
problema con xbrowser
[quote="nageswaragunupudi":2vshvonl][quote:2vshvonl]ADS por RDD y ADS con SQL[/quote:2vshvonl] How to distinguish? What is puzzling me is why OrdKeyNo() and OrdKeyGoTo() are failing in this case? If RDD was written correctly we should not get any error. Did you try with Harbour or xHarbour? I suggest you try with both. Note: I am not using ads these days.[/quote:2vshvonl] Harbour. Creo que el problema esta en : OrdKeyGoto( n ) move record to n in active order but "temp" has no active orders .
problema con xbrowser
fix .... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> IF ( ::calias )->(ordnumber()) == 0 DEFAULT ::bKeyNo := {| n | iif( n == nil,; ( ::cAlias )->( RecNo() ),; ( ::cAlias )->( DbGoto( n ); ) ) },; ::bKeyCount := {|| ( ::cAlias )->( If( eof() .and. bof(), 0, ReCcount() ) ) } else DEFAULT ::bKeyNo := {| n | iif( n == nil,; ( ::cAlias )->( OrdKeyNo() ),; ( ::cAlias )->( OrdKeyGoto( n ); ) ) },; ::bKeyCount := {|| ( ::cAlias )->( If( eof() .and. bof(), 0, OrdKeyCount() ) ) } endif
problema con xbrowser
When there is no controlling index, then ordkeygoto() should work like normal dbgoto() That is the correct RDD implementation. Please check this with normal DBFCDX
problema con xbrowser
[quote="nageswaragunupudi":3tw1ylx3]When there is no controlling index, then ordkeygoto() should work like normal dbgoto() That is the correct RDD implementation. Please check this with normal DBFCDX[/quote:3tw1ylx3] articulo.dbf table articulo.cdx not exist This code : [code=fw:3tw1ylx3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> use articulo <span style="color: #00C800;">New</span> Via <span style="color: #ff0000;">"dbfcdx"</span><br />   ordkeygoto<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span>FIELD->descrip<span style="color: #000000;">&#41;</span>   <span style="color: #B900B9;">// ok</span><br /> </div>[/code:3tw1ylx3] this code [code=fw:3tw1ylx3]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> use articulo <span style="color: #00C800;">New</span> Via <span style="color: #ff0000;">"adscdx"</span><br /><br />   ordkeygoto<span style="color: #000000;">&#40;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br /><br />   pausa<span style="color: #000000;">&#40;</span>FIELD->descrip<span style="color: #000000;">&#41;</span>  <span style="color: #B900B9;">// error </span><br /><br /> </div>[/code:3tw1ylx3] Error occurred at: 30-04-2015, 18:36:12 Error description: Error ADSCDX/5018 The handle given was not recognized by Advantage. Verify specified handle is open/active. Stack Calls =========== Called from: => ORDKEYGOTO( 0 ) Called from: ESTADIST.PRG => YOYO( 3524 ) Called from: fiveh.prg => (b)BUILDMENU( 581 ) if program is set to : rddsetdefault( "ADS" ) The dbfs not indexed breaks. Dbgoto() is ok for 2 samples.
problema con xbrowser
Thanks for testing. From the result of your tests we understand that OrdKeyGoTo() works with dbfcdx RDD even when there is no index and with ADS RDD it fails. When I made this change in 2009 I am sure it was working and at that time most of my applications were using ADSCDX. If you are using Harbour we need to check with xHarbour version also. Surprisingly it appears these functions are working: AdsGetRelKeyPos AdsSetRelKeyPos AdsGetKeyCount Theoretically, these functions also should depend on the index still they work. Interestingly there is AdsGetKeyPos() function in ACE but no comparable function to OrdKeyGoTo() I suggest you please continue with the change we proposed earlier. I study both xHarbour and Harbour versions of the RDD source and also Advantage documentation and implement a dependable solution.
problema con xbrowser
I am making this change to SetRDD method: Can you please check with small tables ( < 200 rows ) with and without controlling order? [code=fw:bmnvc92i]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; <span style="color: #00C800;">If</span> <span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ADS"</span>$<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> .or. <span style="color: #ff0000;">'ADT'</span> $ <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> RddName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// .and. ( ::cAlias )->( LastRec() ) > 200</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Modified in FWH 9.06</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// AdsGetRelKeyPos() returns approximate position as % and when multipilied by 100 and rounded off</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// returns incorrect values occassionally on smaller &nbsp;tables. OrdKeyNo() mapped to AdsKeyNo() gives reliable</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// result in such cases. For large tables OrdKeyNo() is unacceptably slow. Limit of 200 is chosen because</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// 0.5% is 1/200.</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">cAlias</span> <span style="color: #000000;">&#41;</span>-><span style="color: #000000;">&#40;</span> LastRec<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> > <span style="color: #000000;">200</span><br /><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cAdsKeyNo &nbsp; &nbsp;:= <span style="color: #ff0000;">"{| n, Self | iif( n == nil, "</span> +;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">"Round( "</span> + cAlias + <span style="color: #ff0000;">"->( ADSGetRelKeyPos() ) * Self:nLen, 0 ), "</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cAlias + <span style="color: #ff0000;">"->( ADSSetRelKeyPos( n / Self:nLen ) ) ) }"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cAdsKeyNo &nbsp; := <span style="color: #ff0000;">"{|x,Self| "</span> + cAlias + <span style="color: #ff0000;">"->(If(x==nil,AdsKeyNo(,,1),If(Empty(OrdSetFocus()),ADSSetRelKeyPos(x/Self:nLen),OrdKeyGoTo(x))))"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br /><br />&nbsp; &nbsp; &nbsp; cAdsKeyCount := <span style="color: #ff0000;">"{|| "</span> + cAlias + <span style="color: #ff0000;">"->( ADSKeyCount(,,1) )}"</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">DEFAULT</span> ::<span style="color: #000000;">bKeyNo</span> &nbsp; &nbsp;:= &cAdsKeyNo ,;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">bKeyCount</span> := &cAdsKeyCount<br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">lRelyOnKeyNo</span> &nbsp; &nbsp; &nbsp;:= .f.<br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp;</div>[/code:bmnvc92i]
problema con xbrowser
nages .Gracias. lo mirare en cuanto tenga lago de tiempo .... He realizado una pequeña implementación para resolver el problema del efecto pijama y no depender de los registros ... Los cambios en xbrowse son los siguientes...... Nuevas datas [code=fw:2egxqefl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">DATA</span> nRowZebra<br /><span style="color: #00C800;">DATA</span> aClrZebra <br /><span style="color: #00C800;">DATA</span> lZebra <br /><br /> </div>[/code:2egxqefl] si asignamos asi al crear el xbrowse: [code=fw:2egxqefl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />  ::<span style="color: #000000;">lZebra</span> := .t.<br />  ::<span style="color: #000000;">aClrZebra</span>  := <span style="color: #000000;">&#123;</span> <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>,  RGB<span style="color: #000000;">&#40;</span><span style="color: #000000;">255</span>,<span style="color: #000000;">255</span>,<span style="color: #000000;">255</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span>, <span style="color: #000000;">&#123;</span> <span style="color: #000000;">0</span>, rgb<span style="color: #000000;">&#40;</span><span style="color: #000000;">237</span>,<span style="color: #000000;">243</span>,<span style="color: #000000;">254</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span> <span style="color: #000000;">&#125;</span><br />  ::<span style="color: #000000;">bClrStd</span> := <span style="color: #000000;">&#123;</span> || ::<span style="color: #000000;">aClrZebra</span><span style="color: #000000;">&#91;</span> ::<span style="color: #000000;">nRowZebra</span> %<span style="color: #000000;">2</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#125;</span><br /> <br /> </div>[/code:2egxqefl] solo dos cambios en el codigo xbrowse .... [code=fw:2egxqefl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TXBrowse<br />......<br /><br />   <span style="color: #00C800;">do</span> <span style="color: #00C800;">while</span> nRowPos <= nMaxRows<br /><br />      <span style="color: #B900B9;">// We must also paint some times after the last visible column</span><br /><br />      <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lZebra</span>     <span style="color: #B900B9;">// nuevo</span><br />         ::<span style="color: #000000;">nRowZebra</span> := nRowPos   <span style="color: #B900B9;">// nuevo</span><br />      <span style="color: #00C800;">endif</span>  <span style="color: #B900B9;">// nuevo</span><br />      <span style="color: #00C800;">if</span> hSelBrush != <span style="color: #00C800;">nil</span><br />      .....<br /><br /><br />  <span style="color: #00C800;">METHOD</span> FullPaint<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">INLINE</span> <span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">lTransparent</span> .or. ::<span style="color: #000000;">lMergeVert</span> .or. ;<br />                               ::<span style="color: #000000;">nMarqueeStyle</span> == MARQSTYLE_HIGHLWIN7 .OR. ::<span style="color: #000000;">lZebra</span> <span style="color: #000000;">&#41;</span> &nbsp; <span style="color: #B900B9;">// añadido .or. lZebra</span><br /><br /><br /> </div>[/code:2egxqefl] y listo ....
problema con xbrowser
Nages : for me is ok. a minor bug in : [code=fw:2uj5r58u]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; cAdsKeyNo &nbsp; := <span style="color: #ff0000;">"{|x,Self| "</span> + cAlias + <span style="color: #ff0000;">"->(If(x==nil,AdsKeyNo(,,1),If(Empty(OrdSetFocus()),ADSSetRelKeyPos(x/Self:nLen),OrdKeyGoTo(x)))) }"</span> &nbsp; <span style="color: #B900B9;">// add last "}"</span><br />&nbsp;</div>[/code:2uj5r58u]
problema con xbrowser
Thanks a lot for testing and the correction.
problema de pintado del xBrowse
Muchas gracias Carlos.
problema de pintado del xBrowse
Hola: Hay un problema de pintado. No pinta toda la anchura de una vez, sino que primero pinta el xBrowse hasta mitad de la pantalla, y luego lo ensancha. El efecto es bastante feo, pues parece que la app va a trompicones. Aquí pongo un ejemplo: [code=fw:2fslntla]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> oWnd<br /><span style="color: #00C800;">local</span> oGrid<br /><span style="color: #00C800;">local</span> oBtn, oGet1, oGet2<br /><br /><br /><br /><br />&nbsp; &nbsp;USE C:\FWH\SAMPLES\CUSTOMER <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"BASE"</span> <span style="color: #00C800;">NEW</span><br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;oWnd:<span style="color: #000000;">nHeight</span> := ScreenHeight<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp;<br /><br />&nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">151</span> <span style="color: #0000ff;">XBROWSE</span> oGrid ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> <span style="color: #0000ff;">PIXEL</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">OF</span> oWnd ;<br />&nbsp; &nbsp; &nbsp; DATASOURCE <span style="color: #ff0000;">"BASE"</span> ;<br />&nbsp; &nbsp; &nbsp; AUTOSORT ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">AUTOCOLS</span> ;<br />&nbsp; &nbsp; &nbsp; CELL LINES NOBORDER<br /><br /><br /><br /><br /><br />&nbsp; &nbsp; oGrid:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp;@ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Filtro"</span> <span style="color: #0000ff;">OF</span> oPanel ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> alert<span style="color: #000000;">&#40;</span>oGrid:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br />&nbsp;</div>[/code:2fslntla] Muchas gracias.
problema de pintado del xBrowse
Moises, así pinta bien: [code=fw:18b8ul39]<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;">"xbrowse.ch"</span><br /><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">local</span> oWnd<br /><span style="color: #00C800;">local</span> oGrid<br /><span style="color: #00C800;">local</span> oBtn, oGet1, oGet2<br /><br />   USE C:\FWH\SAMPLES\CUSTOMER <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"BASE"</span> <span style="color: #00C800;">NEW</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   oWnd:<span style="color: #000000;">nHeight</span> := ScreenHeight<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">ON</span> <span style="color: #0000ff;">INIT</span> PintaBrw<span style="color: #000000;">&#40;</span>oWnd<span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><span style="color: #B900B9;">//**************************************************************************//</span><br /><br /><span style="color: #00C800;">Function</span> PintaBrw<span style="color: #000000;">&#40;</span>oWnd<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oGrid, oBtn<br />   @ <span style="color: #000000;">10</span>, <span style="color: #000000;">151</span> <span style="color: #0000ff;">XBROWSE</span> oGrid ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">OF</span> oWnd ;<br />      DATASOURCE <span style="color: #ff0000;">"BASE"</span> ;<br />      AUTOSORT ;<br />      <span style="color: #0000ff;">AUTOCOLS</span> ;<br />      CELL LINES NOBORDER<br /><br />   oGrid:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Filtro"</span> <span style="color: #0000ff;">OF</span> oWnd ;<br />            <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span>                   ;<br />            <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> alert<span style="color: #000000;">&#40;</span>oGrid:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">Return</span><span style="color: #000000;">&#40;</span><span style="color: #00C800;">NIL</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//**************************************************************************//</span></div>[/code:18b8ul39] Saludos,
problema de pintado del xBrowse
A vueltas con XBrowse. Deseo que toda la linea que tiene el Focus aparezca con fondo azul, y no sólo la celda sobre la que está el cursor. Lo he intentado con oBrw:bClrSel := {|| { CLR_BLACK,fondo}} oBrw:bClrSelFocus := {|| { CLR_BLACK,CRED}} oBrw:bClrRowFocus := {|| { CLR_BLACK,letradialog}} La única que responde a los cambios de color, y solo sobre la celda es oBrw:bClrSelFocus , las demás no hacen nada. Como puedo hacerlo?. Quiero que destaque toda la linea, como sí responde oBrw:bClrStd en función al contenido del registro. Alguna solución? Solucionado con oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW Gracias
problema de pintado del xBrowse
Intenta así [code=fw:1c0l4kfs]<div class="fw" id="{CB}" style="font-family: monospace;">oBrw:<span style="color: #000000;">nMarqueeStyle</span>      := MARQSTYLE_HIGHLCELL</div>[/code:1c0l4kfs]
problema de pintado del xBrowse
[quote="pacotre":1rzgzyvt]A vueltas con XBrowse. Deseo que toda la linea que tiene el Focus aparezca con fondo azul, y no sólo la celda sobre la que está el cursor. Lo he intentado con oBrw:bClrSel := {|| { CLR_BLACK,fondo}} oBrw:bClrSelFocus := {|| { CLR_BLACK,CRED}} oBrw:bClrRowFocus := {|| { CLR_BLACK,letradialog}} La única que responde a los cambios de color, y solo sobre la celda es oBrw:bClrSelFocus , las demás no hacen nada. Como puedo hacerlo?. Quiero que destaque toda la linea, como sí responde oBrw:bClrStd en función al contenido del registro. Alguna solución? Solucionado con oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW Gracias[/quote:1rzgzyvt] Hostias Pacotre, has preguntado y solucionado en el mismo post. No lo habia visto en mi vida. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Perdon por el off-topic. Saludos. Jose.
problema de pintado del xBrowse
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> para no meter otro edité el primero una hora después. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> y así evitar molestias de responde a algo ya resuelto.
problema de pintado del xBrowse
[quote="MOISES":2iteiut1]Hola: Hay un problema de pintado. No pinta toda la anchura de una vez, sino que primero pinta el xBrowse hasta mitad de la pantalla, y luego lo ensancha. El efecto es bastante feo, pues parece que la app va a trompicones. Aquí pongo un ejemplo: [code=fw:2iteiut1]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><br /><br /><br /><span style="color: #00C800;">function</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">local</span> oWnd<br /><span style="color: #00C800;">local</span> oGrid<br /><span style="color: #00C800;">local</span> oBtn, oGet1, oGet2<br /><br /><br /><br /><br />   USE C:\FWH\SAMPLES\CUSTOMER <span style="color: #0000ff;">ALIAS</span> <span style="color: #ff0000;">"BASE"</span> <span style="color: #00C800;">NEW</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   oWnd:<span style="color: #000000;">nHeight</span> := ScreenHeight<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /> <br /><br />   @ <span style="color: #000000;">10</span>, <span style="color: #000000;">151</span> <span style="color: #0000ff;">XBROWSE</span> oGrid ;<br />      <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">-1</span>, <span style="color: #000000;">-1</span> <span style="color: #0000ff;">PIXEL</span> ;<br />      <span style="color: #0000ff;">OF</span> oWnd ;<br />      DATASOURCE <span style="color: #ff0000;">"BASE"</span> ;<br />      AUTOSORT ;<br />      <span style="color: #0000ff;">AUTOCOLS</span> ;<br />      CELL LINES NOBORDER<br /><br /><br /><br /><br /><br />    oGrid:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />     @ <span style="color: #000000;">10</span>, <span style="color: #000000;">10</span> <span style="color: #0000ff;">BUTTON</span> oBtn <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Filtro"</span> <span style="color: #0000ff;">OF</span> oPanel ;<br />              <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">20</span> <span style="color: #0000ff;">PIXEL</span>                   ;<br />              <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> alert<span style="color: #000000;">&#40;</span>oGrid:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd <span style="color: #0000ff;">MAXIMIZED</span><br /><br /><br /><span style="color: #00C800;">Return</span> <span style="color: #00C800;">nil</span><br /><br /> </div>[/code:2iteiut1] Muchas gracias.[/quote:2iteiut1] After [code=fw:2iteiut1]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp;<span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp; &nbsp;oWnd: <span style="color: #000000;">nHeight</span> : = ScreenHeight <span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2iteiut1] Add the line [code=fw:2iteiut1]<div class="fw" id="{CB}" style="font-family: monospace;">oWnd:<span style="color: #000000;">nWidth</span> := ScreenWidth<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:2iteiut1]