?
Solved

About MDI (Question 2)

Posted on 1997-12-20
6
Medium Priority
?
215 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
[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
  • 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 160 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month9 days, 4 hours left to enroll

764 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