🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Invisible applic detecting events?

#14476
From: Remy Lebeau (TeamB)
Date: Mon, 11 Aug 2003 23:11
29 lines
2018 bytes
"Mattias Carleson" <mattias.carleson@home.se> wrote in message
news:3f3810db@newsgroups.borland.com...

> This would be an application with only one form, the main form. How
> can I hide it?

Set the Application->ShowMainForm property to false when you construct your
form.

> Yes I know, but in my  Windows console application I
> have no use for a TDataModule, do I?

If you don't have a form, then yes, you could use a TDataModule to host your
TServerSocket.  TDataModule is not just for database functionality, any
non-visual component an be placed into it.

> I mean, it is not a real window, just a designtime window,
> so it wont help me get the events to my ServerSocket.

Yes, it will.  Besides, TServerSocket is not a visual component anyway, so
it doesn't need a windowed parent component.

What your code does still need, however, is a running message queue, since
TServerSocket is based on window messages posted internally to itself if you
are running in non-blocking mode.


Gambit
Technical Details
Message-ID: <3f382120$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f37a260@newsgroups.borland.com> <3f37d355$1@newsgroups.borland.com> <3f3810db@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,7e936c8cd901518c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-11 16:07:28 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f37a260@newsgroups.borland.com> <3f37d355$1@newsgroups.borland.com> <3f3810db@newsgroups.borland.com>
Subject: Re: Invisible applic detecting events?
Date: Mon, 11 Aug 2003 16:11:37 -0700
Lines: 31
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.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f382120$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060643104 207.175.226.26 (11 Aug 2003 16:05:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail