GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Aug 27, 2016 1:08 am

All times are UTC

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Need guidelines for developing GUI builder tool using ruby-g
PostPosted: Wed Sep 12, 2012 11:49 am 

Joined: Wed Sep 12, 2012 11:46 am
Posts: 1

I am in process of developing custom GUI generator tool (its new GUI tool like glade) and to achieve that i am using ruby-gtk2. I am a newbie to the world of ruby and gtk, so i need a help in a problem which i am struck regarding adding background image to a widget.

Let me explain in detail, the application (i.e.,GTK::window) has two sections say left section and right section (section can be frames,layouts,panned window or equivalent). Left section has a list of all widgets like Button, Label, CheckBox and so on as images. So user who needs to design the GUI will drag and drop any widgets from left section to right sections, on dropping to right section it (i.e., widget) should be re-sizable and also draggable across right section.

Currently i am adding all widgets to eventbox so that on drag n drop on right section i will get all the controls of events like drag_start, drag_motion, drag_end etc..But how can i add an image as background to eventbox, so that i have button image added to eventbox and also handle resize and drag. Concept is user should be able to resize the properties of widget that drops to right section. Need help in implementing this, i know i am missing something to achieve this. Awaiting any suggestions.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 6 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