Flexible Windows

version 13/130803 by Jon Ingold

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Updating the contents of the windows

    A glulx arranging rule (this is the arranging all rule):
        follow the refresh windows rule.

    A glulx redrawing rule (this is the redrawing all rule):
        follow the refresh windows rule.

    A glulx object-updating rule (this is the updating-after-undo all rule):
        follow the refresh windows rule.

    This is the refresh windows rule:
        let old current be the current g-window;
        repeat with item running through g-present g-windows begin;
            now current g-window is the item;
            follow the window-drawing rules for the item;
        end repeat;
        if the old current is g-present
        begin;
            now current g-window is the old current;
            set focus to the current g-window;
        end if.
        
    To refresh windows:
        follow the refresh windows rule.