LazReport, fixed storing more properties of checkboxview, fixed finding dataset components on different forms (from Aleks Lagunov)

git-svn-id: trunk@12054 -
This commit is contained in:
jesus 2007-09-17 16:03:43 +00:00
parent 0f4b37d257
commit 0efab1aa67
2 changed files with 8 additions and 11 deletions

View File

@ -51,10 +51,14 @@ type
procedure LoadFromXML(XML: TXMLConfig; Path: String); override;
procedure SaveToXML(XML: TXMLConfig; Path: String); override;
published
property Frames;
property FillColor;
property Checked : Boolean read fChecked write fChecked;
property FillColor;
property FrameColor;
property Frames;
property FrameStyle;
property FrameWidth;
property Script;
end;

View File

@ -321,14 +321,7 @@ begin
begin
s3 := Copy(s2, Pos('.', s2) + 1, 255);
s2 := Copy(s2, 1, Pos('.', s2) - 1);
f := nil;
if Assigned(Application.FindComponent(S1)) then
begin
if Application.FindComponent(S1) is TDataSet then
f := Application.FindComponent(S1) //FindGlobalComponent(s1);
else if Application.FindComponent(S1) is TDataSource then
f := TDataSource(Application.FindComponent(S1)).DataSet;
end;
f:=FindGlobalComponent(S1);
if f <> nil then
begin
DataSet := TfrTDataSet(f.FindComponent(s2));