• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 826
  • Last Modified:

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

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.
1 Solution
Read this tip :

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

KelmiAuthor Commented:
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)


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

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now