[Lazarus] IDE Main Window: height is too small and cannot resize (Linux/GTK2)

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Mon Feb 13 12:26:44 CET 2012


2012/2/11 zeljko <zeljko at holobit.net>:
> Such change is planned for post 1.0 because it can easy postpone 1.0 for one
> year. Feel free to provide patch which will fix that in next 2-3 weeks so we
> can test before branching.

I think we should consider simply leaving how it is and add a new
property for the outter size. Changing Form.Width / Height might be a
heavy compatibility break for Lazarus users. And if we use it as the
main source of stored size for a window, then it likely be unreliable
across platforms and cause issues when you design a form in Windows
and opens in Linux.

On Sat, Feb 11, 2012 at 6:27 PM, Hans-Peter Diettrich
<DrDiettrich1 at aol.com> wrote:
> Okay, send me an Mac so that I can start my research ASAP :-)

As for implementing it, we already have in LCLIntf:

function GetWindowRect(Handle : hwnd; var Rect : TRect): Integer;
{$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
function GetWindowSize(Handle : hwnd; var Width, Height: integer):
boolean; {$IFDEF IF_BASE_MEMBER}virtual;{$ENDIF}
function SetWindowPos(hWnd: HWND; hWndInsertAfter: HWND;
       X, Y, cx, cy: Integer; uFlags: UINT): Boolean;  {$IFDEF
IF_BASE_MEMBER}virtual;{$ENDIF}

So you should start trying to figure out how to implement all of those
properly in Gtk2, Qt and pure X11. I just commited improved docs for
GetWindowRect and GetWindowSize

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list