Solved

About MDI (Question 2)

Posted on 1997-12-20
6
208 Views
Last Modified: 2010-04-04
I noticed that when I switch between MDI Child Windows (In Maximized state) it always cause the screen to flicker...
And if I'm not wrong, the Child Window's state actually changes from normal to maximize thus causing the flicker

Anyway to overcome this?
0
Comment
Question by:WizKid
  • 3
  • 2
6 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1354278
?? Do you want to keep the dimensions of the child?
0
 

Author Comment

by:WizKid
ID: 1354279
Yes
0
 
LVL 3

Accepted Solution

by:
d4jaj1 earned 40 total points
ID: 1354280
Don'rt really know 'why' this happens, but it will every time you open an MDI Child.  To stop the flicker, they this:

procedure TMDIParent.Button1Click(Sender: TObject);
begin
 lockwindowupdate(MDIParent_Name.handle);
 Application.CreateForm(TMDIChild_Name, MDIChild_Name);
 lockwindowupdate(0);
end;

Any questions, add a comment. Good Luck!

Jay
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Comment

by:WizKid
ID: 1354281
It works for my New/Open procedure...
But it doesn't work when I switch between windows as well as Tile/Cascade...


 
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1354282
Hi WizKid,

look at this sample code :

http://torry.rimini.com/samples/samples/mddi1097.zip;

Sample of MDI with tabset, flickerless, ....

All what you need.

Merry X-Mas & Happy New Year!
Have fun,
c.u. ZifNab;
0
 

Author Comment

by:WizKid
ID: 1354283
But I don't think that the correct way of doing it...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

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 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…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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