[Lazarus] New menu designer

Dmitry Boyarintsev skalogryz.lists at gmail.com
Wed Dec 23 18:54:55 CET 2015


On Wed, Dec 23, 2015 at 12:04 PM, Ondrej Pokorny <lazarus at kluug.net> wrote:

> So it means that Lazarus' LCL and Delphi's VCL fsStayOnTop are not
> compatible, which I don't really understand why this decision was made.
> (Maybe some historic reason I am not aware of [?])
>
> From my point-of-view, it would be a better decision to have fsStayOnTop
> that behaves equally with Delphi (system-wide) and another stay-on-top type
> application-wide just as I suggested before.
>

For the sake of the best User Interface practices and historical reasons.

"fsSystemStayOnTop" is more of an exception, rather than the rule.
In most cases, an application wants to be system friendly application and
only want to put a form on top of its own windows not system wide.

IIRC, at the time fsSystemStayOnTop was introduced frStayOnTop was
inconsistent across widgetsets. Introducing fsSystemStayOnTop forced
consistency.

Also, since Delphi doesn't have any variant of either "fsSystemStayOnTop"
or "fsAppStayOnTop" it's quite clear that Delphi is not LCL compatible :)

Also, having "fsStayOnTop" is not even critical to be Delphi compatible.
1) Delphi advises NOT to change the FormStyle in run-time (thus any
existing code written for Delphi, is not guaranteed to work "as expected"
even in Delphi).
2) Since Lazarus doesn't use Delphi .dfm files, who ever ports an Delphi
project to Lazarus need to pay attention to the flag (if it's used)

To sum things up: using fsStayOnTop in the new menu designer is not bad.

thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151223/39226bfb/attachment-0003.html>


More information about the Lazarus mailing list