Difference between revisions of "Lazarus 1.8.0 release notes"

From Lazarus wiki
Jump to navigationJump to search
m (→‎DateTimeCtrl: Package names correction)
Line 46: Line 46:
 
** Configurable behaviour when the text inside the control is not a number.
 
** Configurable behaviour when the text inside the control is not a number.
  
== DateTimeCtrl ==
+
== DateTimeCtrls ==
* DateTimeCtrl was splitted into DateTimeCtrl and DateTimeCtrlDsgn packages and thus the components can get unregistered. Remedy: install DateTimeCtrlDsgn into the IDE. (Don't use DateTimeCtrlDsgn in your application.)
+
* DateTimeCtrls was splitted into DateTimeCtrls and DateTimeCtrlsDsgn packages and thus the components can get unregistered. Remedy: install DateTimeCtrlsDsgn into the IDE. (Don't use DateTimeCtrlsDsgn in your application.)
  
 
== LazControls ==
 
== LazControls ==

Revision as of 11:32, 2 June 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 OnDrawItem from TMenu and TMenuItem will be called. OnDrawItem from Lazarus has the same parameters as OnAdvancedDrawItem from Delphi. 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}
  • Code creation
    • new shortcut Ctrl+ Shift+X that shows a CodeCreation dialog with more options. Ctrl+ Shift+C never shows a dialog now.

IDE Interfaces Changes

Components

LazControls

  • Added T(Float)SpinEditEx, 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.

DateTimeCtrls

  • DateTimeCtrls was splitted into DateTimeCtrls and DateTimeCtrlsDsgn packages and thus the components can get unregistered. Remedy: install DateTimeCtrlsDsgn into the IDE. (Don't use DateTimeCtrlsDsgn in your application.)

LazControls

  • Register procedures were moved into LazControlDsgn and thus the components can get unregistered. Remedy: install LazControlDsgn into the IDE. (Don't use LazControlDsgn in your application.)

Changes affecting compatibility

LCL incompatibilities

  • 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!
  • TCustomAbstractGroupedEdit descendants must override SetRealText/GetRealText methods now. In 1.6 the methods to override were GetText/SetText. (This is because TCustomAbstractGroupedEdit reintroduced the Text property instead of take use of the TControl.Text property.)

Components incompatibilities

  • easylazfreetype: TCustomFreeTypeFontCollection.AddFile returns TCustomFontCollectionItem and not boolean.

IDE incompatibilities

Previous release notes