CONTROL GRID - Refresco de información muy lento

HMG en Español

Moderator: Rathinagiri

User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: CONTROL GRID - Refresco de información muy lento

Post by mol »

Maybe you should define your private GRID control based on this one fro 3.0.39?
I'm not using UNICODE, but, when compile with ANSI, grid control display strange things in text columns, even if content of column does not cantain national characters.
Image
Izdeo
Posts: 17
Joined: Sat Jun 28, 2014 7:17 am

Re: CONTROL GRID - Refresco de información muy lento

Post by Izdeo »

Hello Mol,

El grid en ningún momento presenta caracteres extraños.
La compilación se hace correctamente en cualquiera de los modos, Ansi o Unicode, utilizando la configuración adecuada.
Este no es el problema.
Es un problema de velocidad en el desplazamiento de información dentro del control Grid y también de molestos parpadeos.

Gracias por la ayuda en cualquier caso.

____________

(Google)

Mol Hello,

The grid at no time has foreign characters.
The compilation is done correctly in either mode, ANSI or Unicode, using the appropriate settings.
This is not the problem.
It is a problem of displacement speed of information within the Grid control and annoying flicker.

Thanks for the help anyway.
martingz
Posts: 401
Joined: Wed Nov 18, 2009 11:14 pm
Location: Mexico

Re: CONTROL GRID - Refresco de información muy lento

Post by martingz »

Izdeo , encontre un truco para evitar ese parpadeo molesto en las versiones 3.0.39, no se si sea lo adecuado, pero me funciono
en el archivo h_grid.prg, en la linea 547 _HMG_DOGRIDREFRESH(I) , comente esta y construi las liberiras, deja de verse el parpadeo y se acelera el despliege de la informacion, claro que al terminar de cargar los datos tienes que hacer un refresh del grid.
Esta trabajando sin errores desde hace bastante tiempo.


Izdeo, i have a dirty trick for this flicker problem, en 3.0.39 , in h_grid.prg coment 547 line and build the library, no more flicker , but you have to do
a grid refresh when finish.

This is in work for a long time whith no errors
User avatar
mol
Posts: 3774
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: CONTROL GRID - Refresco de información muy lento

Post by mol »

I know your post was about speed. But, I want to point problems with strange characters, too. I've compiled hmg with ansi option to avoid translatung letters - this should increase speeed, but, I've got translated text. It's pointing to errors in source code, IMHO.
Izdeo
Posts: 17
Joined: Sat Jun 28, 2014 7:17 am

Re: CONTROL GRID - Refresco de información muy lento

Post by Izdeo »

Gracias para Martingz y Mol
Finalmente no he conseguido evitar el parpadeo en el control grid, con la modificaciones propuestas para la versión para la versión 3.0.39.
La versión 3.1.1 no permite usar este control a causa de su baja velocidad de refresco de la información, que resulta inaceptable.
Alguién conoce una forma efectiva de eliminar el parpadeo del control grid en la versión 3.0.39 ???
__________________________________________
(Google)

Thank to Martingz and Mol
Finally I have not managed to avoid flicker in the grid control, with the proposed changes to the version for version 3.0.39.
Version 3.1.1 does not allow use this control because of its low refresh rate information, which is unacceptable.
Someone knows an effective way to eliminate flicker of grid control in version 3.0.39 ???
Thank
Izdeo
Posts: 17
Joined: Sat Jun 28, 2014 7:17 am

Re: CONTROL GRID - Refresco de información muy lento

Post by Izdeo »

Enhorabuena!!
Por fin la versión la versión 3.4.0 (test) soluciona el problema de velocidad en el refresco del control grid que resultaba excesivamente lento en la version 3.3.1.
Ahora ya puedo actualizar a esta versión.

Sin embargo, el parpadeo al desplazar la información permanece como en las versiones anteriores.

Este parpadeo no resulta agradable para el usuario y aumenta la fatiga visual del usuario del software que trabaja con este tipo de control.

El parche proporcionado por el Dr.Claudio solucionaba de forma eficaz el problema del parpadeo en la version 3.3.1

Quizá sea posible tambien eliminar este parpadeo en la version 3.4.0 de forma más definitiva añadiendo una opción en la definición del control grid.

Por otro lado en encontrado algún problema en la versión 3.4.0 que quizá puedan ser resueltos:

1º Cuando se produce un error de sintaxis en la definición de un control, el proceso de complilación se detiene, y no se muestra muestra la ventana de información del error y todo el software queda bloqueado hasta que se interrumpe manualmente la ejecución del compilador.

2º Los controles de imagen definidos dentro de una ventana con tamaño extra virtual tipo panel, no se muestran correctamente en la posición definida en el control de imagen.

3º Si se produce un error del tipo división bi cero, el control grid deja de mostrar informacion correctamente y queda fondo y texto en color negro.

Saludos y Muchas gracias.



( Google Translator, Sorry! )

Congratulations !!
Finally version 3.4.0 version (test) solves the problem of speed in the refresh control grid was too slow in version 3.3.1.
Now I can upgrade to this version.

However, flicker when moving the information remains as in previous versions.

This blinking is user friendly and increases user eyestrain software that works with this type of control.

The patch provided by Dr. Claudio effectively solved the problem of flicker in version 3.3.1

Perhaps it is also possible to eliminate this flicker version 3.4.0 adding more definitively an option in the definition of grid control.

On the other side I found a problem in version 3.4.0 that perhaps can be resolved:

1 When a syntax error occurs in the definition of a control complilación process stops, and no sample window displays error information and all software is locked until manually interrupts the execution of the compiler.

2nd Picture controls defined within a window size extra virtual panel type, do not display correctly in the position defined in the image control.

3rd If an error bi zero division occurs, the grid control stops displaying information correctly and remains black background and text color.

Greetings and thank you.
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

CONTROL GRID - Refresco de información muy lento

Post by Pablo César »

Hola Izdeo, gracias por tus esclarecimientos y participacion.
Izdeo wrote:El parche proporcionado por el Dr.Claudio solucionaba de forma eficaz el problema del parpadeo en la version 3.3.1
Me parece que leí algo que el Dr. Claudio explicaba algo sobre doble buferizacion (LVS_EX_DOUBLEBUFFER), pero creo que esto deja lento. De cualquier forma, voy a dejar que esto lo explique el Dr. Soto que entiende más.
Izdeo wrote:1º Cuando se produce un error de sintaxis en la definición de un control, el proceso de complilación se detiene, y no se muestra muestra la ventana de información del error y todo el software queda bloqueado hasta que se interrumpe manualmente la ejecución del compilador.
Cuanto a este caso, otros colegas ya presentaron este mismo problema. Por favor lea esto: http://hmgforum.com/viewtopic.php?p=39551#p39551

Slds
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
srvet_claudio
Posts: 2220
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: CONTROL GRID - Refresco de información muy lento

Post by srvet_claudio »

Izdeo wrote:Enhorabuena!!
The patch provided by Dr. Claudio effectively solved the problem of flicker in version 3.3.1

Perhaps it is also possible to eliminate this flicker version 3.4.0 adding more definitively an option in the definition of grid control.
See:

Code: Select all

 <ParentWindowName>.<GridControlName>.PaintDoubleBuffer [ := | -->] lBoolean   // Paints via double-buffering, which reduces flicker
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
Izdeo
Posts: 17
Joined: Sat Jun 28, 2014 7:17 am

Re: CONTROL GRID - Refresco de información muy lento

Post by Izdeo »

Simplemente perfecto!!
La propiedad PainDoubleBuffer no aparece en la documentación pero efectivamente funciona a la perfección.
Ahora la velocidad del control Grid es perfecta y no produce parpadeo.

Muchas gracias Dr. Claudio, Pablo y a todas las personas que colaboran en este proyecto.

(Google translator)

Just perfect !!
Pain Double Buffer property is not listed in the documentation but actually works perfectly.
Now the speed of the Grid control is perfect and does not produce flicker.
Thank you very much Dr. Claudio, Paul and all those who collaborate in this project.
User avatar
danielcrocciari
Posts: 22
Joined: Thu Feb 11, 2010 12:56 am
DBs Used: DBF, MySQL, SQLite
Location: Nagano - Japão
Contact:

Re: CONTROL GRID - Refresco de información muy lento

Post by danielcrocciari »

Saudações à todos

_HMG_DOGRIDREFRESH(I) foi retirado do grid.prg, é possível acioná-lo novamente? Ou existe alguma função capaz de reproduzir esse refresh no grid, pois acho prático definir os atributos da grid dentro do programa, por exemplo:

Code: Select all

// por enquanto esse trecho nao esta funcionando, devido ao _HMG_DOGRIDREFRESH ter sido desativado
// fontname, fontsize, bold, italic, underline, strikeout

cFontName := "Courier New"
nFontSize := 9

_SetFont( cControlHandle, cFontName, nFontSize, .f., .f., .f., .f. )
      
_HMG_SYSDATA [ 27 ] [ k ] := cFontName
_HMG_SYSDATA [ 28 ] [ k ] := nFontSize
_HMG_SYSDATA [ 29 ] [ k ] := aFontStyle

_HMG_DOGRIDREFRESH( k )
Sem o _HMG_DOGRIREFRESH não consigo definir no código fonte alguns atributos que desejo, alguém sabe como fazer isso?

Desde já obrigado.
Daniel Crocciari
Brasil - Japan
Projetos HMGLights

HMGLights Site
http://hmglights.wordpress.com/


Canal do YouTube
http://www.youtube.com/hmglights


Céu Azul Tecnologia & Software
http://www.ceuazul.net
Post Reply