Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 2 个不同的表格上显示相同的图表(TChart)。第一个有一个小版本,但我希望用户能够单击一个按钮来显示更大版本的图表。
您可以有两个不同的控件来提供相同的数据集。或者您可以尝试在新表单上设置控件的父级。
TSmallForm = class ... procedure TSmallForm.Button1Click(sender : TObject) var F : TForm; begin F := TForm.Create; try ChartComponent.Parent := F; ChartComponent.Align := alClient; F.ShowModal; finally F.Free; end; end;