BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

wsMaximized MDIChild created at run-time

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Didier Cabalé
Guest





PostPosted: Wed Nov 26, 2003 10:17 pm    Post subject: wsMaximized MDIChild created at run-time Reply with quote



Hello,

I build an application with a MDIForm and a MDIChild. To align the MDIChild
to the MDIForm the MDIChild has WindowsState set to wsMaximized (design
time).
If MDIChild is automatically created when the application is executed, i
have no problem of display -> Ok. But if i decide to create MDIChild at
run-time, then the MDIChild pops up in severall jumps. Does somebody know
how to prevent this, and make a one jump display?
Thank's for your help
Didier


Back to top
Didier Cabalé
Guest





PostPosted: Fri Nov 28, 2003 11:22 pm    Post subject: Re: wsMaximized MDIChild created at run-time Reply with quote



Allow me to precise my need:
It seems i have a flickering form problem when creating (WindowsState set to
wsMaximized) my MDIChild at run-time.
To prevent this, i read i have to use a procedure like:
type TMDIChild = class(TForm)
....
private
procedure StopFlicker(var Msg: TWMEraseBkgnd); message WM_ERASEBKGND;
...
Procedure TForm2.StopFlicker(var Msg: TWMEraseBkgnd);
begin
Msg.Result := 1;
end;

This procedure is supposed to catch the EraseBkGnd windows message.
But what should i add into it to fix my problem?
Thank's for your help

Didier
Nb: using Delphi5

"Didier Cabalé" <didier.cabale (AT) free (DOT) fr> a écrit dans le message news:
[email]3fc526ad (AT) newsgroups (DOT) borland.com[/email]...
Quote:
Hello,

I build an application with a MDIForm and a MDIChild. To align the
MDIChild
to the MDIForm the MDIChild has WindowsState set to wsMaximized (design
time).
If MDIChild is automatically created when the application is executed, i
have no problem of display -> Ok. But if i decide to create MDIChild at
run-time, then the MDIChild pops up in severall jumps. Does somebody know
how to prevent this, and make a one jump display?
Thank's for your help
Didier





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.