🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5415

Re: MDI without MDI

#5415
From: Remy Lebeau (TeamB)
Date: Mon, 22 Aug 2005 17:44
25 lines
1918 bytes
"Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de> wrote in message
news:430982f9$1@newsgroups.borland.com...

> I want to create child forms in my form. My form itself is a
> child form of an SDI app, hence I must do without MDI.

It is technically possible to host MDI in a child form, but you have to
manage a few things manually.  Have a look at QC #12006 for some details:

http://qc.borland.com/wc/qcmain.aspx?d=12006

I have sample code written up that demonstrates it if you want to see it in
action.  There is a screenshot in the .attachments newsgroup.

> This is as well noticable when setting Left and Top after
> SetParent - the child form gets drawn at another position!

That is because you are setting the Left and Top properties BEFORE calling
SetParent(), so the property values are still relative to the overall
screen.  You should be calling SetParent() immediately after instantiating
the form and before doing anything with coordinates.


Gambit
Technical Details
Message-ID: <430a0f6a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <430982f9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e6e8a404167d95ab
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <430982f9$1@newsgroups.borland.com>
Subject: Re: MDI without MDI
Date: Mon, 22 Aug 2005 10:44:23 -0700
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <430a0f6a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1124732778 68.69.17.41 (22 Aug 2005 10:46:18 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.inode.at!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail