I’m not entirely sure how to do what I want. I’ve found plenty of examples but they all refer to statements like “The drawing rule of the graphics window is …” and that doesn’t work for me.
So, context. I’m using Flexible Windows. I have the following:
[code]Figure of TesterStories is the file “TesterStories.png”.
The side window is a text buffer g-window.
The side window is spawned by the main window.
The position of the side window is g-placeleft.
The measurement of the side window is 30.
The scale method of the side window is g-fixed-size.
The graphics window is a graphics g-window.
The graphics window is spawned by the side window.
The position of the graphics window is g-placeabove.
The measurement of the graphics window is 120.
The scale method of the graphics window is g-fixed-size.
Rule for refreshing the side window:
try taking inventory.
When play begins:
open the side window;
open the graphics window.
Every turn:
refresh the side window.[/code]
Everything shows up perfectly fine, as far as structure goes: a main window and then off to the left my side window; above that my graphic window.
The image itself can be displayed. But what I can’t figure out how to do is get the image into the graphics window. I tried:
Rule for refreshing the graphics window:
display Figure of TesterStories.
That, however, does not work as intended. (Essentially displaying the image multiple times in the main window.)
I tried this:
[code]
Rule for refreshing the graphics window:
follow the draw the title rule.
This is the draw the title rule:
clear the graphics window;
display the Figure of TesterStories.[/code]
Same problem, though.