Forum: Ruby-Gnome 2 Tooltip for a drawable object?

Posted by Tarek Other (ruby_coder99)
on 2010-02-04 22:27
Im creating a series of boxes via draw_rectangle and wanted to attach a
tooltip to any given box, is there a way to do this? Example of my
draw_rectangle code:

    x = boxlocations[axis_y_value][axis_x_value].x
    y = boxlocations[axis_y_value][axis_x_value].y
    w = boxlocations[axis_y_value][axis_x_value].width
    h = boxlocations[axis_y_value][axis_x_value].height

    gc = Gdk::GC.new(Gdk::Pixmap.new(area.window,w,h,-1))
    gc.fill = Gdk::GC::Fill::SOLID
    gc.rgb_fg_color = Gdk::Color.parse(color)

    a = area.window.draw_rectangle(gc, true, x, y, w, h)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.