GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Nov 28, 2014 10:51 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Moving a canvas item, with key board keys. GooCanvas
PostPosted: Tue Jan 28, 2014 3:35 am 
Offline

Joined: Sun Jan 19, 2014 2:09 am
Posts: 2
I am using Perl binding of GooCanvas (Perl Goo::Canvas module).
I want to move a canvas item (say rectangle for e.g.) using keyboard keys (arrow keys specially).
First, when user presses, F8 key, canvas item, gets focus, and user can move it using arrow keys.
User presses, F8 once again, canvas item, which was already in focus, move out of focus.
Example of code (with comment or only comments) in C++ is also welcome.


Top
 Profile  
 
 Post subject: Re: Moving a canvas item, with key board keys. GooCanvas
PostPosted: Wed Jan 29, 2014 1:03 pm 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 781
Location: UK
Hello,

You do not say which versions of the libraries you are using. We can help better if we have that information. See the guide for posting at http://www.gtkforums.com/viewtopic.php?f=3&t=178057

_________________
E.


Top
 Profile  
 
 Post subject: Re: Moving a canvas item, with key board keys. GooCanvas
PostPosted: Wed Jan 29, 2014 11:11 pm 
Offline

Joined: Sun Jan 19, 2014 2:09 am
Posts: 2
System : Linux Ubuntu 12.10
Language : Perl
Library Module : Goo::Canvas (Module Version: 0.05 Source Latest Release: Goo-Canvas-0.06)
GTK+2

I am new in GUI programming. Exactly what Goo::Canvas (a Perl module) is, I can't say, but it's page says :

Goo::Canvas - Perl interface to the GooCanvas. GTK+ does't has an buildin canvas widget. GooCanvas is wonderful. It is easy to use and has powerful and extensible way to create items in canvas. Just try it.
For more documents, please read GooCanvas Manual and the demo programs provided in the source distribution in both perl-Goo::Canvas and GooCanvas


So, what I guess, it is some Perl code, which helps in, using GooCanvas functions, the way GTK, helps, for GUI programming in Windows and Linux.

If some one, could demonstrate/expalin, above problem in any GooCanvas library version, it would be still helpful (irrespective of language, or version)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group