About "Lazarus Form System Size"... lazarus / 7-LCL ---------------------------------------------------------------------- OnixJr · 2006-04-14 16:19 I noted which lazarus forms are "bigger" from what delphi forms... My comparison (image hosted in Geocities Brazil): (http://br.geocities.com/hipernetjr/images/sizesystem.gif) This is a problem, in some cases as in utilisation of WINAPI In simple code as: SetWindowPos(Self.Handle,hwnd_TopMost,0,0,Self.Width,Self.Height,0); the form will be smaller (-8 and -27 pixels)... I can solve with SetWindowPos(Self.Handle,hwnd_TopMost,0,0,Self.Width+8,Self.Height+27, 0); or SetWindowPos(Self.Handle,hwnd_TopMost,0,0,Self.Width,Self.Height,swp_n oSize or swp_noMove); but my question is: This is a bug or "lazarus exclusive feature"??? ---------------------------------------------------------------------- felipemdc · 2006-04-14 17:41 Quote from: "OnixJr"but my question is: This is a bug or "lazarus exclusive feature"??? A necessity. It is impossible to determine reliably the size of the caption bar on Linux (due to window manager differences), so the size must not take that into account. This is why the forms are slightly bigger. If we fix that for Windows then the same form will look differently on Windows and Linux. A slight difference to Delphi is preferable then having the app look differently on the various platforms Lazarus supports. ---------------------------------------------------------------------- OnixJr · 2006-04-14 20:10 hum, interesting... I don't have thinked about this... Thanks for reply...