Drawn sizes of controlls different than declared lazarus / 31-LCL ---------------------------------------------------------------------- krzynio · 2018-02-27 07:05 Hi! I created a complex component. It consists of TEdit, TSpeedButton and TStringGrid placed on the TCustomPanel. The size of TSpeedButton is adujsted automatically to TEdit in Resize method. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i SpeedButton.Height := Edit.HeightUnder Linux (gtk2) it works fine but under Windows SpeedButton is smaller. See attachment. Is it a bug or it is intended drawing the SpeedButton Height (and probably width also) less then its defined Height? Or maybe drawn height of TEdit is higher than declared in Edit.Height. I didn't measure. ---------------------------------------------------------------------- eric · 2018-02-27 12:45 I haven't checked this, but it seems likely that the Windows implementation of the speedbutton has a transparent border round it. ---------------------------------------------------------------------- PatBayford · 2018-02-28 02:59 I believe Eric is correct - the Windows API speed button either has a transparent border, or is drawn with border space. This seems to be a requirement of the way Microsoft implements it's speed button containers. ---------------------------------------------------------------------- flowCRANE · 2018-02-28 13:44 @krzynio: the same problem also exists for other controls and other Windows themes, for exemple TButton under WinXP Luna theme looks too short. TEdit too and you can do nothing with it.