Help with image position (using FW and SGW)

Hi everyone!

I’m using Flexible Window and Simple Graphical Window.

In my game, i would like to add an image on top-right of the screen (eg Dead Cities). But i don’t know how can be done… actually, the graphical window shows it in the right-center. The code i actually have is this:

The measurement of the graphics window is 36.
The position of the graphics window is g-placeright.
The rock of the graphics window is 345.

After starting the virtual machine:
	now the currently shown picture is figure of city;
	now the current graphics drawing rule is the standard placement rule.

Can someone help? Thank you :wink:

To have it only occupy part of the right side you’ll need to create some extra windows. Try the following:

The side window is a text window spawned by the main window. The position of the side window is g-placeright. The graphics window is spawned by the side window. The position of the graphics window is g-placeabove.

It works, thanks!

Just one precisation: This part:

The graphics window is spawned by the side window.

can generate an error with SGW since the original code makes the graphicals window spawned by the MAIN window. So i’ve put that piece of code here:

After starting the virtual machine: now the graphics window is spawned by the side window; now the currently shown picture is figure of city; now the current graphics drawing rule is the standard placement rule.

… in the form: now the graphics window is spawned by the side window.

So everything works.

Thanks again :wink: