Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-03

Prevent visual updates

11 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jürgen Hestermann
to Chris Crori
Chris Crori wrote
Hi gyus, is there a way to prevent LCL (visual) updates for a short period? i am thinking of something like BeginUpdate/EndUpade in Grids, so i can make some changes drasticaly and avoid the flickering effect

Functions BeginUpdate/EndUpdate exist.
Just use them.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140330/3390d135/attachment.html>

Reply by email

Leonardo M. Ramé
to Jürgen Hestermann
J?rgen Hestermann wrote 10 lines
Am 2014-03-30 12:45, schrieb Chris Crori: > Hi gyus, > is there a way to prevent LCL (visual) updates for a short period? > i am thinking of something like BeginUpdate/EndUpade in Grids, so i > can make some changes drasticaly and avoid the flickering effect > Functions BeginUpdate/EndUpdate exist. Just use them.
Did you try setting "DoubleBuffererd := True;" in the Form OnCreate event?.

Reply by email

Marco van de Voort
to Graeme Geldenhuys
Graeme Geldenhuys wrote
> Did you try setting "DoubleBuffererd := True;" in the Form OnCreate event?. Why isn't DoubleBuffered enabled by default in LCL? I always thought that odd.

I assume because the widgetset might already doublebuffer?

Reply by email

Chris Crori
to Graeme Geldenhuys: Why isn't DoubleBuffered enabled by default in LCL? I always thought that odd. - Graeme -

Doublebuffered did not solve my problem
i have a panel that i make visible depending on a flag. in a unique situation, this flag must change 2 times, so it's my bad, not the LCL's if i could disable the LCL messages in that unique situation, it would be very helpfull, but if i can't do that, i m sure i ll find another way

Thanks all

-----?????? ??????-----

Earlier message 22 lines
From: Graeme Geldenhuys Sent: Sunday, March 30, 2014 8:38 PM To: Subject: Re: [Lazarus] Prevent visual updates On 2014-03-30 14:29, "Leonardo M. Ram?" wrote: > > Did you try setting "DoubleBuffererd := True;" in the Form OnCreate > event?. Why isn't DoubleBuffered enabled by default in LCL? I always thought that odd. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ --

Reply by email

Mattias Gaertner
to Chris Crori
Show quoted text 5 lines
Doublebuffered did not solve my problem i have a panel that i make visible depending on a flag. in a unique situation, this flag must change 2 times, so it's my bad, not the LCL's if i could disable the LCL messages in that unique situation, it would be very helpfull, but if i can't do that, i m sure i ll find another way

Hide/Show the panel on Idle or via a Timer.

Mattias

Reply by email

Chris Crori
to Mattias Gaertner

That is a great idea Mattias!
a timer with "1" as interval is fast enough for responce application and slow enough to avoid flickering

Thanks!

-----?????? ??????-----

Earlier message 19 lines
From: Mattias Gaertner Sent: Sunday, March 30, 2014 11:17 PM To: Subject: Re: [Lazarus] Prevent visual updates On Sun, 30 Mar 2014 23:11:41 +0300 "Chris Crori" wrote: > Doublebuffered did not solve my problem > i have a panel that i make visible depending on a flag. in a unique > situation, this flag must change 2 times, so it's my bad, not the LCL's > if i could disable the LCL messages in that unique situation, it would be > very helpfull, but if i can't do that, i m sure i ll find another way Hide/Show the panel on Idle or via a Timer. Mattias --

Reply by email

Martin Frb
to Chris Crori
Chris Crori wrote
That is a great idea Mattias! a timer with "1" as interval is fast enough for responce application and slow enough to avoid flickering

Another very good way to do this, is using Application.QueueAsync

Reply by email

Chris Crori
to Martin Frb

QueueAsync. Thread safe and multiplatform...
I will look into that Martin, seems like a solution to many problems

Thank you!

-----?????? ??????-----

Earlier message 13 lines
From: Martin Frb Sent: Tuesday, April 01, 2014 11:12 PM To: Lazarus mailing list Subject: Re: [Lazarus] Prevent visual updates On 01/04/2014 20:43, Chris Crori wrote: > That is a great idea Mattias! > a timer with "1" as interval is fast enough for responce application and > slow enough to avoid flickering Another very good way to do this, is using Application.QueueAsync --

Reply by email

Chris Crori
to Chris Crori

QueueAsync works great! Martin you rock! ;)

-----?????? ??????-----

Earlier message 25 lines
From: Chris Crori Sent: Wednesday, April 02, 2014 1:07 AM To: Lazarus mailing list Subject: Re: [Lazarus] Prevent visual updates QueueAsync. Thread safe and multiplatform... I will look into that Martin, seems like a solution to many problems Thank you! -----?????? ??????----- From: Martin Frb Sent: Tuesday, April 01, 2014 11:12 PM To: Lazarus mailing list Subject: Re: [Lazarus] Prevent visual updates On 01/04/2014 20:43, Chris Crori wrote: > That is a great idea Mattias! > a timer with "1" as interval is fast enough for responce application and > slow enough to avoid flickering Another very good way to do this, is using Application.QueueAsync --

Reply by email