ImageEn, unit iexHelperFunctions

ShowTempHourglass

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)


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;