[Gtk-sharp-list] drawable and clickable widgets?

muell_muell_@gmx.net muell_muell_@gmx.net
Tue, 07 Dec 2004 10:50:52 +0100


This is a multi-part message in MIME format.
--------------000302090502040709050906
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


>On Mon, 2004-12-06 at 11:59 +0100, muell_muell_@gmx.net wrote:
>
>  
>
>>i need a widget that can draw something and can handle mouse-clicks on 
>>itself.
>>    
>>
>
>Download the gtk-sharp sources and see gtk-sharp/sample/Scribble.cs.
>
>  Federico
>
>_______________________________________________
>Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>  
>
thanks for replay.
i give your more details, because i have watched the scribble sample.
my window is fullfilled with a Gtk.Fixed. this Gtk.Fixed is whole filled 
with a drawingarea (my background), because Gtk.Fixed can not handle 
mouse clicks. if i click on the background it schould create a new class 
on it (i give it the name MyBox and this class inherits from DrawingArea 
and will be placed on the background and draws a box). i can create as 
many MyBoxes es i want and this boxes can be moved (i thing only 
Gtk.Fixed can move other widgets?). if i click on one box and than on an 
other box the background will draw a line beetween the boxen (and move 
the line if i move the box).
the programm works, but i think it will be better if i don't must use 
the background DrawingArea, because Gtk.Fixed can drwa lines too.
therefore the question, have you any idea to give my programm a better 
strukture? or is there a way to handle with the Gtk.Fixed mouse-clicks? 
should i post the sourcecode?

thanks
thomas

--------------000302090502040709050906
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid1102385375.17763.36.camel@cacharro.xalalinux.org"
 type="cite">
  <pre wrap="">On Mon, 2004-12-06 at 11:59 +0100, <a class="moz-txt-link-abbreviated" href="mailto:muell_muell_@gmx.net">muell_muell_@gmx.net</a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">i need a widget that can draw something and can handle mouse-clicks on 
itself.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Download the gtk-sharp sources and see gtk-sharp/sample/Scribble.cs.

  Federico

_______________________________________________
Gtk-sharp-list maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@lists.ximian.com</a>
<a class="moz-txt-link-freetext" href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a>
  </pre>
</blockquote>
thanks for replay.<br>
i give your more details, because i have watched the scribble sample.<br>
my window is fullfilled with a Gtk.Fixed. this Gtk.Fixed is whole
filled with a drawingarea (my background), because Gtk.Fixed can not
handle mouse clicks. if i click on the background it schould create a
new class on it (i give it the name MyBox and this class inherits from
DrawingArea and will be placed on the background and draws a box). i
can create as many MyBoxes es i want and this boxes can be moved (i
thing only Gtk.Fixed can move other widgets?). if i click on one box
and than on an other box the background will draw a line beetween the
boxen (and move the line if i move the box).<br>
the programm works, but i think it will be better if i don't must use
the background DrawingArea, because Gtk.Fixed can drwa lines too.<br>
therefore the question, have you any idea to give my programm a better
strukture? or is there a way to handle with the Gtk.Fixed mouse-clicks?
should i post the sourcecode?<br>
<br>
thanks<br>
thomas<br>
</body>
</html>

--------------000302090502040709050906--