Solved

About MDI (Question 2)

Posted on 1997-12-20
6
212 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 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
Technology Partners: 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
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…

707 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