GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-Jul-2009, 00:57
fluid_user fluid_user is offline
New Member
 
Join Date: Jul 2009
Posts: 1
fluid_user is on a distinguished road

Command to close my FLTK application


Hello,

is there a command to shutdown the fltk-application?

the user should push the end-button and the application shutdown.

thx for your help
  #2  
Old 14-Oct-2009, 02:22
Indra Indra is offline
New Member
 
Join Date: Oct 2009
Posts: 5
Indra is on a distinguished road

Re: Command to close my FLTK application


Yes, there is a C++ function that does that:
CPP / C++ / C Code:
exit(int status);
Place in in the callback function of the button and it will shutdown
you application. "status" is meant to carry error codes, but I usually
just use 0.

In fluid, the easiest way would be to place the command directly in the "callback-box" in the context menu of the button without defining an
extra callback function.
 
 

Recent GIDBlogProblems with the Navy (Enlisted) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make FLTK window always on top of other application window Manohar FLTK Forum 1 21-Apr-2009 16:13
BarracudaDrive application server for Linksys NSLU2 BDG Computer Software Forum - Linux 0 24-Mar-2008 14:24
[Tutorial] GUI programming with FLTK dsmith FLTK Forum 10 03-Oct-2005 15:41
GIMcontacts - a gim fltk fluid venture cable_guy_67 FLTK Forum 0 14-Feb-2005 14:18
Help! Some basal questions about MFC xutingnjupt MS Visual C++ / MFC Forum 1 05-Dec-2004 03:38

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:15.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.