On 18/04/2011 20:21, DSK wrote:
> To use it, add the unit to the implementation uses clause and then just 
> call DisplayHourglass before any long process. It'll switch back to 
> whatever the cursor was then the method terminates.


Unless you store a reference of the result of the DisplayCursor() call,
it will not work under FPC (like it does under Delphi).  FPC is *not*
compatible with the way Delphi works in this regard. The FPC developers
are also not willing to fix this because the freeing of a undeclared
interface reference in a local method is a undefined/undocumented
feature of Delphi - even though thousands of Delphi developers have used
that feature for many years.

NOTE:
The issue is only if you call DisplayCursor() without storing the result
in a local variable.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to