when use ModernListView in c++builder (Rio) project, there are 2 situation below.
If add FMX.ListView.Types.pas to project will fired a access violation.
if remove FMX.ListView.Types.pas from project, did not fired access violation but rise a ECanvasManagerException 'No TTextLayout implementation found'.
after some checking, had found a temporarily sulotion to use.
modify initialization at FMX.ListView.pas
initialization
LVTextLayout := TTextLayoutManager.DefaultTextLayout.Create;
Hello Sir.
when use ModernListView in c++builder (Rio) project, there are 2 situation below.
If add FMX.ListView.Types.pas to project will fired a access violation.
if remove FMX.ListView.Types.pas from project, did not fired access violation but rise a ECanvasManagerException 'No TTextLayout implementation found'.
after some checking, had found a temporarily sulotion to use.
change this line to
LVTextLayout := nil;//TTextLayoutManager.DefaultTextLayout.Create;
modyfy function TListViewBase.getTextSize(....): TSizeF; // ZuBy add one line code before LVTextLayout.BeginUpdate;
if LVTextLayout=nil then LVTextLayout := TTextLayoutManager.DefaultTextLayout.Create; //add this line here
LVTextLayout.BeginUpdate;
after these 2 steps , the modenListView can use in c++builder project.
I am not familiar with delphi programming, so it's JUST a temporarily sulotion for the c++builder project.
is there a really solution from you?
thank your and thanks for your hard work of ModernListView.