Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Francois Rouaix <frouaix@liquidmarket.com>
To: Pascal Rigaux <pixel_@geocities.com>
Cc: caml-list@inria.fr
Subject: Re: tk scale
Date: Sat, 06 Feb 1999 18:47:54 -0800	[thread overview]
Message-ID: <199902070245.SAA00085@fiji01.liquidmarket.com> (raw)
In-Reply-To: Your message of "02 Feb 1999 19:51:39 +0100." <4w7lu0y6ys.fsf@dre2.polytechnique.fr>

> 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





  parent reply	other threads:[~1999-02-08  8:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-02 18:51 Pascal Rigaux
1999-02-03 16:07 ` Francois Pessaux
1999-02-07  2:47 ` Francois Rouaix [this message]
     [not found] <199902031605.RAA05257@mouton.inria.fr>
1999-02-03 16:14 ` Pascal Rigaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199902070245.SAA00085@fiji01.liquidmarket.com \
    --to=frouaix@liquidmarket.com \
    --cc=caml-list@inria.fr \
    --cc=pixel_@geocities.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox