Glimmr Canvas Editor

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Left-aligning a string

    Left-aligning a string is an action applying to nothing. Understand "align string left" or "align text right" as left-aligning a string.

    Carry out left-aligning a string:
        now the current text alignment is left-jambed;
        if the number of entries of the element-selection set > 0:
            let count be 0;
            repeat with item running through the element-selection set:
                if item is a rendered string:
                    increase count by 1;
                    now the item is left-aligned;
            if count is 0:
                say "New text strings will be left-aligned. [bracket]Selected items are not text strings and were not affected.[close bracket][line break]";
            otherwise:
                say "Text alignment changed[if count > 1] for [count] items[end if].";
        otherwise:
            say "New text strings will be left-aligned.";
        update drawing window buttons;
        follow the window-drawing rules for the working window;
        follow the window-drawing rules for the drawing-window.