From: Matt Gushee <mgushee@havenrock.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Labltk: Canvas item -state hidden
Date: Wed, 20 Apr 2005 10:38:26 -0600 [thread overview]
Message-ID: <42668582.9080201@havenrock.com> (raw)
In-Reply-To: <20050420082202.GA2185@feanor>
Dirk Thierbach wrote:
> Is there any reason that Labltk doesn't allow to configure canvas items
> with -state hidden (or with any state at all)?
Probably just an oversight. Since Labltk is poorly documented and not
very widely used, there are few people in a position to find the bugs.
> After wading through the interface information, I came up with the
following workaround:
Actually, that's not where you want to make the change. The code you
modified was automatically generated from a file called Widgets.src,
which you will find in $OCAML_SOURCE/otherlibs/labltk.
What you need to do is to open up Widgets.src and find the blocks that
start with
subtype option(arc) {
and so on ... there's one for each canvas item type. Just add "State" to
the options in each of those blocks. Once you see it it should be pretty
obvious.
> But of course it would be nicer if Labltk would already support it :-)
I'd suggest you make the modifications as I described, rebuild OCaml and
make sure it works, then submit your request (with a patch or at least a
description of the fix) to the OCaml bug tracker. It may take a while,
but unless there's some good reason for not including that option (can't
imagine what reason there would be), it should eventually get into the
distribution.
--
Matt Gushee
Englewood, CO, USA
prev parent reply other threads:[~2005-04-20 16:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-20 8:22 Dirk Thierbach
2005-04-20 16:38 ` Matt Gushee [this message]
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=42668582.9080201@havenrock.com \
--to=mgushee@havenrock.com \
--cc=caml-list@yquem.inria.fr \
/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;
as well as URLs for NNTP newsgroup(s).