Difference between revisions of "Lazarus 1.8.0 release notes"

From Lazarus wiki
Jump to navigationJump to search
Line 12: Line 12:
 
* TCustomForm
 
* TCustomForm
 
** new position poWorkAreaCenter - center form on working area (depends on DefaultMonitor)
 
** new position poWorkAreaCenter - center form on working area (depends on DefaultMonitor)
 +
** new compiler define '''LCLRealFormBounds'''. If you compile your application with '''LCLRealFormBounds''' on, the TCustomForm bounds (Width/Height) will be real outer bounds and not client bounds. Also constraints will affect real bounds. For now, it is supported only by win32.
  
 
* TToolButton
 
* TToolButton

Revision as of 16:41, 3 March 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)
    • new compiler define LCLRealFormBounds. If you compile your application with LCLRealFormBounds on, the TCustomForm bounds (Width/Height) will be real outer bounds and not client bounds. Also constraints will affect real bounds. For now, it is supported only by win32.
  • 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.
  • Quick Fixes
    • new QuickFix for any fpc hint, note or warning: add compiler directive {$warn id off}

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