Get design time size of a Form at runtime? lazarus / 31-LCL ---------------------------------------------------------------------- winni · 2020-04-07 19:52 Hi! Is there an chance to get the design time size of a form at runtime - after it may be resized a lot of times? Winni ---------------------------------------------------------------------- howardpc · 2020-04-07 20:18 Could you not do something like this: 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 const  form_size: Types.TSize = (cx: 250, cy:300);  // or whatever ... procedure TForm1.FormCreate(Sender: TObject);begin  SetInitialBounds(0, 0, form_size.cx, form_size.cy);end;   where form_size if effectively the design time size? ---------------------------------------------------------------------- winni · 2020-04-07 20:27 Hi! Thanx for the reply - I had the same idea. I just asked if in the depth of TForm somewhere the design time size is hidden. If not I will work with cx/cy const. Winni ---------------------------------------------------------------------- flowCRANE · 2020-04-08 07:04 Quote from: winni on April 07, 2020, 10:27:11 pmI just asked if in the depth of TForm somewhere the design time size is hidden. What about resources? There are hidden lfm's — as RCDATA, for all forms. Use Resource Hacker or similar software and you'll see.