How do I create a numberbox with unit types

I would like to create a control in the PropertyManagerPage similar to the distance field in Mate command.

Any help (sample code) would be appreciated.

SolidworksApi/macros