[futurebasic] Re: Graphics

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 1997 : Group Archive : Group : All Groups

From: wave@... (Mark Goodes)
Date: Thu, 11 Dec 1997 19:38:29 -0500
You could also do it like this:

Local FN setToWindow(rect&)
'sets the graph size to be the same as the window size
        rect&.top%=_topMargin
        rect&.left%=_leftMargin
        rect&.bottom%=(WINDOW(_height) - _bottomMargin - 10)
        rect&.right%=WINDOW(_width)  - _rightMargin
END FN


LOCAL FN drawGraph
        DIM theRect.8
        FN setToWindow(@theRect)        <- stuffs up here
END FN


>You could do it as:
>
>LOCAL
>DIM rect&
>Local FN setToWindow(rect&)
>'sets the graph size to be the same as the window size
>        % rect&.top,      _topMargin
>        % rect&.left,     _leftMargin
>        % rect&.bottom,   (WINDOW(_height) - _bottomMargin - 10)
>        % rect&.right,    WINDOW(_width)  - _rightMargin
>END FN
>
>
>LOCAL FN drawGraph
>        DIM theRect.8
>        FN setToWindow(@theRect)        <- stuffs up here
>END FN

____________________
Use e-mail with integrity.
Mark Goodes (wave@...)