A visit to Scotland in the first months of her widowhood encouraged The Queen Mother to buy and restore a castle. John Goodall describes the history of the building and the achievements of the trust that has managed it for the past 22 years.