[gtkada] Canvas Item Record
Emmanuel Briot
briot at ACT-Europe.FR
Mon Mar 4 11:47:57 CET 2002
"Clark, G L" <g.l.clark at lmco.com> writes:
> I have several types of canvas_item_records, an arc, a rectangle, and
> an alphanumeric. They each are derived from canvas_iterm_record and each
> have an overloaded Draw function. In each draw function I use methods from
> Gtk_Drawable to create the appropriate pixmaps. 'Draw_Rectangle, Draw_Arc,
> Draw_Text.
> I then create an item of each type and 'Put' them onto the Canvas. As
> expected a can drag around the rectangle pixmap and the Arc pixmap.
> However, I can't drag around the Text on the Canvas. Is this expected
> behavior or am I doing something wrong?
I don't think this is an expected behavior, but it would be nice to have some
source code to check what you are doing. You might want to create a
double-buffer item, with its own pixmap (sorry, I don't remember exactly if
this was already doable with the last public release of GtkAda, or if this was
only added in the development version since then).
> I think this post is appropriate for this group because of differences
> between the Gnome Canvas widget and the one provided with GtkAda.
Indeed, the GtkAda canvas is specific to GtkAda, and doesn't exist with
gtk+. The Gnome canvas hasn't been fully bound yet.
regards,
Emmanuel
More information about the gtkada
mailing list