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

x
?
Solved

About MDI (Question 2)

Posted on 1997-12-20
6
Medium Priority
?
217 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

618 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