Complete the basic functions of the PopupButton control