// Special Popup Menus (Mouse Right-Click Events)
DOCUMENT_TABS_POPUP="DocumentTabsPopup"
CLIENT_POPUP="ClientPopup"
EDIT_POPUP="EditPopup"
SELECTED_POPUP="SelectedPopup"

MENU="DocumentTabsPopup"
  HIDE_DISABLED_ITEMS=1
  CAPTION="Tab Popup: %!w"
  ITEM="CloseFile"
    CAPTION="&Close %!w"
    IMAGE="Close"
    MACRO="CloseDoc;"
  ITEM="-"
  ITEM="LoadINIScript"
    CAPTION="Load Script"
    IMAGE="MacroLoad"
    SAVE_INPUT=1
    MACRO="LoadConfig('%f')"
    REQ_FILTER=:"%!m=DATA:INI:EDT"
    REQ_DOCUMENT=1
    REQ_FILE=1
  ITEM="ExeEDTScript"
    CAPTION="Execute Macro"
    IMAGE="MacroRun"
    SAVE_INPUT=1
    MACRO="Exe('%f')"
    REQ_FILTER=:"%!m=ASCII:EDT"
    REQ_DOCUMENT=1
    REQ_FILE=1
  ITEM="-"
  ITEM="Create_Local"
    CAPTION="Create Local Instance"
    IMAGE="MacroActivate"
    MACRO="Exe('%b\Config\OpenLocalCopyEx.edt');"
    REQ_FILTER=:|"%!i=="|%!i
    REQ_DOCUMENT=1
    REQ_FILE=1
  ITEM="Open_Local"
    CAPTION="Open Local Instance"
    IMAGE="Open"
    MACRO="Exe('%b\Config\OpenLocalCopyEx.edt');"
    REQ_FILTER=:|"%!i=="|"%!i==%!a"*%!i
    REQ_DOCUMENT=1
    REQ_FILE=1
  ITEM="Open_Default"
    CAPTION="Open Default Instance"
    IMAGE="Open"
    MACRO="Open('%!I',1);"
    REQ_FILTER=:|"%!I=="|"%!I==%!a"*%!I
    REQ_DOCUMENT=1
    REQ_FILE=1
  ITEM="-"
  ITEM="Save"
    CAPTION="&Save"
    IMAGE="Save"
    MACRO="SaveDoc;"
    REQ_DOCUMENT=1
    REQ_MODIFIED_TEXT=1
  ITEM="-"
  ITEM="BAK_File"
    CAPTION="Open Backup"
    IMAGE="BAK"
    MACRO="Open('%R',1);"
    REQ_FILTER=:%R|"%R==%f"
    REQ_DOCUMENT=1
    REQ_FILE=1
  ITEM="SAV_File"
    CAPTION="Open Auto Save"
    IMAGE="SAV"
    MACRO="Open('%A',1);"
    REQ_FILTER=:%A|"%A==%f"
    REQ_DOCUMENT=1
    REQ_FILE=1
  ITEM="-"
  ITEM="Document_List"
    CAPTION="Document List..."
    IMAGE="Files"
    MACRO="ShowDocumentList(1);"
  ITEM="-"
  ITEM="Hide_Tabs"
    CAPTION="Hide Tabs"
    IMAGE="Exit"
    MACRO="ShowDocTabs(-1);"
  ITEM="-"
  SUBMENU="Sort_Ascending>"
    CAPTION="Sort Ascending"
    IMAGE="Sort"
    ITEM="Sort_MDI_A2Z"
      CAPTION="Reorder Inc (MDI)"
      IMAGE="Right"
      MACRO="SortDocumentTabs(-1,0);"
    ITEM="-"
    ITEM="Sort_FullName_A2Z"
      CAPTION="Sort by Full Name"
      IMAGE="Sort"
      MACRO="SortDocumentTabs(0,0);"
    ITEM="Sort_NameType_A2Z"
      CAPTION="Sort by Name and Type"
      IMAGE="Sort"
      MACRO="SortDocumentTabs(110,0);"
    ITEM="-"
    ITEM="Sort_Path_A2Z"
      CAPTION="Sort by Path"
      IMAGE="Sort"
      MACRO="SortDocumentTabs(1,0);"
    ITEM="Sort_Name_A2Z"
      CAPTION="Sort by Name"
      IMAGE="Sort"
      MACRO="SortDocumentTabs(10,0);"
    ITEM="Sort_Type_A2Z"
      CAPTION="Sort by Type"
      IMAGE="Sort"
      MACRO="SortDocumentTabs(100,0);"
    ITEM="Sort_Mode_A2Z"
      CAPTION="Sort by Mode"
      IMAGE="Sort"
      MACRO="SortDocumentTabs(1000,0);"
  END="Sort_Ascending>"
  SUBMENU="Sort_Descending>"
    CAPTION="Sort Descending"
    IMAGE="SortInv"
    ITEM="Sort_MDI_Z2A"
      CAPTION="Reorder Dec (MDI)"
      IMAGE="Left"
      MACRO="SortDocumentTabs(-1,1);"
    ITEM="-"
    ITEM="Sort_FullName_Z2A"
      CAPTION="Sort by Full Name"
      IMAGE="SortInv"
      MACRO="SortDocumentTabs(0,1);"
    ITEM="Sort_NameType_Z2A"
      CAPTION="Sort by Name and Type"
      IMAGE="SortInv"
      MACRO="SortDocumentTabs(110,1);"
    ITEM="-"
    ITEM="Sort_Path_Z2A"
      CAPTION="Sort by Path"
      IMAGE="SortInv"
      MACRO="SortDocumentTabs(1,1);"
    ITEM="Sort_Name_Z2A"
      CAPTION="Sort by Name"
      IMAGE="SortInv"
      MACRO="SortDocumentTabs(10,1);"
    ITEM="Sort_Type_Z2A"
      CAPTION="Sort by Type"
      IMAGE="SortInv"
      MACRO="SortDocumentTabs(100,1);"
    ITEM="Sort_Mode_Z2A"
      CAPTION="Sort by Mode"
      IMAGE="SortInv"
      MACRO="SortDocumentTabs(1000,1);"
  END="Sort_Descending>"
  ITEM="-"
  ITEM="Multi_Line"
    CAPTION="Multi Line Tabs"
    CHECKED_MACRO="SetTabsMultiLine(2);"
    MACRO="SetTabsMultiLine(0);"
  ITEM="Show_File_Types"
    CAPTION="Show File Types"
    CHECKED_MACRO="SetTabsShowFileTypes(2);"
    MACRO="SetTabsShowFileTypes(0);"
END="DocumentTabsPopup"

MENU="ClientPopup"
