VoiceIt Technologies, LLC

Web Based Support
It is currently Fri Sep 10, 2010 7:42 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Closing my application
PostPosted: Thu Aug 30, 2007 2:06 pm 
Offline

Joined: Tue Aug 28, 2007 10:08 pm
Posts: 5
Hi.

Is there an easy way to make my application close itself, like at the pen down on a certain area of the main form, the application closes. How do I do that?

I tried to manipulate the event loop with a status variable, but that caused memory leaks that I dont know how to fix.

Thanks

Magnus


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 31, 2007 10:02 am 
Offline

Joined: Tue Aug 28, 2007 10:08 pm
Posts: 5
Sorry, I am new to this. I found the answer myself (the Quit function). Sorry again


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 27, 2007 11:55 am 
Offline

Joined: Thu Dec 27, 2007 11:47 am
Posts: 6
This will help:

Code:
procedure CloseApp(msg : pchar);
var
  evt: EventType;
begin
  if StrLen(msg) > 1 then
    ShowMessage(msg);

  MemSet(@evt, SizeOf(evt), 0);
  evt.eType := appStopEvent;
  EvtAddEventToQueue(@evt);
end;


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group