[Lazarus] TWinControl.WMSize loop on WinCE

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Feb 9 21:52:09 CET 2015


On Mon, 09 Feb 2015 22:41:04 +0200
patspiper <patspiper at gmail.com> wrote:

>[...]
> > Calendar1.Constraints.Min/MaxInterfaceWidth
> >
> > In this case the LCL sets a Width and the WinCE sets another creating a
> > loop.
> I put a TCalendar with no autosizing/aligning and a TEdit with 
> Align=AlBottom on the main form.
> xxx.Constraints.Min/MaxInterfaceWidth for both components are 0/0 on 
> WinCE

This means the LCL assumes that TCalender can have any size on WinCE.

Set TForm OnResize:
  Calendar1.GetPreferredSize(w,h);
  Calendar1.SetBounds(0,0,w,h);


Mattias




More information about the Lazarus mailing list