Sign in Join
Wiki copytemporary

Lazarus 2.0.0 release notes

Lazarus 2.0.0 was released on 2019-02-05 http://forum.lazarus.freepascal.org/index.php/topic,44161.0.html release announcement

LCL Interfaces Changes

LCL Changes

TScrollingWinControl (TForm, TScrollBox, TFrame)

Support for mouse wheel horz scrolling

Added TControl events for horizontal mouse wheel moving (special mice with horz scroll buttons for PC, and modern mice for Mac). OnMouseWheelHorz, OnMouseWheelLeft, OnMouseWheelRight. Events are used in some non native LCL components (TreeView, UpDown, SpinEdit). Native components should handle horz scrolling already.

Compiler defines to exclude some graphics support

Added flags to exclude support for some graphics formats to create smaller applications:

TCustomImageList / TImageList

TSpeedButton, TBitBtn

TWinControl.DoubleBuffered, .ParentDoubleBuffered and TApplication.DoubleBuffered

TListView

Added CustomSort method like in Delphi.

TTreeView

FilterOptions in filter controls

Base class for filter controls TCustomControlFilterEdit has new property FilterOptions, which is set of such flags:

 TFilterStringOption = (fsoCaseSensitive, fsoMatchOnlyAtStart);
 TFilterStringOptions = set of TFilterStringOption;

Two flags are implemented for 3 filter controls in LazControls: TListFilterEdit, TListViewFilterEdit, TTreeFilterEdit.

Advanced menus Assign

TPageSetupDialog

IDE Changes

Editor

Ctrl-b pops up "goto bookmark" list, with location for each bookmark. Ctrl-Shift-b pops up "toggle bookmark" list.

Debugger

LLDB based Debugger (New)

The main target for this debugger is the Mac environment, which comes with a pre-installed lldb. For other platforms the use of the GDB based debugger is highly recommended.

The LLDB debugger depends on the availability and correct function of the lldb executable.

This is a raw LLDB wrapper. All watches must be lldb compatible. This may require C-style expressions entered into the watch window.

This debugger is experimental and provided "as is".

This is the recommended LLDB based debugger.

To use the lldb based debugger:

Open the IDE and install the package "LazDebuggerFpLLdb"

Go to Tools > Options > Debugger

(lldb comes with the tools from Apple; and as such it is already codesigned by Apple).

In case of problems please see: http://forum.lazarus-ide.org/index.php/topic,42869.0.html

GDB based Debugger

GDB Debugger new options

Some users may experience a small speed gain, when setting both of the "...LengthForStaticArray" values to an equal value, and both of the "...ValueMemLimit" to an equal value (the mem and length may differ,this has no effect)

IDE Interfaces Changes

Components

TOpenGLControl

TAChart

TCustomEdit

Changes affecting compatibility

Installer

Debian package fpc was renamed to fpc-laz

This about the packages provided by the Lazarus team on sourceforge.

Note, that the fpc-src package keeps its name, as the Ubuntu/Debian package is fpc-source, so there is no name clash here.

LazUtils

LCL incompatibilities

TToolBar children ignore Align

Controls placed within TToolBar cannot be aligned with the Align property.

TCustomComboBox.ReadOnly was deprecated

Predefined clipboard format pcfDelphiBitmap was removed

TEdit.Action visibility lowered to public

TControl.ScaleFontsPPI, .DoScaleFontPPI parameter change

MouseEntered deprecated/missing

TCustomImageList.Add method

TBitBtn.Glyph in combination with TBitBtn.Kind

TCustomTreeView.OnChanging event: Node parameter

TCustomDialog properties Width and Height visibility lowered to public

No LCL Application exception dump

No default LazLogger

Screenshot for LCLExceptionStackTrace and LazLogger Additions and Overrides

TCustomTabControl setting TabIndex or PageIndex by code

TCustomGrid: The var parameter ABitmap in event OnUserCheckBoxBitmap used to be preassigned with default bitmap, but now it is nil

More information in bugreport 35085.

Components incompatibilities

LazControls: TSpinEditEx no longer inherits from TCustomFloatSpinEditEx

TAChart: Reticule-related properties deprecated

TAChart events On[After|Before]Draw[Background|BackwallWall] deprecated

TAChart: The TCubicSplineOption csoDrawFewPoints is removed.

TAChart: Other properties removed that had been marked as deprecated for a long time

removed use instead
property TChartTitle.Font (unit TAChartAxisUtils) TChartTitle.LabelFont
property TCustomChartSeries.ShowInLegend (unit TACustomSeries) TCustomChartSeries.Legend.Visible
method TFuncSeries.GetFitEquationText (unit TAFuncSeries) TFuncSeries.EquationText
method TChart.DrawOnCanvas (unit TAGraph) TChart.PaintOnCanvas
property TChartLegend.Margin (unit TALegend) TChartLegend.MarginX
event TLineSeries.OnDrawPointer (unit TASeries) TLineSeries.OnCustomDrawPointer
class TSerie (unit TASeries) TLineSeries
class TLine (unit TASeries) TConstantLine
property TZoomDragTool.Proportional (unit TATools) TZoomDragTool.RatioLimit, set to zlrProportional

IDE incompatibilities

Previous release notes


From the Free Pascal wiki, page "Lazarus 2.0.0 release notes", as it stood on 2021-10-11 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.