Solved

How to avoid flickering when creating MDI child forms as wsMaximized?

Posted on 2002-03-08
2
751 Views
Last Modified: 2012-05-05
I have an MDI child form (derived from TForm), whose WindowState property is set to wsMaximized (by using the object inspector).

When I create it from my MDI parent form ( TMDIChild.Create(Self); ), it first shows up with not the maximized state and just after that it becomes maximized. This causes annoying flickering and my question is how to avoid this?

My Delphi version is Delphi 6 Pro.
0
Comment
Question by:Kelmi
2 Comments
 
LVL 9

Accepted Solution

by:
ginsonic earned 100 total points
ID: 6852338
Read this tip :

'How to avoid flicker when moving or sizing a MDI child form'

http://www.lmc-mediaagentur.de/dpool/tips06/0532.htm
0
 

Author Comment

by:Kelmi
ID: 6852748
Thanks for the link you gave.

I noticed that the LockWindowUpdate block works best when you use it round the whole MDI child form's create statement, like: (I call this from my MDI parent form)

  LockWindowUpdate(ClientHandle);
  TMDIChildForm.Create(Self);
  LockWindowUpdate(0);

If you use the LockWindowUpdate block inside MDI child form's constructor, some flickering still exists. I don't know why.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question