🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.graphics
6 messages
6 total messages Started by David HAROUCHE Wed, 02 Jul 2008 19:00
Flickers at Design Time
#474
Author: David HAROUCHE
Date: Wed, 02 Jul 2008 19:00
8 lines
1035 bytes
I use a timer to recalculate pixels displayed in Paint.

At runtime, everything is correct, since I handle WM_ERASEBACKGROUND on
form, but that causes flickers at Design Time...

Suggestions ?

DH
Re: Flickers at Design Time
#475
Author: David Ninnes
Date: Wed, 02 Jul 2008 23:20
21 lines
1253 bytes
"David HAROUCHE" <metanil@hotmail.com> wrote in message 
news:486bcf20@newsgroups.borland.com...
>I use a timer to recalculate pixels displayed in Paint.
>
> At runtime, everything is correct, since I handle WM_ERASEBACKGROUND on
> form, but that causes flickers at Design Time...
>
> Suggestions ?
>
> DH
>
>

maybe

if csDesigning  in ComponentState then
    ....

cheers,
Dave 
Re: Flickers at Design Time
#476
Author: Jim P
Date: Thu, 03 Jul 2008 00:15
31 lines
1554 bytes
David Ninnes wrote:
> "David HAROUCHE" <metanil@hotmail.com> wrote in message 
> news:486bcf20@newsgroups.borland.com...
>> I use a timer to recalculate pixels displayed in Paint.
>>
>> At runtime, everything is correct, since I handle WM_ERASEBACKGROUND on
>> form, but that causes flickers at Design Time...
>>
>> Suggestions ?
>>
>> DH
>>
>>
> 
> maybe
> 
> if csDesigning  in ComponentState then
>     ....
> 
> cheers,
> Dave 
> 
> 
David

What do you call Design time.  This is the coding and placing on the 
form. Not the running and execution of the program

How can you be getting flicker at Design time?

Jim P.
Re: Flickers at Design Time
#477
Author: David HAROUCHE
Date: Thu, 03 Jul 2008 00:44
4 lines
999 bytes
That's an animated TPaintBox... Like a screen saver...
I want it to be active at design time...

DH
Re: Flickers at Design Time
#478
Author: Jim P
Date: Thu, 03 Jul 2008 01:42
18 lines
1534 bytes
David HAROUCHE wrote:
> That's an animated TPaintBox... Like a screen saver...
> I want it to be active at design time...
> 
> DH
> 
> 
so you are asking for the code to be active at design time,
while you are editing and making changes to the code? and the
components?

They do not do this with Combobox's, so that you can see how it works.

They do make menu's be active so that you can see how the menu looks and 
behaves but it is not actually running and when you make a selection it 
sends to the code in edit mode.

Jim P.
Re: Flickers at Design Time
#155
Author: Ian Boyd
Date: Thu, 24 Jul 2008 18:11
13 lines
1554 bytes
"David HAROUCHE" <metanil@hotmail.com> wrote in message 
news:486bcf20@newsgroups.borland.com...
>I use a timer to recalculate pixels displayed in Paint.
>
> At runtime, everything is correct, since I handle WM_ERASEBACKGROUND on
> form, but that causes flickers at Design Time...

That must mean that the entir form is being invalidated, not just the parts 
where your paintbox is.

Perhaps put your TPaintBox in a panel, and have the panel's DoubleBuffered 
property set to true - and don't even deal with the WM_ERASEBKGND of the 
form. The entire form shouldn't be invaliated anyway. 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads