mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 17:39:20 +02:00
Examples, sqlite_mushrooms:
- increased height of the TDBText DBText1 - removed a slash for the path of Mushroom_Report.lrf in the PrintClick procedure (now the report can be opened on Linux - tested on Ubuntu 12.04) - fixed bad test for frReport1EnterRect procedure patch by Jurassic Pork, bug #25511 git-svn-id: trunk@43755 -
This commit is contained in:
parent
4cd110d9c9
commit
81d67ab408
@ -179,7 +179,7 @@ object Form1: TForm1
|
|||||||
end
|
end
|
||||||
object DBText1: TDBText
|
object DBText1: TDBText
|
||||||
Left = 88
|
Left = 88
|
||||||
Height = 20
|
Height = 24
|
||||||
Top = 48
|
Top = 48
|
||||||
Width = 240
|
Width = 240
|
||||||
Alignment = taCenter
|
Alignment = taCenter
|
||||||
|
@ -106,7 +106,7 @@ end;
|
|||||||
procedure TForm1.Bt_PrintClick(Sender: TObject);
|
procedure TForm1.Bt_PrintClick(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
frReport1.LoadFromFile(ExtractFilePath(application.ExeName) +
|
frReport1.LoadFromFile(ExtractFilePath(application.ExeName) +
|
||||||
'\Mushroom_Report.lrf');
|
'Mushroom_Report.lrf');
|
||||||
frReport1.ShowReport();
|
frReport1.ShowReport();
|
||||||
end;
|
end;
|
||||||
procedure TForm1.DBEdit1Change(Sender: TObject);
|
procedure TForm1.DBEdit1Change(Sender: TObject);
|
||||||
@ -213,9 +213,9 @@ end;
|
|||||||
|
|
||||||
procedure TForm1.frReport1EnterRect(Memo: TStringList; View: TfrView);
|
procedure TForm1.frReport1EnterRect(Memo: TStringList; View: TfrView);
|
||||||
begin
|
begin
|
||||||
if View.Name = 'Picture2' then
|
if (View.Name = 'Picture2') AND
|
||||||
if DBEdit1.Text <> '' then
|
(frDBDataSet1.DataSet.FieldByName('Image_Link').AsString <> '') then
|
||||||
TFrPictureView(View).Picture.LoadFromFile(ExtractFilePath(ParamStr(0)) +
|
TFrPictureView(View).Picture.LoadFromFile(ExtractFilePath(ParamStr(0)) +
|
||||||
'images' + DirectorySeparator + frDBDataSet1.DataSet.FieldByName('Image_Link').AsString);
|
'images' + DirectorySeparator + frDBDataSet1.DataSet.FieldByName('Image_Link').AsString);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user