# Question about plotting use Fxruby canvas

**URL:** <https://www.ruby-forum.com/t/question-about-plotting-use-fxruby-canvas/78779>\
**Category:** Ruby\
**Created:** [December 8, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/question-about-plotting-use-fxruby-canvas/78779 "2006-12-08T15:06:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hank\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e9bcb4/32.png) [@Hank\_G](https://www.ruby-forum.com/u/Hank_G)\
**Post date:** [December 8, 2006, 3:06pm UTC](https://www.ruby-forum.com/t/question-about-plotting-use-fxruby-canvas/78779/1 "2006-12-08T15:06:42Z")

</div>

Dear all

I want to use the canvas in Fxruby to draw something like a circle.  
Then I want to use mouse to control it like left click it and then I  
can move it to somewhere. Also I want to achieve the function like if I  
rightclick on some object, I want to delete it.

I can not figure out how to implement this. Could anybody help me?  
Thanks in advance…

Hank

---

<div class="post-metadata">

**Author:** ![Hank\_G](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/e9bcb4/32.png) [@Hank\_G](https://www.ruby-forum.com/u/Hank_G)\
**Post date:** [December 10, 2006, 1:04am UTC](https://www.ruby-forum.com/t/question-about-plotting-use-fxruby-canvas/78779/2 "2006-12-10T01:04:24Z")

</div>

Hank G. wrote:

> Dear all
> 
> I want to use the canvas in Fxruby to draw something like a circle.  
> Then I want to use mouse to control it like left click it and then I  
> can move it to somewhere. Also I want to achieve the function like if I  
> rightclick on some object, I want to delete it.

I’ve never seen anything like that (2D) for Fox (it would probably be  
very easy in Tk).

You might want to ask this question on the Fox and FXRuby lists. If you  
get an answer on the Fox list, it will probably be in C++, but it’s  
usually not too hard to translate to FXRuby.

The lists are:

foxgui-users AT [lists.sourceforge.net](http://lists.sourceforge.net)  
fxruby-users AT [rubyforge.org](http://rubyforge.org)

You probably have to sign up for them on the web sites, before you can  
post.
