Login
Remember
IF Answers
Ask a Question

# In Flexible Windows, is it acceptable to set, e.g., the window position at or after the start of play? (Inform 7)

0 votes
270 views
asked Jun 1 in Authoring by bg (692 points)

With the extension Flexible Windows by Jon Ingold, is it okay to set attributes of the window at the start of play, or even after the start of play, as long as they are set before the window is opened for the first time? Documentation of the original extension seemed to say that changing some things during play could cause bugs (with restoring, for instance) so I wasn't sure what the boundaries are.

related to an answer for: In Inform 7, how do you create a text window using Flexible Windows by Jon Ingold?

- inform7
- flexible-windows
- glulx

## 1 Answer

+1 vote
answered Jun 1 by Dannii (329 points)
selected Jun 2 by bg
Best answer

Yep that's fine.

When you restore a game, it checks that every window which should be open is open and all others are closed, but it doesn't check to see whether the windows were opened with the same properties. This is probably such a minor use case that it wouldn't be worth adding to the extension. If it mattered you could write your own glulx object-updating rule to check the existing properties with `glk_window_get_arrangement()` and then close and reopen any that need updating.

## Related questions

- With Flexible Windows by Jon Ingold, is there a way to make the text display at the top of the window, even in Gargoyle? (Inform 7)
- How to show window background color in Quixe: background color property or text background? (Flexible Windows, Inform 7)
- How do you use a hyperlink to paste text without (in effect) pressing enter? (Flexible Windows, Inform 7)
- With Flexible Windows, can you specify whether a window will have a scroll bar? (Inform 7)
- How do you avoid an extra line break when refreshing a window with Flexible Windows (Inform 7)?

...