[Lazarus] TFrame improvements

Ondrej Pokorny lazarus at kluug.net
Mon Nov 29 21:12:57 CET 2021


On 29.11.2021 17:47, Martin Frb via lazarus wrote:
> On 29/11/2021 17:18, Juha Manninen via lazarus wrote:
>>
>> It allows a Frame to stand without a parent in the designer or even 
>> at runtime in some hypothetical situation(?).
>> Using Canvas outside Paint may not be recommended but it can be done 
>> in some widgetsets. The component's duty is to not crash in designer 
>> or anywhere else when it happens.
>>
>
> I suspect in the Designer it does not stand alone => The designer is 
> the parent. But I have not checked.

Unless you have installed the docked designer package (I don't know in 
what shape it is now, AFAIR Michl has done some improvements), the 
designer form is standalone and the frame as well (=they don't have a 
parent).

I assume the IDE designer sets the needed window parameters for the 
frame at some place between loading and showing the frame. But I haven't 
checked now and it's been a while when I fiddled with the designer code 
the last time.

Ondrej

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20211129/041a1163/attachment.html>


More information about the lazarus mailing list