Hello,
On a Form I put a Diagram (atDiagram1), then define 2 Layers (0 and 1). By default, both of them are editable and visible.
In the diagram I put 2 DiagramBlocks (DiagramBlock1 and DiagramBlock2). By default, both of them belong to Layer 0. I change Layer of DiagramBlock2 to 1 and … It disappears… Why ?
Then 2 buttons on the form with this code :
void __fastcall TForm2::Button1Click(TObject *Sender)
{
atDiagram1->Layers->Items[0]->Visible = true;
atDiagram1->Layers->Items[1]->Visible = false;
}
void __fastcall TForm2::Button2Click(TObject *Sender)
{
atDiagram1->Layers->Items[0]->Visible = false;
atDiagram1->Layers->Items[1]->Visible = true;
}
Then I run the project, click on the buttons and… nothing happens…
I don’t understand anything, how should I work with those layers ?