AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

VCL New Features in RAD Studio 11

Ein Thema von DP News-Robot · begonnen am 21. Sep 2021
Antwort Antwort
Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.967 Beiträge
 
#1

VCL New Features in RAD Studio 11

  Alt 21. Sep 2021, 15:00
Among the new features in Delphi 11, C++ Builder 11 and RAD Studio 11 one area I'm very happy about is the work the team has done on core VCL components, addressing a number of requests that have been pending for some time. Let's touch base on some of them.

The New RichEdit Control

The most visible new feature is TRichEdit migration to the most recent platform version, the RichEdit control 4.1 implemented by MSFTEDIT.dll. Beside a general improvement, the new controls offers features like spell checking, URL recognition, transparency, with new properties that include*Transparent, EnableURLs,*SpellChecking,*and the new OnLinkClick event.

RichEdit Text Attributes fields have been significantly enhanced.*This is an image from the demo I used in the RAD 11 lauch webinar.



You can find a very nice, detailed coverage in*Alister Christie's YouTube video "Enhancements to TRichEdit - Delphi #188". Notice also that the TDBRichEdit component Lines property is now public.

A TreeView with CheckBoxes

Another prominent feature is the added support for check boxes in the platform TreeView control. This is now available in the TTreeView control. Checkboxes support multiple states and can be added to the regular tree structure. In fact the new*TNodeCheckState*enumeration can assume the following values:*ncsNone, ncsUnchecked, ncsChecked, ncsPartial,*ncsDimmed, ncsExclusion.

Below you can see an image with a TreeView with check boxes in action:



The New DBLabeledEdit

There is also one new brand VCL control in this release, a data-ware version of the LabeledEdit -- a combination of an edit with its label. This is handy as you only need to manage the position of the edit, and the label comes alongside (or on top, depending n the configuration). Notice that in the data-aware*version, as you assign a field fo the control, the current record value is displayed in the edit while the field name becomes the default value of the label. Below you can see how easy it is to configure this using the Quick Edit menu:



TWICImage multi frame support

The TWICImage*class (one of the implementation options for the TImage control)*is wrapper around the platform Windows Imaging Component. The few feature in this wrapper class is support for multiple*frames. This is exposed by two new properties: FrameCount and FrameIndex.*You set FrameIndex to indicate the desired frame from a multi-frame image (such as a multi-frame TIFF file).

And Many More

There are many smaller features worth mentioning, as they can offer an immediate benefit to your existing applications:

  • Coolbar has Chevron support via a new Boolean property ShowChevron
  • The base TWinControl class now offers LockDrawing and UnlockDrawing methods, to disable and control updating. This triggers the execution of the WM_SETREDRAW Windows message. This is probably worth its own blog post...
  • The TNumberBox class has a few additional features:*there is a new ValueCurrency property and*the DisplayFormat property is now published
  • The VCL StyleUtils.inc has been converted to a regular unit
  • Common dialogs how expose the properties EncodingIndex and ShowEncodingList
  • There is a new OnTracking event for TTrackbar
  • There is an additional CheckTabEnabled parameter in TPageControl.FindNextPage to skip disabled tabs
  • TButtonCategory has a VisibleGutter property.
  • TScrollBox*automatically supports the mouse wheel -- notice this change might affect the behavior of existing applications
  • VCL function ScaleImage supports Alpha Channel
  • Default form size is now bigger
  • SetSelText and SetSelTextBuf offer the option not to reset the Undo buffer
  • TCustomTitleBarPanel now has TitleButtonClose, TitleButtonRestore, TitleButtonMin properties, and an*OnUpdateTitlebarButtons event.
  • TDateTimePicker allows changing both date and time together in UI
Conclusion

If you have the impression there is a lot new in the VCL in RAD Studio 11... well, that's a correct impression. Rather than brand new chiming components, the focus was on fixing many smaller gaps and making the overall library more modern and robust -- as the team also fixed a significant number of open issues. I hope all developers using the VCL library appreciate the effort and we are always open to additional ideas and suggestions.



Weiterlesen...
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:12 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz