Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2002-03-08
2
Medium Priority
?
806 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 9

Accepted Solution

by:
ginsonic earned 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

609 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