Gumball Textbox

Hi.
How I can add a textbox for my custom gumball which helps me write digits and use the corresponding value to transform the object?
Like a Rhino Gumball without overrides.