In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Window flickering

Xailer professional forum in English
Responder
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Dear developers!
I noticed that if there is a parent window with background color <>
clBtnFace then any child window is flickering when it appears above parent
window. Can you look at this problem (in attached sample)?
Regards,
Oleg


Attached files test32.zip (3 KB)Â
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Window flickering

Mensaje por ignacio »

Oleg,
Absolutely no flickering here. Could anyone more test it please. TIA
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:[email=4689ee2a@ozsrv2.ozlan.local...]4689ee2a@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I noticed that if there is a parent window with background color <>
> clBtnFace then any child window is flickering when it appears above parent
> window. Can you look at this problem (in attached sample)?
>
> Regards,
> Oleg
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Window flickering

Mensaje por NoName »

Oleg,
Absolutely no flickering here. Could anyone more test it please. TIA
Regards,
--
Ignacio Ortiz de Zúñiga
http://www.xailer.com
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:[email=4689ee2a@ozsrv2.ozlan.local...]4689ee2a@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I noticed that if there is a parent window with background color <>
> clBtnFace then any child window is flickering when it appears above parent
> window. Can you look at this problem (in attached sample)?
>
> Regards,
> Oleg
>
>
Avatar de Usuario
Dionisis Divaris
Mensajes: 485
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

Window flickering

Mensaje por Dionisis Divaris »

Oleg and Ignacio
I run the attached project without any flickering. It runs
very smoothly.
Regards Dionisis
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:[email=468a1ad3@ozsrv2.ozlan.local...]468a1ad3@ozsrv2.ozlan.local...[/email]
> Oleg,
>
> Absolutely no flickering here. Could anyone more test it please. TIA
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Oleg" <info@cluster.samara.ru> escribió en el mensaje
> news:[email=4689ee2a@ozsrv2.ozlan.local...]4689ee2a@ozsrv2.ozlan.local...[/email]
>> Dear developers!
>>
>> I noticed that if there is a parent window with background color <>
>> clBtnFace then any child window is flickering when it appears above
>> parent window. Can you look at this problem (in attached sample)?
>>
>> Regards,
>> Oleg
>>
>>
>
>
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Avatar de Usuario
Dionisis Divaris
Mensajes: 485
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

Window flickering

Mensaje por Dionisis Divaris »

Oleg and Ignacio
I run the attached project without any flickering. It runs
very smoothly.
Regards Dionisis
"Ignacio Ortiz de Zúñiga" <NoName@xailer.com> wrote in message
news:[email=468a1ad3@ozsrv2.ozlan.local...]468a1ad3@ozsrv2.ozlan.local...[/email]
> Oleg,
>
> Absolutely no flickering here. Could anyone more test it please. TIA
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> http://www.xailer.com
>
>
> "Oleg" <info@cluster.samara.ru> escribió en el mensaje
> news:[email=4689ee2a@ozsrv2.ozlan.local...]4689ee2a@ozsrv2.ozlan.local...[/email]
>> Dear developers!
>>
>> I noticed that if there is a parent window with background color <>
>> clBtnFace then any child window is flickering when it appears above
>> parent window. Can you look at this problem (in attached sample)?
>>
>> Regards,
>> Oleg
>>
>>
>
>
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Ignacio and Dionisis!
> I run the attached project without any flickering. It runs
> very smoothly.
>> Absolutely no flickering here. Could anyone more test it please. TIA
It is really strange. I always see flickering when the child window appears
(after click on button 'Click it'). It especially can be seen if I do it
many times
(click button, then close child window, click button, then close child
window, an so on).
I have WinXP Prof SP2, Celeron 2.8GHz, RAM 512MB, mainboard with integrated
Intel 82865G Graphics controller, 1024*768 resolution (32 bit color).
Regards,
Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Ignacio and Dionisis!
> I run the attached project without any flickering. It runs
> very smoothly.
>> Absolutely no flickering here. Could anyone more test it please. TIA
It is really strange. I always see flickering when the child window appears
(after click on button 'Click it'). It especially can be seen if I do it
many times
(click button, then close child window, click button, then close child
window, an so on).
I have WinXP Prof SP2, Celeron 2.8GHz, RAM 512MB, mainboard with integrated
Intel 82865G Graphics controller, 1024*768 resolution (32 bit color).
Regards,
Oleg
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Window flickering

Mensaje por Ingo »

Oleg,
here the modal dialog is flickering when I click on the area of the parent
form. Is that what you mean?
Regards
Ingo
"Oleg" <info@cluster.samara.ru> wrote:
>Ignacio and Dionisis!
>
>> I run the attached project without any flickering. It runs
>> very smoothly.
>>> Absolutely no flickering here. Could anyone more test it please. TIA
>
>It is really strange. I always see flickering when the child window appears
>(after click on button 'Click it'). It especially can be seen if I do it
>many times
>(click button, then close child window, click button, then close child
>window, an so on).
>I have WinXP Prof SP2, Celeron 2.8GHz, RAM 512MB, mainboard with integrated
>Intel 82865G Graphics controller, 1024*768 resolution (32 bit color).
>
>Regards,
>Oleg
>
>
Ingo
Mensajes: 330
Registrado: Mié Jul 05, 2006 3:58 pm

Window flickering

Mensaje por Ingo »

Oleg,
here the modal dialog is flickering when I click on the area of the parent
form. Is that what you mean?
Regards
Ingo
"Oleg" <info@cluster.samara.ru> wrote:
>Ignacio and Dionisis!
>
>> I run the attached project without any flickering. It runs
>> very smoothly.
>>> Absolutely no flickering here. Could anyone more test it please. TIA
>
>It is really strange. I always see flickering when the child window appears
>(after click on button 'Click it'). It especially can be seen if I do it
>many times
>(click button, then close child window, click button, then close child
>window, an so on).
>I have WinXP Prof SP2, Celeron 2.8GHz, RAM 512MB, mainboard with integrated
>Intel 82865G Graphics controller, 1024*768 resolution (32 bit color).
>
>Regards,
>Oleg
>
>
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Ingo!
> here the modal dialog is flickering when I click on the area of the parent
> form. Is that what you mean?
No, I mean 'flickering' is some dark garbage in window area for a while
(when child window becomes visible)
Regards,
Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Ingo!
> here the modal dialog is flickering when I click on the area of the parent
> form. Is that what you mean?
No, I mean 'flickering' is some dark garbage in window area for a while
(when child window becomes visible)
Regards,
Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Ignacio, Dionisis, Ingo!
I made some tests and found that the cause of this problem is
WS_CLIPCHILDREN style in window style of TFrmAbout.
If I exclude this style, child window is appearing without any 'flickering'.
I do not know if it's correct or not, but it works.
// changes in my sample
METHOD FormInitialize( oSender ) CLASS TFrmAbout
::nCtlStyle := nExclude( ::nCtlStyle, WS_CLIPCHILDREN )
IF ! Empty( ::Handle )
SetWindowLong( ::Handle, GWL_STYLE, ::nCtlStyle )
endif
::oBtnOK:SetFocus()
RETURN Nil
Regards,
Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Ignacio, Dionisis, Ingo!
I made some tests and found that the cause of this problem is
WS_CLIPCHILDREN style in window style of TFrmAbout.
If I exclude this style, child window is appearing without any 'flickering'.
I do not know if it's correct or not, but it works.
// changes in my sample
METHOD FormInitialize( oSender ) CLASS TFrmAbout
::nCtlStyle := nExclude( ::nCtlStyle, WS_CLIPCHILDREN )
IF ! Empty( ::Handle )
SetWindowLong( ::Handle, GWL_STYLE, ::nCtlStyle )
endif
::oBtnOK:SetFocus()
RETURN Nil
Regards,
Oleg
Avatar de Usuario
Dionisis Divaris
Mensajes: 485
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

Window flickering

Mensaje por Dionisis Divaris »

Oleg
I run your code more than an hour, in 3 different Pc's with the same
capabilities ( windows XP +SP2 ) a celeron, a P4 3.2GHz and finally one with
Duo Core @6400. Never seen any flickering, your code run smoothly on every
individual pc without any problem.
Regards
Dionisis
Ï "Oleg" <info@cluster.samara.ru> Ýãñáøå óôï ìÞíõìá
news:[email=468b4e79@ozsrv2.ozlan.local...]468b4e79@ozsrv2.ozlan.local...[/email]
> Ignacio, Dionisis, Ingo!
>
> I made some tests and found that the cause of this problem is
> WS_CLIPCHILDREN style in window style of TFrmAbout.
> If I exclude this style, child window is appearing without any
> 'flickering'. I do not know if it's correct or not, but it works.
>
> // changes in my sample
> METHOD FormInitialize( oSender ) CLASS TFrmAbout
> ::nCtlStyle := nExclude( ::nCtlStyle, WS_CLIPCHILDREN )
> IF ! Empty( ::Handle )
> SetWindowLong( ::Handle, GWL_STYLE, ::nCtlStyle )
> endif
> ::oBtnOK:SetFocus()
> RETURN Nil
>
> Regards,
> Oleg
>
>
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Xailer
Mensajes: 328
Registrado: Mar Dic 23, 2008 5:40 pm

Window flickering

Mensaje por Xailer »

Oleg
I run your code more than an hour, in 3 different Pc's with the same
capabilities ( windows XP +SP2 ) a celeron, a P4 3.2GHz and finally one with
Duo Core @6400. Never seen any flickering, your code run smoothly on every
individual pc without any problem.
Regards
Dionisis
Ï "Oleg" <info@cluster.samara.ru> Ýãñáøå óôï ìÞíõìá
news:[email=468b4e79@ozsrv2.ozlan.local...]468b4e79@ozsrv2.ozlan.local...[/email]
> Ignacio, Dionisis, Ingo!
>
> I made some tests and found that the cause of this problem is
> WS_CLIPCHILDREN style in window style of TFrmAbout.
> If I exclude this style, child window is appearing without any
> 'flickering'. I do not know if it's correct or not, but it works.
>
> // changes in my sample
> METHOD FormInitialize( oSender ) CLASS TFrmAbout
> ::nCtlStyle := nExclude( ::nCtlStyle, WS_CLIPCHILDREN )
> IF ! Empty( ::Handle )
> SetWindowLong( ::Handle, GWL_STYLE, ::nCtlStyle )
> endif
> ::oBtnOK:SetFocus()
> RETURN Nil
>
> Regards,
> Oleg
>
>
Dionisis Divaris
SGS-soft
Home Page :
Support at :support.sgs@gmail.com[/email]
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Dionisis!
> I run your code more than an hour, in 3 different Pc's with the same
> capabilities ( windows XP +SP2 ) a celeron, a P4 3.2GHz and finally one
> with Duo Core @6400. Never seen any flickering, your code run smoothly on
> every individual pc without any problem.
Thank you for trying to help. Sorry to hear that you cannot see any problem.
Can you or anyone else tell me about side effects of excluding
WS_CLIPCHILDREN from window style?
Regards,
Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Window flickering

Mensaje por Oleg »

Dionisis!
> I run your code more than an hour, in 3 different Pc's with the same
> capabilities ( windows XP +SP2 ) a celeron, a P4 3.2GHz and finally one
> with Duo Core @6400. Never seen any flickering, your code run smoothly on
> every individual pc without any problem.
Thank you for trying to help. Sorry to hear that you cannot see any problem.
Can you or anyone else tell me about side effects of excluding
WS_CLIPCHILDREN from window style?
Regards,
Oleg
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Window flickering

Mensaje por jfgimenez »

Oleg,
> I noticed that if there is a parent window with background color <>
> clBtnFace then any child window is flickering when it appears above parent
> window. Can you look at this problem (in attached sample)?
I don't see any flick when running the sample. Perhaps it's something
relating to your video card or its configuration.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Window flickering

Mensaje por jfgimenez »

Oleg,
> I noticed that if there is a parent window with background color <>
> clBtnFace then any child window is flickering when it appears above parent
> window. Can you look at this problem (in attached sample)?
I don't see any flick when running the sample. Perhaps it's something
relating to your video card or its configuration.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Window flickering

Mensaje por jfgimenez »

Oleg,
> Thank you for trying to help. Sorry to hear that you cannot see any
> problem.
> Can you or anyone else tell me about side effects of excluding
> WS_CLIPCHILDREN from window style?
Excluding that style causes that the form's area covered by child controls
are painted by the form and repainted by the controls in every paint cycle,
so it maight cause flickering.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Window flickering

Mensaje por jfgimenez »

Oleg,
> Thank you for trying to help. Sorry to hear that you cannot see any
> problem.
> Can you or anyone else tell me about side effects of excluding
> WS_CLIPCHILDREN from window style?
Excluding that style causes that the form's area covered by child controls
are painted by the form and repainted by the controls in every paint cycle,
so it maight cause flickering.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder