# Extending DrawingArea

**URL:** <https://www.ruby-forum.com/t/extending-drawingarea/86918>\
**Category:** Ruby\
**Created:** [February 26, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/extending-drawingarea/86918 "2007-02-26T22:04:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fryderyk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/e8c25b/32.png) [@fryderyk](https://www.ruby-forum.com/u/fryderyk)\
**Post date:** [February 26, 2007, 10:04pm UTC](https://www.ruby-forum.com/t/extending-drawingarea/86918/1 "2007-02-26T22:04:58Z")

</div>

Hi all,

I am going to overrive the Gtk::DrawingArea in such a way that it can  
support a nice looking draggable graph with possibility to add by  
clicking new edges and vertices. By egdes i mean a moveable and  
extendible edges ,also those vertices have to be moveable by the user  
etc.

I have some problems as i am new to ruby. I take part in the  
[Ruby Regex into DFA visual implementatio download | SourceForge.net](http://sourceforge.net/projects/rubyregextodfa/) which is a non profit  
project.

I would like someone skilled enought to tell me some hints regarding the  
way to implement it .

I began with the samle ~/ruby/ruby-gnome2/samples/gtk/misc/drag-move as  
well as the solution of draggable labels that i found in one of th  
etoppics.

My main question is if the DrawingArea is the right widget to extend. Or  
I should extend some other widget like EventBox , Image etc.

All ideas and hints are wellcome. Btw if any of u would like to help my  
team (4 students new to ruby 😉 … u’re welcome
