Glimmr Canvas Editor

version 1/100805 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Assigning UI elements to tabs and paging between them

    The members of Move_tab are {Nudge-up_button, Nudge-right_button, Nudge-left_button, Nudge-down_button, Nudge_def_button, Align_left_button, Align_top_button, Align_right_button, Align_bottom_button, Center_button, Layer_move_button, Duplicate_button}.
    The members of Select_tab are {Graphlink_add_button, Graphlink_delete_button, Highlight_radio, Hilite_color_radio, Select_all_button, Select_kind_button, Select_layer_button, Show_button, Hide_button, Show_all_button}.
    The members of Scale_tab are {Scale_sym_button, Scale_horiz_button, Scale_vert_button, Scale_default_button, AsymScale_radio}.

    To actuate (pressed - a sprite):
        repeat with current-element running through the members of the current tab:
            deactivate current-element;
        change the image-ID of the underlayment of the current tab to the inactive-state of the underlayment of the current tab;
        change the display-layer of the underlayment of the current tab to the inactivated background layer;
        change the display-layer of the current tab to the inactivated tab layer;
        change the display-layer of pressed to the activated tab layer;
        repeat with current-element running through the members of the current tab:
            activate current-element;
        let ID be the active-state of the underlayment of pressed;
        change the image-ID of the underlayment of the current tab to ID;
        change the display-layer of the underlayment of the current tab to the activated background layer;