Glimmr Form Fields

version 1/101201 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Focusing and defocusing
    [The field focusing rules and field defocusing rules are provided as a hook for authors. If, for example, we want a field to change appearance when activated or deactivated, these rules are the most convenient place to do that.]

    The field focusing rules are an object based rulebook.[This rulebook is a hook for author customization.]

    To remove focus from (element - a g-element):
        unless element is g-null-element:
            if the element is not a form input:
                #if utilizing Glimmr debugging;
                say "[>console][FFs]***Warning: Attempted to remove focus from [i][element][/i], a non-input g-element. The 'remove focus from' phrase should only be used on elements with the 'form input' property.[<]";
                #end if;
                do nothing;
            now the cursor of the input-stream of the element is -99;
            follow the input interpretation rules for the element;
            follow the field defocusing rules for the element.[Hook for authors]

    The field defocusing rules are an object based rulebook.[This rulebook is a hook for author customization.]