caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Cancel button or Status bar
@ 2008-02-16 17:01 Angela Zhu
  2008-02-16 17:26 ` [Caml-list] " Dominique Martinet
  0 siblings, 1 reply; 5+ messages in thread
From: Angela Zhu @ 2008-02-16 17:01 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 931 bytes --]

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/
------------------------------------------

[-- Attachment #2: Type: text/html, Size: 1139 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-18  8:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-16 17:01 Cancel button or Status bar Angela Zhu
2008-02-16 17:26 ` [Caml-list] " Dominique Martinet
2008-02-16 21:49   ` Angela Zhu
2008-02-17 22:03   ` Angela Zhu
2008-02-18  8:24     ` Dominique Martinet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).