RE: [Java-gnome-developer] Question concerning pixel graphics (fw d)
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2001-11-09 12:35:23
|
The code is now a fix in cvs. I had to go back and re-familiarize myself with the way GdkEvent works. GdkEvent is actually a union of all of the other GDK Event objects. The new usage will be to check its' type and then call the appropriate getter to get the correct event type. For example: public boolean zoomStart(GdkEvent event) { if (event.getType().test(GdkEventType.BUTTON_PRESS)) { GdkEventButton e = event.getButton(); } else { System.out.println("Something happend"); } return(false); } I believe this should work with your example. -Jeff > > > Am Mittwoch, 7. November 2001 21:24 schrieb Jeffrey Morgan: > > > Therefore when you tried to cast from > > a GdkEvent to a GdkButtonEvent the Java runtime > > didn't corporate. Please try it with last nights > > changes and let me know if this is still a problem. > > I've tried it with the latest changes and the execution of > the callback > method stops (without any error) right at the point of casting. > > MfG Markus > |