[Gtk-sharp-list] Gnome.CanvasText
Parrish M Myers
parrishmyers@yahoo.com
Wed, 11 Jun 2003 18:37:34 -0700 (PDT)
Hi,
I seem to be having an Event problem with the Gnome.CanvasText class.
I have a canvas item created within my program, and I load a pixmap
into it. Then on top I place a CanvasText item like:
timeItem = new CanvasText(lcd_canvas.Root());
timeItem.X = 124;
timeItem.Y = 49;
timeItem.Text = "00:00:00";
timeItem.Size = 32600;
timeItem.CanvasEvent += new
GnomeSharp.CanvasEventHandler(TimeSetEvent);
The TimeSetEvent function turns the text red on EventType.EnterNotify
and back to black on EventType.EnterNotify. The problem I seem to be
experiencing is that the text only turns red when the mouse is over the
last 2 zeros in the string... The Event is not even seen if I place the
cursor over the first half of the string. Am, I doing someting wrong?
Shouldn't the Event happen if the mouse goes anywhere over the entire
string.
Anyway, Thanks. I can't understand this one.
Parrish.
=====
-----------------------------------------------------------
Academia is a little like child | Parrish M. Myers
rearing, it provides a chance at | The Wacked Jester
immortality without the stretch | parrishmyers@yahoo.com
marks -- (unknown source) |
-----------------------------------------------------------
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com