SetMessageCallbackEx

globalmapper.SetMessageCallbackEx(function aCallbackFunc, bool aThreadLocal, uint32 aReserved=0) None[source]

Note

The aCallbackFunc parameter cannot be a class method or a static method – it must be a function.

Sets the function to call to display error and warning messages generated during SDK operations. If a message callback is provided, a message dialog will not be shown, instead the callback function will be called with the error or warning message that would have been displayed.

Parameters:
  • aCallbackFunc (function) – The callback function to use to display error and warning messages

  • aThreadLocal (bool) – should this callback only be used within the current thread?

  • aReserved (int) – Reserved for future use; defaults to 0

Returns:

Nothing is returned

Return type:

None