Set brush from texture not working.

What kind of element / control are you trying to change the brush / texture from? Are we talking about buttons, images, an in game mesh?