@rkutun if you want to make all objects have configurable height then you will need to add the height variable to the base class DisplayField instead of adding it to the SingleButton class. Then you would need to add a suitable parameter to the constructors of DisplayField and all classes derived from DisplayField (including SingleButton) and pass the value down to the base class, just as the width parameter (called pw in most of them) is.
As @elmoret says, providing detailed development assistance is beyond the free support that we provide.