CONTROL LABEL IN HMG 3.4

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: CONTROL LABEL IN HMG 3.4

Post by EduardoLuis »

Hi Andyglez:

Yes, all labels MUST have the transparent property, otherwise you'll see on any screen.-
What you describe about some missing part or graphic, seems to be an issue of SO.-
I don't have Win 10 to check this app.-
In my checks with WINXP SP3, Win Vista, 7, and Win 8, works fines.-
Sometime ago, Dr. Claudio Soto, mention that some changes on newest SO becomes on new issues on HMG, and i'm sure he is right.-
In my experience, if i develope any appe under WINXP and execute on superior SO, no issues happend, unless a deep modification of newest SO makes incompatible my 32 bit app.- Till now no issues report.-
I'm using latest HMG 3.42 with all it's patches under Win XPSP3, and looks stable.-
Althoug i don't uses all HMG 3.42 functions or commands, as i said, HMG is stable.-
The only issue i found was on a missalignment with HPDF when i mix graphics with complex text, but, with less effort you can change positions to prevent it.-
With regards.
Eduardo

Hola Andy:

Si, los labels OBLIGATORIAMENTE tienen la propiedad transparente activa, de otro modo los verías en la pantalla.-
Lo que describís sobre la pérdida de una parte de los gráficos al desplegarse el CAPTION del control label, me parece mas un problema del SO que de HMG.-
Yo no tengo instalada la versión Win 10 para poder chequear que la app funciona correctamente.-
Todas mis pruebas son hechas en WinXp SP3, Win Vista, Win 7 y Win 8, y hasta ahora todo ha funcionado bien.
Tiempo atrás, el Dr. Claudio Soto, mencionó que algunos cambios en los nuevos SO traían inconvenientes en HMG, y creo que el está en lo correcto.-
En mi experiencia, yo desarrollo mis aplicaciones bajo WIN XP y las testeo y ejecuto en versiones superiores del SO, y hasta ahora no he tenido problemas, a menos que el nuevo sistema operativo tuviera profundas modificaciones y que hiciera incompatible mis appe de 32 bits. Hasta ahora no tengo reportes de inconvenientes.-
Utilizo la última version HMG 3.42 con todos sus patches y siempre bajo Win XPSP3, y es estable.-
Aunque no utilizo todas las funciones o comandos de HMG 3.42, como dige, HMG se mantiene estable.-
El único inconveniente que encontré fue el desalinieamiento con HPDF cuando mezclo graficos y textos complejos, pero, con poco esfuerzo el inconveniente se soluciona cambiando las coordenadas posteriores al gráfico.-
Cordialmente.
Eduardo
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: CONTROL LABEL IN HMG 3.4

Post by andyglezl »

Lo que pasa es que los LABELs tal como se definen, así quedan, no cambian su valor
en el caso de desplegar un valor cambiante, sí se nota el problema.
--------------------------------------------------------------------------------------------------------------
What happens is that the labels as defined, are thus not change its value
in the case of displaying a changing value, if the problem is noticed.

Poniendo lo siguiente, se nota el problema...
----------------------------------------------------------
Putting the following, the problem is noticed ...

Code: Select all

		****** PRUEBA AGL
		@ 010,600 LABEL LB_Reloj VALUE TIME() WIDTH 100 HEIGHT 15 FONT "Verdana" SIZE 10 FONTCOLOR BLACK BACKCOLOR SLATEGRAY CENTERALIGN TRANSPARENT
		DEFINE TIMER TimerReloj INTERVAL 1000 ACTION Segundero()
		*********************************
.
.
.
FUNCTION Segundero()
	Form_1.LB_Reloj.Value := TIME( )
RETURN nil
mini.jpg
mini.jpg (121.72 KiB) Viewed 3336 times
Andrés González López
Desde Guadalajara, Jalisco. México.
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: CONTROL LABEL IN HMG 3.4

Post by EduardoLuis »

Hi Andyglez:

First, sorry because i don't reply to you yesterday, but i prefer to make other test.-
You are right, althougth i don't know the reason why these happends.-
I replicate your sample and test samples on control folder (label), and the result was what you show.-
Just to read where is the problem, i made several test under HMG versions since 3.15.-

All function ok till Version 3.40 WITHOUT PATCH.-
When i test the sample on HMG 3.40 with PATCHES updated beguins these issue, if you modify VALUE property of the label, last value REMAIN and new one overwrites it preserving previous character.-
Fortunatelly i upgrade each version (since 3.46) in different folders, so to reach stability or issues on my app y test it on all of them.-
This test reveals that there is nothing wrong on SO (my first impression).- Something has changed between HMG 3.40 with no patches and 3.40 with patches.-
I think the only person could solve the problem is Dr. Claudio Soto.- We must wait till he can get what could produce this behaviour.-

Please - just to be shure there are not doubt, compile your appe with HMG 3.40 without any patch, and tell me what happens.-
Well, with regards.
Eduardo.-


Hola Andyglez:

En principio te pido disculpas por no haberte respondido ayer, pero preferí hacer algunos test antes de contestarte.-
Tenias razón, aunque no puedo determinar la razón por la que este inconveniente sucede.-
REplique tu ejemplo y los ejemplos que se encuentran en la carpeta Label, y el resultado fue el que tu exhibiste.-
Solo para corroborar donde esta el problema, realizé diferentes tests bajo las distintas versiones desde la 3.15 en adelante.-
En todas las versiones desde la 3.15 y hasta la 3.40 SIN PATCHES en esta última, todo funcionó correctamente.-
Cuando lo testee en la version HMG 3.40 con PATCHES surgió el inconveniente que describir, si modificas la propiedad VALUE, el último valor del Label es mantenido y el nuevo lo sobre escribe preservando los caracteres previos.-
Afortunadamente cuando actualizo las nuevas versiones de HMG (desde la 3.46), las preservo en diferentes carpetas, así para comprobar la estabilidad o mal funcionamiento de mis desarrollos los testo en cada una de ellas.-
Este test revela que la causa no se debe a cambios en el SO (Win XXXXXXXXXXXX), HABIENDO sido esa mi primer impresión.- Interpreto que algo a cambiado en el PATCH que actualizó la version HMG 3.40.-
Creo que la única persona que puede llegar a encontrar la solución es el Dr. Claudio Soto. Tendremos que esperar hasta que llegue a determinar que causa este comportamiento.-
Te solicitaría - para asegurarme que no exista dudas sobre este comportamiento o bugg - que compiles tu aplicativo en una versión 3.40 win ningun patch, y luego me postees que sucedión.-
Bien, te mando un cordial saludo.
Eduardo
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: CONTROL LABEL IN HMG 3.4

Post by andyglezl »

Hola

Sobre este tema de la propiedad TRANSPARENT en el CONTROL LABEl, no se si ya se encontró
algo para solucionarlo ya que en los textos que son cambiantes, se ve un fondo blanco
al momento de cambiar.

Cuando el texto es transparente y cambia cada segundo, (como el segundero del reloj)
se nota mucho el parpadeo, ademas en textos grandes con esta propiedad, se nota mucho mas.

Con la versión 3.4.6 que yo maneje mucho, funciona OK.
-----------------------------------------------------------------------------------------------------------------
Hello

On this issue of TRANSPARENT property in the Label control, if not already found something to fix it
because in the texts that are changing, a white background looks at the time of change.

When the text is transparent and changes every second, (like the clock's second)
is very noticeable flicker, also in great texts with this property, it shows much more.

With version 3.4.6 I drive a lot, it works OK.


---------------------------------------------------------------------------
Eduardo Luis, disculpas por no responder, no se porque no había visto este post...
Andrés González López
Desde Guadalajara, Jalisco. México.
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: CONTROL LABEL IN HMG 3.4

Post by EduardoLuis »

Hi Andyglez:

Before anything, you can't be using HMG 3.46, because last one and present is HMG 3.43.-
Background color of any LABEL CONTROL, is determined by the first pixel of general background screen.-
On Miniwriter sample, background color is defined as white, so when any label is changed, that will be the momentary color of the background of that control.-

Try asigning new value of time using MODIFY CONTROL instead of redrawing LABEL..VALUE.-
These won't solve background white appearance.-

Try compiling your app with 3.43, the latest one.-

Hoping this helps you.-
With regards.
Eduardo
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: CONTROL LABEL IN HMG 3.4

Post by andyglezl »

Lo siento, error de dedo. HMG 3.0.46
Andrés González López
Desde Guadalajara, Jalisco. México.
EduardoLuis
Posts: 682
Joined: Tue Jun 04, 2013 6:33 pm
Location: Argentina

Re: CONTROL LABEL IN HMG 3.4

Post by EduardoLuis »

Hi Andyglez:

I'm sorry to not answer you yesterday.-
My best suggestion is: UPGRADE HMG.-
Many controls and functions have change since V 3.046, so you are loosing a lot.-
If for any reason you don't want to upgrade to V 3.43, at least upgrade to any since 3.40.-
And finally take a look at change.log included on each new version.-
With regards.
Eduardo
Post Reply