From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA12904 for caml-redistribution; Mon, 8 Feb 1999 09:04:08 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id DAA11756 for ; Sun, 7 Feb 1999 03:48:03 +0100 (MET) Received: from fiji01.liquidmarket.com ([208.244.147.130]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id DAA25298 for ; Sun, 7 Feb 1999 03:48:00 +0100 (MET) Received: from maui02.liquidmarket.com (maui02.liquidmarket.com [192.168.1.65]) by fiji01.liquidmarket.com (8.8.7/8.8.7) with ESMTP id SAA00085; Sat, 6 Feb 1999 18:45:50 -0800 Message-Id: <199902070245.SAA00085@fiji01.liquidmarket.com> X-Mailer: exmh version 2.0.2 From: Francois Rouaix To: Pascal Rigaux cc: caml-list@inria.fr Subject: Re: tk scale In-reply-to: Your message of "02 Feb 1999 19:51:39 +0100." <4w7lu0y6ys.fsf@dre2.polytechnique.fr> Reply-To: frouaix@liquidmarket.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 06 Feb 1999 18:47:54 -0800 Sender: weis > I'm looking for something to convert the Pixels units to Millimeters in a canvas. > Seems like the tk function is "tk scale", but i can't find it in ocamltk41 :( > > I could do without it (seems like by default there is 3.66 factor between the > 2), but i wonder if it could be done another way... Yes, unfortunately, we may have missed some functions in ocamltk41, and probably miss most of the functions added in Tcl/Tk 8.0. There is always the solution of adding entries in the Widgets.src file of the ocamltk distribution, or simply create new .src files and apply the "tkcompiler" to generate the stubs. In this case, I would expect that something like module tkscale { function (float) get ["tk"; "scale"] function () set ["tk"; "scale"; float] } would be enough to lift the "tk scale" command. However, a brief look at Welch's book does not confirm that this command can be used to do what you describe (eg converting from Pixels to Millimeters). --f