From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 96203BC84 for ; Wed, 20 Apr 2005 18:35:28 +0200 (CEST) Received: from mz2.forethought.net (mzpi4.forethought.net [216.241.36.13]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j3KGZRSM031051 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 20 Apr 2005 18:35:28 +0200 Received: from [216.241.35.41] (helo=[10.0.0.2]) by mz2.forethought.net with esmtp (Exim 4.30) id 1DOIAf-0003U7-Ux for caml-list@yquem.inria.fr; Wed, 20 Apr 2005 10:35:26 -0600 Message-ID: <42668582.9080201@havenrock.com> Date: Wed, 20 Apr 2005 10:38:26 -0600 From: Matt Gushee User-Agent: Mozilla Thunderbird 1.0 (X11/20050108) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Labltk: Canvas item -state hidden References: <20050420082202.GA2185@feanor> In-Reply-To: <20050420082202.GA2185@feanor> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 426684CF.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 labltk:01 labltk:01 oversight:01 ocaml:01 otherlibs:01 subtype:01 ocaml:01 bug:01 ...:98 wrote:01 workaround:01 widgets:01 widgets:01 bugs:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: 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