globalmapper.SetMessageCallback

globalmapper.SetMessageCallback(GM_MessageCallbackFunc aCallbackFunc) None[source]

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. The callback is then free to do whatever they’d like, including just ignore the message, in which case the error code will still be returned from the function generating the message like normal.

Parameters

aCallbackFunc (GM_MessageCallbackFunc) – The callback function to use to display error and warning messages

Returns

Nothing

Return type

None