 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Didier Cabalé Guest
|
Posted: Wed Nov 26, 2003 10:17 pm Post subject: wsMaximized MDIChild created at run-time |
|
|
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
|
Posted: Fri Nov 28, 2003 11:22 pm Post subject: Re: wsMaximized MDIChild created at run-time |
|
|
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 |
|
 |
|
|
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
|
|