[Lazarus] Application.Title and .Scaled automation + logic fix

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Application.Title and .Scaled automation + logic fix

Free Pascal - Lazarus mailing list
Application.Title in project's main unit is updated automatically based on a project title setting.
Unchecking the option "Main unit has Application.Title statement" was originally meant as an alternative in case the automation failed.
The text was misleading. If automation was turned off, the main unit could still have Application.Title statement in case a user decided to add it manually.
Earlier changes in code followed the flawed text and removed the statement always when the option was turned off.

I improved the logic some days ago in r62669 and changed the text to "Update Application.Title statement in main unit".
I also improved the automation. Now the LCL GUI specific options cannot be set for a console program any more. The code tests for LCL dependency and Forms unit in uses section.
This all fixes issue :
 https://bugs.freepascal.org/view.php?id=36521
among other unreported issues. Similar change was made for Application.Scaled.
I also changed the text for "Application.CreateForm statements" checkbox although I did not change its logic.
Comments?
Are the texts good?

Project template "Console Application" uses TCustomApplication which has Title which is not set automatically now.
I guess it is OK because the Title is not used anywhere.(?)

Juha


--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus