🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to activate application from inactive state

#10781
From: agus
Date: Sun, 14 Mar 2004 07:47
18 lines
1620 bytes
Hi all, I wrote an application to do some tasks when it is receive data from
communication port. Application became a tray icon if it is minimized or
inactive.

Application check whether there are new data in the port when it is idle. I
put my code in On Idle Event, something looks like this :
      if(ReceiveData) DoSomeTask();

If Application active, it works well, but when it was inactive, it didn't
work. How to fix this problem? What should I trap and how to do that so when
there are new data, my application became active? Is there another way to
check new data beside using On Idle event, because this event consume a lots
of CPU resources.

Thanks and I apologize if my questions do not match to the topic in this
news
Regards,
Agus
Technical Details
Message-ID: <40540e1e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ac78bb8d3f6ec5bf,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-14 00:09:11 PST
From: "agus" <seim@bdg.centrin.net.id>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to activate application from inactive state
Date: Sun, 14 Mar 2004 14:47:39 +0700
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 202.146.246.196
Message-ID: <40540e1e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079250462 202.146.246.196 (13 Mar 2004 23:47:42 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail