🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: different forms without MainForm

#11397
From: Remy Lebeau (TeamB)
Date: Sat, 07 Feb 2004 23:48
24 lines
1898 bytes
"nik" <neusser@okstate.edu> wrote in message
news:40255f8b$1@newsgroups.borland.com...

> 1) I want to be able to switch between different forms WITHOUT
> showing the main Form.

Switch how exactly?  Please be more specific.

> Can I hide the MainForm while displaying another Form?

Have you tried simply calling the form's Hide() and Show() methods?

> Can I have an application that is able to receive all the
> windowsmessages without having a MainForm::TForm?

The VCL requires that a MainForm be instantiated,but not necessarily shown.
So you can either start the program with the MainForm initially hidden by
setting the Application->ShowMainForm property to false, or else you will
have to modify the program's WinMain() function directly and do all your own
custom message handling from there manually.


Gambit
Technical Details
Message-ID: <40257792$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-05!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40255f8b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e93e7b754b8a7008
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-07 16:08:52 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40255f8b$1@newsgroups.borland.com>
Subject: Re: different forms without MainForm
Date: Sat, 7 Feb 2004 15:48:28 -0800
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.138.253
Message-ID: <40257792$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076197266 67.22.138.253 (7 Feb 2004 15:41:06 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-05!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail