LazDataDesktop: fixed "EResNotFound: Resource "ddconnection" not found" exception, patch by Reinier, bug #26228

git-svn-id: trunk@45207 -
This commit is contained in:
maxim 2014-05-27 20:49:26 +00:00
parent 31225a494f
commit 922feb68b1
3 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ begin
begin begin
P:=TPortableNetworkGraphic.Create; P:=TPortableNetworkGraphic.Create;
try try
P.LoadFromLazarusResource(ImageNames[i]); P.LoadFromResourceName(HInstance,ImageNames[i]);
FImgList.Add(P,Nil); FImgList.Add(P,Nil);
finally finally
P.Free; P.Free;

View File

@ -169,7 +169,7 @@ begin
FExportSB.Top:=4; FExportSB.Top:=4;
FExportSB.Height:=22; FExportSB.Height:=22;
FExportSB.Width:=22; FExportSB.Width:=22;
P.LoadFromLazarusResource('qrybtn_export'); P.LoadFromResourceName(HInstance,'qrybtn_export');
FExportSB.Glyph.Assign(P); FExportSB.Glyph.Assign(P);
FExportSB.Flat:=True; FExportSB.Flat:=True;
FExportSB.OnClick:=@DoExport; FExportSB.OnClick:=@DoExport;
@ -179,7 +179,7 @@ begin
FCodeSB.Top:=4; FCodeSB.Top:=4;
FCodeSB.Height:=22; FCodeSB.Height:=22;
FCodeSB.Width:=22; FCodeSB.Width:=22;
P.LoadFromLazarusResource('qrybtn_code'); P.LoadFromResourceName(HInstance,'qrybtn_code');
FCodeSB.Glyph.Assign(P); FCodeSB.Glyph.Assign(P);
FCodeSB.Flat:=True; FCodeSB.Flat:=True;
FCodeSB.OnClick:=@DoCode; FCodeSB.OnClick:=@DoCode;

View File

@ -1,4 +1,4 @@
<?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?>
<CONFIG> <CONFIG>
<ProjectOptions> <ProjectOptions>
<Version Value="9"/> <Version Value="9"/>