rzaripov1990 / ModernListView

[FireMonkey] Modern ListView - Colorizer, Vertical\Horizontal mode, Columns and other
120 stars 41 forks source link

Will Access vialotion with c++builder Rio #18

Open HsuNeptune opened 5 years ago

HsuNeptune commented 5 years ago

Hello Sir.

when use ModernListView in c++builder (Rio) project, there are 2 situation below.

  1. If add FMX.ListView.Types.pas to project will fired a access violation.

  2. 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.


  1. modify initialization at FMX.ListView.pas initialization LVTextLayout := TTextLayoutManager.DefaultTextLayout.Create;

change this line to

LVTextLayout := nil;//TTextLayoutManager.DefaultTextLayout.Create;


  1. 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.