anchor.diff:  end;
   
   
  +procedure TKMMenuMapEditor.MoveClick(Sender: TObject);
  +var
  +  OldSelection, NewSelection: Integer;
  +begin
  +  Assert(Radio_MapEd_MapType.ItemIndex = 2);
  +
  +  if ColumnBox_MapEd.ItemIndex = -1 then Exit;
  +
  +  //Delete selected map
  +  if Sender = Button_MapDeleteConfirm then
  +  begin
  +    OldSelection := ColumnBox_MapEd.ItemIndex;
  +    //todo: Move it
  +    //fMapsDL.MoveMap(ColumnBox_MapEd.ItemIndex);
  +    RefreshList(False);
  +    if ColumnBox_MapEd.RowCount > 0 then
  +      ColumnBox_MapEd.ItemIndex := EnsureRange(OldSelection, 0, ColumnBox_MapEd.RowCount - 1)
  +    else
  +      ColumnBox_MapEd.ItemIndex := -1;
  +    NewSelection := ColumnBox_MapEd.ItemIndex;
  +    if NewSelection >= 0 then begin
  +      fMinimap.LoadFromMission(fMapsDL[NewSelection].FullPath('.dat'), []);
  +      fMinimap.Update(True);
  +      MinimapView_MapEd.SetMinimap(fMinimap);
  +      MinimapView_MapEd.Show;
  +    end
  +    else
  +      MinimapView_MapEd.Hide;
  +  end;
  +end;
  +
  +
   procedure TKMMenuMapEditor.Show;
   begin
     ListUpdate;
  
positive.code:   PrevTop := ColumnBox_MapEd.TopIndex;
    ColumnBox_MapEd.Clear;
  
    if Radio_MapEd_MapType.ItemIndex = 0 then
      Maps := fMaps
    else
      Maps := fMapsMP;
  
    Maps.Lock;
    try
  
negative.code:       Radio_MapEdSizeX.OnChange := SizeChangeByRadio;
        Radio_MapEdSizeY.OnChange := SizeChangeByRadio;
        NumEdit_MapSizeX := TKMNumericEdit.Create(Panel_MapEdSizeXY, 8, 392, 32, 256);
        NumEdit_MapSizeY := TKMNumericEdit.Create(Panel_MapEdSizeXY, 118, 392, 32, 256);
        NumEdit_MapSizeX.Anchors := [anLeft, anBottom];
        NumEdit_MapSizeY.Anchors := [anLeft, anBottom];
        NumEdit_MapSizeX.Value := 64;
        NumEdit_MapSizeY.Value := 64;
        NumEdit_MapSizeX.OnChange := SizeChangeByEdit;
        NumEdit_MapSizeY.OnChange := SizeChangeByEdit;
  
        Button_MapEd_Create := TKMButton.Create(Panel_MapEdSizeXY, 0, 432, 220, 30, gResTexts[TX_MENU_MAP_CREATE_NEW_MAP], bsMenu);
        Button_MapEd_Create.Anchors := [anLeft, anBottom];
        Button_MapEd_Create.OnClick := StartClick;
  
      Panel_MapEdLoad := TKMPanel.Create(Panel_MapEd, 320, 40, 620, 700);
      Panel_MapEdLoad.Anchors := [anLeft, anTop, anBottom];
        TKMLabel.Create(Panel_MapEdLoad, 6, 0, 288, 20, gResTexts[TX_MENU_MAP_AVAILABLE], fnt_Outline, taLeft);
        TKMBevel.Create(Panel_MapEdLoad, 0, 20, 300, 70);
        Radio_MapEd_MapType := TKMRadioGroup.Create(Panel_MapEdLoad,8,28,286,60,fnt_Grey);
        Radio_MapEd_MapType.ItemIndex := 0;
        Radio_MapEd_MapType.Add(gResTexts[TX_MENU_MAPED_SPMAPS]);
        Radio_MapEd_MapType.Add(gResTexts[TX_MENU_MAPED_MPMAPS]);
        Radio_MapEd_MapType.Add('Downloaded maps');
        Radio_MapEd_MapType.OnChange := MapTypeChange;
        ColumnBox_MapEd := TKMColumnBox.Create(Panel_MapEdLoad, 0, 100, 440, 526, fnt_Metal,  bsMenu);
        ColumnBox_MapEd.Anchors := [anLeft, anTop, anBottom];
        ColumnBox_MapEd.SetColumns(fnt_Outline, [gResTexts[TX_MENU_MAP_TITLE], '#', gResTexts[TX_MENU_MAP_SIZE]], [0, 310, 340]);
        ColumnBox_MapEd.SearchColumn := 0;
        ColumnBox_MapEd.OnColumnClick := ColumnClick;
        ColumnBox_MapEd.OnChange := SelectMap;
        ColumnBox_MapEd.OnDoubleClick := StartClick;
  
        with TKMBevel.Create(Panel_MapEdLoad, 448, 264, 199, 199) do
          Anchors := [anLeft];
        MinimapView_MapEd := TKMMinimapView.Create(Panel_MapEdLoad, 452, 268, 191, 191);
        MinimapView_MapEd.Anchors := [anLeft];
  
        Button_MapEd_Load := TKMButton.Create(Panel_MapEdLoad, 0, 632, 440, 30, gResTexts[TX_MENU_MAP_LOAD_EXISTING], bsMenu);
        Button_MapEd_Load.Anchors := [anLeft, anBottom];
        Button_MapEd_Load.OnClick := StartClick;
        Button_MapDelete := TKMButton.Create(Panel_MapEdLoad, 0, 668, 440, 30, gResTexts[TX_MENU_MAP_DELETE], bsMenu);
        Button_MapDelete.Anchors := [anLeft, anBottom];
        Button_MapDelete.OnClick := DeleteClick;
        Button_MapMove := TKMButton.Create(Panel_MapEdLoad, 0, 668, 440, 30, 'Move to multiplayer maps', bsMenu);
        Button_MapMove.Anchors := [anLeft, anBottom];
        Button_MapMove.OnClick := MoveClick;
        Button_MapMove.Hide;
  
        Label_MapDeleteConfirm := TKMLabel.Create(Panel_MapEdLoad, 220, 640, gResTexts[TX_MENU_MAP_DELETE_CONFIRM], fnt_Outline, taCenter);
        Label_MapDeleteConfirm.Anchors := [anLeft, anBottom];
        Label_MapDeleteConfirm.Hide;
  
        Button_MapDeleteConfirm := TKMButton.Create(Panel_MapEdLoad, 0, 668, 206, 30, gResTexts[TX_MENU_LOAD_DELETE_DELETE], bsMenu);
        Button_MapDeleteConfirm.Anchors := [anLeft, anBottom];
        Button_MapDeleteConfirm.OnClick := DeleteClick;
        Button_MapDeleteConfirm.Hide;
  
        Button_MapDeleteCancel  := TKMButton.Create(Panel_MapEdLoad, 234, 668, 206, 30, gResTexts[TX_MENU_LOAD_DELETE_CANCEL], bsMenu);
        Button_MapDeleteCancel.Anchors := [anLeft, anBottom];
        Button_MapDeleteCancel.OnClick := DeleteClick;
        Button_MapDeleteCancel.Hide;
  
      Button_MapEdBack := TKMButton.Create(Panel_MapEd, 60, 708, 220, 30, gResTexts[TX_MENU_BACK], bsMenu);
      Button_MapEdBack.Anchors := [anLeft, anBottom];
      Button_MapEdBack.OnClick := BackClick;
  end;
  
  
  