Delphi/MDI form

Advertisement


Question
Hi !
I have a MDI form with a Timage in a backgroud of the form.
a outlook bar aligned to the right and image is a client.
sometimes resizing the form or work with the outlook causes flashing the image. (or blinking).
how can i do that this blinking dont appeared.
TNX.

Answer
Hamid,
 I've seen that before, and the first thing that comes to mind is to override the TImage class, and use a timer to delay the WM_Paint event. If you put DrawTimer.Enabled:=True; in the WM_Paint event, you can delay the painting until the timer expires. That should prevent the blinking.
Sincerley,
Brian

Delphi

All Answers


Answers by Expert:


Ask Experts

Volunteer


Brian Sill

Expertise

Designing and implementing DOS, DPMI, and Windows apps in TP, BP, and Delphi (Windows VCL, Custom Controls, Runtime UI design, Windows API, Database, SQL, Threading, Btrieve, Pervasive.SQL, Advantage Database, ADO to MDB, ADO to MS SQL, MDI Apps, MS Office Integration, barcode generation, Document imaging application development, TIFF file structure, and some IFF file experience).

Experience

Turbo Pascal and Delphi developer since 1986. Proficient in web design incuding XHTML, CSS, and Javascript. Fluent in C, C++, Visual Basic (especially VBA), and Modula-2.

Education/Credentials
Over 20 years designing and implementing DOS, DPMI, and Windows apps in TP, BP, and Delphi.

©2016 About.com. All rights reserved.