Don't think you can dlo it. You are asking how to convert a space into a weight.
This is a Simple Dialog Demo.