Hi, This is the source code I cut from the gtktest. I add some extension functions to draw the border etc. It is a very good tools for developers to find their widgets. And somebody can add the message spy function also? Thanks.
--- Tom Liu <tom liu flextrade com> wrote:What I did is to make a spy window. When I use the spy window. I can use the it to find the widget and then draw border of this widget. Also the spy window can find it's parent window or child window. In the gtktest, you will find "Properities", it says: "This is just a dumb test to test properties.If you need a generic module, get GLE." I can't find GLE, so I copy this code and changed and linked it in to my program. It workes fine.-----Original Message----- From: gtk-app-devel-list-admin gnome org[mailto:gtk-app-devel-list-admin gnome org] On Behalf Of jscym singnet com sg Sent: Thursday, January 08, 2004 3:48 AM To: gtk-app-devel-list gnome org Subject: function or widget for colored frame Hi, I would like to find out if gtk has a function or widget thatenables thedeveloper to draw a colored squared frame onto the gtk drawingareawidget? What I am doing now is very primitive as in I alter theindividual pixelsvalue geometrically to generate a square box. To give an idea of my application, I will be displaying a RGBimage on adrawing area in a window. When I click on an object in image, Iwould liketo display a red frame that "boxes" up the specified portion ofthe image.So is there a function or what that does the job real neat? Thanks Jason _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list gnome org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Attachment:
prop_editor.h
Description: Binary data
Attachment:
prop_editor.cpp
Description: Binary data