Difference between revisions of "Lazarus 1.8.0 release notes"

From Lazarus wiki
Jump to navigationJump to search
Line 24: Line 24:
  
 
*Menus (TPopupMenu, TMainMenu, TMenuItem)
 
*Menus (TPopupMenu, TMainMenu, TMenuItem)
**Menus now support OwnerDraw with Delphi's approach. For now only win32 is supported.
+
**Menus now support OwnerDraw with (almost) Delphi's approach. If you set TMenu.OwnerDraw to true the OnMeasureItem and OnAdvancedDrawItem from TMenu and TMenuItem will be called. OnDrawItem from Delphi isn't implemented, use OnAdvancedDrawItem instead. You can use the events also from TMenu, which is an LCL addition to Delphi. For now only win32 is supported.
  
 
= IDE Changes =
 
= IDE Changes =

Revision as of 09:32, 1 February 2016

Lazarus 1.8.0 is not yet released. This page is under construction!

Statistics:

  1. commits: xxx
  2. log: svn log -r xxxx:xxxx
  3. resolved bug tracker issues: xxx

LCL Interfaces Changes

LCL Changes

  • TCustomForm
    • new position poWorkAreaCenter - center form on working area (depends on DefaultMonitor)
  • TToolButton
    • new style tbsButtonDrop - paints a drop down arrow on the right side of the button. In contrast to tbsDropDown the button has only single clicking area that invokes the DropDownMenu if assigned.
    • new event OnArrowClick. It is called if Style=tbsDropDown when the user clicks the arrow button area of toolbutton. Breaking change: OnClick was called in 1.6!
  • TToolBar
    • new DropDownWidth property to setup the width of the toolbutton arrow area for Style=tbsDropDown.
  • ClipBoard
    • The ClipBoard now supports copying and pasting text in HTML format by means of the methods GetAsHtml and SetAsHtml.
  • Menus (TPopupMenu, TMainMenu, TMenuItem)
    • Menus now support OwnerDraw with (almost) Delphi's approach. If you set TMenu.OwnerDraw to true the OnMeasureItem and OnAdvancedDrawItem from TMenu and TMenuItem will be called. OnDrawItem from Delphi isn't implemented, use OnAdvancedDrawItem instead. You can use the events also from TMenu, which is an LCL addition to Delphi. For now only win32 is supported.

IDE Changes

  • lazbuild
    • new option --add-package-link to register given lpk files without building.

IDE Interfaces Changes

Components

LazControls

  • Added T(Float)SpinEx, a widgetset independant implementation T(Float)SpinEdit with some extended capabilities:
    • NullValue property.
    • Configurable behaviour when the text inside the control is not a number.

Changes affecting compatibility

  • TToolButton.OnArrowClick added. It is called if Style=tbsDropDown when the user clicks the arrow button area of toolbutton. Breaking change: OnClick was called in 1.6!

LCL incompatibilities

IDE incompatibilities

Previous release notes