DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=n6JsDa4+SZeYaVBxCc4IiQHXhqHCxarGkfo5BSkzGhmkJggfVNyuTXNQV4/Iv27aSjYvOQJDa120uuuRFvapRV69xhByRA6GfV0T0biaUIbCR9WINvNcjxgidtATvsPho0nO8emekhJrlObD0NB6qsNTqLRkKFbrVtqBmT+8zNE= Message-ID: Date: Wed, 13 Jul 2005 11:35:47 +0200 From: Henri Reply-To: Henri To: lablgtk at math.nagoya-u.ac.jp Subject: Adding a GButton (or other widget) to a GnoCanvas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1492_28718918.1121247347931" ------=_Part_1492_28718918.1121247347931 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi I would like to add widgets to a canvas. For instance, I would like to begi= n=20 with adding a button and I tried the following code which compiles fine: let b =3D GButton.button ~label:t ~show:true () in ignore (GnoCanvas.widget ~widget:b ~x ~y root) where root is the root and x y the position where the widget should be. I= =20 tried both show:true/false and the button does not show up, though the rest= =20 of the program runs fine. I have other items that can be displayed at the= =20 same position. Is anything like this possible? What did I forget? Many thanks ------=_Part_1492_28718918.1121247347931 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi
I would like to add widgets to a canvas. For instance, I would like to begin with adding a button and I tried the following code which compiles fine:

let b =3D GButton.button ~label:t ~show:true () in
      ignore (GnoCanvas.widget ~widget:b ~x ~y roo= t)

where root is the root and x y the position where the widget should be. I tried both show:true/false and the button does not show up, though the rest of the program runs fine. I have other items that can be displayed at the same position. Is anything like this possible? What did I forget?
Many thanks
------=_Part_1492_28718918.1121247347931--