Solved

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

Posted on 2002-03-08
2
725 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This video discusses moving either the default database or any database to a new volume.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now