Hi,
I have upgraded to the latest version Firepower 6.1.1.12.
I'm using Delphi Seattle.
In my project, I tried using the wwLayoutGrid component to display information regarding properties (similar to House Photos included in your demo).
Each property includes a photo that I need to show with data along with housing (rooms, price, etc ...)
Although I have done several tests, I can't found the correct and more efficient procedure for get that when the wwLayoutGrid component is loaded the wwImageControl show the linked photographs. I tested with different events of wwLayoutGrid (Onpainting, OnCustomDrawControl, etc ...), but all I've got is that in some cases, executing on windows, picture is displayed when the row takes focus, but always when I execute in Android application crashes or is blank.
I have two questions:
A) What would be the event or procedure correct to get to load every photograph ?
B) I tryied using a stream how you can see in the next procedure, but I would like to know if there are other method more efficient.
This is the code I use to load the picture (called from an event of wwLayoudGrid).
TForm2.Chargefoto procedure (cfoto: string; Imagex: TImage);
var MS: TMemoryStream;
URL: string;
I: integer;
begin
MS: = TMemoryStream.Create;
try
for i: = 1 to 1 do
begin
MS.Clear;
IdHTTP1.Get (URL, MS);
MS.Seek (0, soFromBeginning);
Imagex.bitmap.LoadFromStream (MS);
end;
finally
MS.Free;
end;
Application.ProcessMessages;
end;
Thanks for your help.
Vicens