Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=MVLxbMRuYX7hS5fL0oiWFvQmab+JvvIKQ9uwtRbL+FE=; b=sih/GegF2e83bFR8uCCQbV+upiHhVKEbpJDxEsJjE/fITmbaNEEsQWtWJUCw+QoaI2GCs0PMw12SVtUypgLDgxbXiKzGID0ALhP7HroedtdbA0UTr/cdbxWRcJ56S9Xjlmc7GCdxLEniWSU6bK/dIA58dUTsjtpAdU+87khm7as= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=POA6pKJPg6eVVB6I1vVA8wxWJ8Apq5Fbh1UZgoTv8sM0bjcmF6MyARmaVbolVWyL5MgYX7pYBnFUZqbaDeNXGoW2l+XepAYzC6eHcqnWKd6Bo9MUFzxGTbABUl+8p8Vm1rZ/joi85WWLk7I7DUkof5pP7KYDT/KmQbt5D2faCpE= Message-ID: Date: Sat, 16 Feb 2008 11:01:22 -0600 From: "Angela Zhu" To: lablgtk at yquem.inria.fr MIME-Version: 1.0 Subject: [Lablgtk] Cancel button or Status bar Mime-version: 1.0 Content-Type: multipart/mixed; boundary="===============1528090403==" Content-Length: 2867 --===============1528090403== Content-Type: multipart/alternative; boundary="----=_Part_5911_893972.1203181282922" ------=_Part_5911_893972.1203181282922 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I am using OCaml to develop an interpreter with a GUI. In the GUI, I have a "run" button, where when you click it, it will call a function, say "eval prog1". Some time, the running time of "eval prog1" can be long, and in case I want to add to the GUI the functionality that, when click on another "cancel" button, it will terminate the computation/evaluation immediately. (The user might don't want to wait until the execution to finish. ) Anyone have some idea how to achieve this? If this is impractical in OCaml, then how can I generate a "status bar", which indicates how much of the program (e.g. in percentage) has been finished, so you can have an estimation on how much more you need to wait for the program to finish. Thanks a lot in advance! -- Regards, Angela Zhu ------------------------------------------ Dept. of CS, Rice University http://www.cs.rice.edu/~yz2/ ------------------------------------------ ------=_Part_5911_893972.1203181282922 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I am using OCaml to develop an interpreter with a GUI.
In the GUI, I have a "run" button, where when you click it, it
will call a function, say "eval prog1".

Some time, the running time of "eval prog1" can be long, and
in case I want to add to the GUI the functionality that,
when click on another "cancel" button, it will terminate the
computation/evaluation immediately. (The user might don't
want to wait until the execution to finish. )

Anyone have some idea how to achieve this?

If this is impractical in OCaml, then how can I generate a
"status bar", which indicates how much of the program
(e.g. in percentage) has been finished, so you can have
an estimation on how much more you need to wait for the program
to finish.

Thanks a lot in advance!

--
Regards,
Angela Zhu
------------------------------------------
Dept. of CS, Rice University
http://www.cs.rice.edu/~yz2/
------------------------------------------ ------=_Part_5911_893972.1203181282922-- --===============1528090403== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk --===============1528090403==--