menialtasks icon indicating copy to clipboard operation
menialtasks copied to clipboard

Berlin 10.1 Support

Open iankrigsman opened this issue 8 years ago • 1 comments

Compile error in Berlin: Unit: Views.Main Line 123: if TPresentationState.Opened in MultiView1.Presenter.State then Error: "Undeclared identifier: Opened"

It appears TPresentationState is defined in both FMX.MultiView and FMX.Controls.Presentation, and the compiler is picking up the entry in FMX.Controls.Presentation. We want the MultiView definition.

Solution: Either qualify FMX.MultiView.TPresentationState or swap the unit names in the uses clause (Lines 12-13).

iankrigsman avatar Jun 29 '16 05:06 iankrigsman

Path:

procedure TViewMain.ListBox1ItemClick(const Sender: TCustomListBox;
  const Item: TListBoxItem);
begin
  if FMX.MultiView.TPresentationState.Opened in MultiView1.Presenter.State then
    MultiView1.HideMaster;
end;

rareMaxim avatar Sep 03 '16 13:09 rareMaxim