ImageEn, unit iexHelperFunctions

ShowTempHourglass


Declaration

function ShowTempHourglass(): IUnknown;


Description

Change the cursor to an hourglass during the current procedure (i.e. will revert to the previous cursor once we go out of scope).

Note: You must add the iexHelperFunctions unit to your uses clause


Example

Load an image when a button is clicked. Show hourglass during loading
procedure TMain.Button1Click(Sender: TObject);
begin
  ShowTempHourglass();
  ImageEnView1.IO.LoadFromFile('C:\MyImage.jpg');
end;