For cancelling the remainder of an unfilled order, select the trade and set TradeLots = TradeLotsTarget-TradeLots, then exit the trade. This should work at least in theory.