This'll give you a single jump rather than a smooth transition.

Borland's Delphi Discussion List <[email protected]> on Tuesday, 27
September 2005 at 16:56 +0000 wrote:
>Try Using LockWindowUpdate to stop drawing of the form until you the
>movement part is completed.
>
>  LockWindowUpdate(self.Handle);
>  try
>    {do your window moving here}
>  finally
>    LockWindowUpdate(0);
>  end;
>
>HTH
>Kind Regards
>Arjang Assadi
>
>On 9/27/05, Hussain Al-Dhaheri <[EMAIL PROTECTED]> wrote:
>> Thanks Rob,
>> So how to solve the problem?
>>
>> -------Original Message-------
>>
>> From: Rob Kennedy
>> Date: 09/26/05 12:42:59
>> To: Borland's Delphi Discussion List
>> Subject: Re: Transparent Form
>>
>> Hussain Al-Dhaheri wrote:
>> > I have an application with a transparent form. I am moving controls
>on the
>> > form during run time. The problem is that the controls move very
>slowly. I
>> > need the control to move smoothly on the form so I need an increments
>of 1
>> > to its current position. When I set the form to non-transparent the
>> control
>> > moves smoothly and quickly on the form. Any ideas?
>>
>> When your form is solid, the OS doesn't have to ask all the windows
>> below your form to paint themselves to an off-screen buffer and then do
>> bitblt operations to form a composite image with your form before
>> painting everything to the screen. When your form is solid, it doesn't
>> matter what's underneath your form, so only your form gets painted.
>>
>> --
>> Rob
>> _______________________________________________
>> Delphi mailing list -> [email protected]
>> http://www.elists.org/mailman/listinfo/delphi
>> _______________________________________________
>> Delphi mailing list -> [email protected]
>> http://www.elists.org/mailman/listinfo/delphi
>>
>_______________________________________________
>Delphi mailing list -> [email protected]
>http://www.elists.org/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to