CustomView Example and vwnc7.8

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

CustomView Example and vwnc7.8

Shiro Ogawa
CustomView-Example parcel no longer works for 7.8 as keyboardProcessor was removed from Controller. Just removing SketchController>>#keyboardProcessor makes it work again. So the set method SketchController>>#keyboardProcessor: is not neede. I experimented with the Controller-less approach, and found that mouse point is shifted if it is obtained from View.

Shiro Ogawa

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: CustomView Example and vwnc7.8

Travis Griggs-4

On Aug 22, 2011, at 9:00 AM, Shiro Ogawa wrote:

> CustomView-Example parcel no longer works for 7.8 as keyboardProcessor was removed from Controller. Just removing SketchController>>#keyboardProcessor makes it work again. So the set method SketchController>>#keyboardProcessor: is not neede.

Thank you for reporting this. I'll get a fix to it ASAP.

> I experimented with the Controller-less approach, and found that mouse point is shifted if it is obtained from View.


Could you elaborate on this please? I'm not sure what is meant exactly, but if there are issues, I would really like to fix it.

--
Travis Griggs
Objologist
"I did not have time to write you a short program, so I wrote you a long one instead."


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: CustomView Example and vwnc7.8

Shiro Ogawa
SketchView is set up as handlerForMouseEvent, and redButtonPressedEvent etc are copied from SketchController. When the mouse is used to draw, lines are drawn a little away from the mouse point.

Shiro Ogawa

On Mon, Aug 22, 2011 at 9:36 AM, Travis Griggs <[hidden email]> wrote:

On Aug 22, 2011, at 9:00 AM, Shiro Ogawa wrote:

> CustomView-Example parcel no longer works for 7.8 as keyboardProcessor was removed from Controller. Just removing SketchController>>#keyboardProcessor makes it work again. So the set method SketchController>>#keyboardProcessor: is not neede.

Thank you for reporting this. I'll get a fix to it ASAP.

> I experimented with the Controller-less approach, and found that mouse point is shifted if it is obtained from View.


Could you elaborate on this please? I'm not sure what is meant exactly, but if there are issues, I would really like to fix it.

--
Travis Griggs
Objologist
"I did not have time to write you a short program, so I wrote you a long one instead."



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: CustomView Example and vwnc7.8

Shiro Ogawa
I fixed the problem by copying setSensorFromView method from Controller. Then I thought it is simpler to keep SketchController.

On Mon, Aug 22, 2011 at 9:49 AM, Shiro Ogawa <[hidden email]> wrote:
SketchView is set up as handlerForMouseEvent, and redButtonPressedEvent etc are copied from SketchController. When the mouse is used to draw, lines are drawn a little away from the mouse point.

Shiro Ogawa


On Mon, Aug 22, 2011 at 9:36 AM, Travis Griggs <[hidden email]> wrote:

On Aug 22, 2011, at 9:00 AM, Shiro Ogawa wrote:

> CustomView-Example parcel no longer works for 7.8 as keyboardProcessor was removed from Controller. Just removing SketchController>>#keyboardProcessor makes it work again. So the set method SketchController>>#keyboardProcessor: is not neede.

Thank you for reporting this. I'll get a fix to it ASAP.

> I experimented with the Controller-less approach, and found that mouse point is shifted if it is obtained from View.


Could you elaborate on this please? I'm not sure what is meant exactly, but if there are issues, I would really like to fix it.

--
Travis Griggs
Objologist
"I did not have time to write you a short program, so I wrote you a long one instead."




_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc