[Lazarus] Patch for fixing the window resizes when switching components
Kostas Michalopoulos
badsectoracula at gmail.com
Thu May 18 10:34:03 CEST 2017
Oops, indeed, i was tripped up by the not in "(not (Control is
TCustomForm)) or ..." part.
On Thu, May 18, 2017 at 10:28 AM, Mattias Gaertner via Lazarus <
lazarus at lists.lazarus-ide.org> wrote:
> On Thu, 18 May 2017 02:43:10 +0300
> Kostas Michalopoulos via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
> > I see the patch was added and Lazarus seems to work fine now, but the
> check
> > was altered a little. The current check assumes that the Control will
> never
> > be nil, but is this the case?
>
> The "is" operator checks for nil.
>
> if Assigned(Control) and (Control is TCustomForm) then
>
> <=>
>
> if Control is TCustomForm then
>
>
> Mattias
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
> http://lists.lazarus-ide.org/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170518/96c9cb13/attachment.html>
More information about the Lazarus
mailing list