Re: Graphics
Quote from Forum Archives on December 11, 1997, 1:01 amPosted by: David.Cottrell <David.Cottrell@...>
I know Mel is not a PG user - but you can pinch some great FN's from the
PICT filter to do most of the scrolling and stuff (this is what I am
doing).One simple thing that is bugging me though is passing a rectange
co-ordinates between functions. That is why doesn't this work:Local FN setToWindow
'sets the graph size to be the same as the window sizeDIM graphRect.8
graphRect.top = _topMargin
graphRect.left = _leftMargin
graphRect.bottom = WINDOW(_height) - _bottomMargin - 10
graphRect.right = WINDOW(_width) - _rightMarginEND FN = graphRect
LOCAL FN drawGraph
DIM theRect.8
theRect = FN setToWindow <- stuffs up here
END FN------------------------------------------------------------------
Dr David Cottrell James Cook UniversityAll unconventional spellings that you might notice in the above are
intentional, and are just part of a living dynamic language.
------------------------------------------------------------------
Posted by: David.Cottrell <David.Cottrell@...>
PICT filter to do most of the scrolling and stuff (this is what I am
doing).
One simple thing that is bugging me though is passing a rectange
co-ordinates between functions. That is why doesn't this work:
Local FN setToWindow
'sets the graph size to be the same as the window size
DIM graphRect.8
graphRect.top = _topMargin
graphRect.left = _leftMargin
graphRect.bottom = WINDOW(_height) - _bottomMargin - 10
graphRect.right = WINDOW(_width) - _rightMargin
END FN = graphRect
LOCAL FN drawGraph
DIM theRect.8
theRect = FN setToWindow <- stuffs up here
END FN
------------------------------------------------------------------
Dr David Cottrell James Cook University
All unconventional spellings that you might notice in the above are
intentional, and are just part of a living dynamic language.
------------------------------------------------------------------