A control wrapper for the legend