Resources in binary support, button drawing functions