Página 1 de 1
Window flickering
Publicado: Mar Jul 03, 2007 8:35 am
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)Â
Window flickering
Publicado: Mar Jul 03, 2007 11:45 am
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
>
>
Window flickering
Publicado: Mar Jul 03, 2007 11:45 am
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
>
>
Window flickering
Publicado: Mar Jul 03, 2007 11:32 pm
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
>>
>>
>
>
Window flickering
Publicado: Mar Jul 03, 2007 11:32 pm
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
>>
>>
>
>
Window flickering
Publicado: Mié Jul 04, 2007 5:42 am
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
Window flickering
Publicado: Mié Jul 04, 2007 5:42 am
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
Window flickering
Publicado: Mié Jul 04, 2007 6:39 am
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
>
>
Window flickering
Publicado: Mié Jul 04, 2007 6:39 am
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
>
>
Window flickering
Publicado: Mié Jul 04, 2007 9:14 am
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
Window flickering
Publicado: Mié Jul 04, 2007 9:14 am
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
Window flickering
Publicado: Mié Jul 04, 2007 9:38 am
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
Window flickering
Publicado: Mié Jul 04, 2007 9:38 am
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
Window flickering
Publicado: Mié Jul 04, 2007 4:34 pm
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
>
>
Window flickering
Publicado: Mié Jul 04, 2007 4:34 pm
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
>
>
Window flickering
Publicado: Jue Jul 05, 2007 7:26 am
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
Window flickering
Publicado: Jue Jul 05, 2007 7:26 am
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
Window flickering
Publicado: Dom Jul 08, 2007 9:03 pm
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
Window flickering
Publicado: Dom Jul 08, 2007 9:03 pm
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
Window flickering
Publicado: Dom Jul 08, 2007 9:07 pm
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
Window flickering
Publicado: Dom Jul 08, 2007 9:07 pm
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