Strange PasteUpMorph>>drawOn:

Tom Phoenix rootbeer at redcat.com
Tue Mar 21 17:25:57 UTC 2006


On 3/20/06, Hilaire Fernandes <hilaire at ext.cri74.org> wrote:

> griddingOn is a flag to know if point are to be locked to the grid
> position (using the PasteUpMorph>>gridPoint: method)
>
> gridVisible is a flag to tell if the grid is visible.
>
> In the drawOn: method it looks to me a grid is display only if the 1.
> gridding is activated, 2. the grid is set to be visible.
>
> Indeed, this is the behavior I noted when I try to use the grid and the
> gridding in my code. I try to get only one of these feature but I have
> to take both.

It sounds as if you want to have the grid drawn even when it's not
active. Is that it? Although the code in PasteUpMorph>>drawOn: doesn't
currently support showing the grid when it's not active, as you've
found, it should not be difficult to make it possible.

> As a result I have to duplicate the griddingFlag in my
> code to know if I want or not to use gridding.

When you say "duplicate", do you mean that you are having your own
code draw the grid, duplicating some code from PasteUpMorph>>drawOn: ?
Or do you mean that you are unable to access the value of griddingOn?

I feel as if I'm missing your meaning. I can't be sure whether you're
asking how to do something, reporting a bug, or something else. If it
seems to you that you haven't been heard, feel free to repeat your
request in French (or whatever language you're best at). Although I
won't be able to answer in French, someone else on the list may be
able to help.

Good luck with it!

--Tom Phoenix



More information about the Squeak-dev mailing list