You are here: Symbol Reference > JSEditDialog Namespace > Classes > TJSCustomEditDialog Class > TJSCustomEditDialog Methods > TJSCustomEditDialog.DoGetControlHeight Method
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCustomEditDialog.DoGetControlHeight Method

Method that triggers the OnGetControlHeight event.

Pascal
function DoGetControlHeight: Integer; virtual;

If either the OnGetControlHeight event is not handled, or the height returned by the event is less than or equal to zero, then the default calculation for edit controls is used. 

When TJSEditType is etCustom, then the OnGetControlHeight event should be implemented or the EditProperties.Height property should be set to the desired height value for the custom control.

The Height value is automatically adjusted for DPI changes.

Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!