caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* LablTk
@ 2000-07-10 13:51 Fabien Fleutot
  2000-07-21  0:42 ` LablTk Jacques Garrigue
  0 siblings, 1 reply; 7+ messages in thread
From: Fabien Fleutot @ 2000-07-10 13:51 UTC (permalink / raw)
  To: caml-list

I have two problems with LablTk :

- I want to prevent a window from being destroyed by the WM : it's a
pretty long to build window, and I'd like to hide it instead of actually
destroy it when the user clicks on the delete button of the window
manager. It's easy to do in some langages such as Java, but I can't find
the way to do it with Labltk.

- I want to use a button to destroy a window. But I can't do

Button.create win ~text:"Close" ~command:(fun _ -> destroy win)

since when the destroy function starts, the button, which belongs to
win, is in use and prevents to destroy its parent win. There is a
specific function (i.e. Tk_EventuallyFree) in Tcl/Tk to handle such
cases, but I don't know how to do with LablTk. What I'm currently doing
is to put the destroying function in a Timer callback, to destroy the
window .1s after the button has been released, but it's not very safe...



^ permalink raw reply	[flat|nested] 7+ messages in thread
* LablTk
@ 2001-01-25 16:28 wester
  2001-01-29 14:03 ` LablTk Jacques Garrigue
  0 siblings, 1 reply; 7+ messages in thread
From: wester @ 2001-01-25 16:28 UTC (permalink / raw)
  To: caml-list

Hi, 

I would like to use LablTk together with Bigarrays in the toplevel. 
Can I make my own toplevel with both modules linked in? I know
how to make it for Bigarrays alone and I know that labltk.exe (Windows)
is the toplevel with LablTk already linked in. But I couldn't figure out
how to make a toplevel with both Bigarrays and LablTk.

Besides this I couldn't find information about the modules Imagebitmap 
and Imagephoto which might be interesting for me. I have Ousterhouts 
Tcl/Tk book but couldn't find anything about this two modules.

I'have read that float arrays aren't boxed. Does this also hold for integers?
Considering speed are Bigarrays preferable? 

I would be very appreciative for any answers to my questions. 

I'm working on a project where I have to develop software for image 
processing and pattern recognition. I considered to make this in C++ or Java
because I'm quite familiar with these languages and graphical output can quite 
easily be done with both. On the other hand I like OCaml's toplevel because it makes
rapid prototyping very easy and I also would like to learn OCaml in order to
extend my programming skills. But the project has to be executed succesfully,
so I'm still undecided. 

Thank you in advance.

With kind regards.

Rolf Wester   

-------------------------------------
Rolf Wester
wester@ilt.fhg.de



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

end of thread, other threads:[~2001-01-31 10:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-10 13:51 LablTk Fabien Fleutot
2000-07-21  0:42 ` LablTk Jacques Garrigue
2000-07-21  7:40   ` LablTk Fabien Fleutot
2000-07-21  8:36     ` LablTk Jacques Garrigue
2000-07-21  8:36   ` LablTk Axel Poigné
2001-01-25 16:28 LablTk wester
2001-01-29 14:03 ` LablTk Jacques Garrigue

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).