Article View: borland.public.delphi.winforms.controls.using
Article #129Bringing MDIChild to Top
From: TonyD
Date: Sun, 16 Apr 2006 03:16
Date: Sun, 16 Apr 2006 03:16
30 lines
1783 bytes
1783 bytes
Hello,
If this is the wrong forum, please kindly direct me to the proper one.
How can I bring a MDIChild window to the top? I have a tool bar which when
a relative button is clicked it creates the form and then uses the Show
event. I would like to bring the form the the top if the button is clicked
again. When I use the BringToFront method I get an abstract error.
Project MyApp raised exception class EAbstractError with message 'Abstract
Error'.
Process stopped. Use Step or Run to continue.
[Code]
var
frmNHList: TfrmNHList;
begin
{ create a new MDI child window if not already }
if not IsMDIChildOpen(MainForm, 'frmNHList') then
begin
frmNHList := TfrmNHList.Create(Application);
frmNHList.Show;
end;
frmNHList.BringToFront; // if already created and showing, bring to
front
[/Code]
You help is appreciated.
tonyd
Technical Details
Message-ID:
<4441b70a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1eff29,1ec3e423492bb80e,start X-Google-Attributes: gid1eff29,public X-Google-Language: ENGLISH,ASCII-7-bit From: "TonyD" <inbox@mariosmaintenance.com> Newsgroups: borland.public.delphi.winforms.controls.using Subject: Bringing MDIChild to Top Date: Sat, 15 Apr 2006 20:16:09 -0700 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 67.72.89.95 Message-ID: <4441b70a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1145157386 67.72.89.95 (15 Apr 2006 20:16:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail