MapViewer CommandEvent explanation

After a detailed debug I realized that the CommandEvent documentation completly wrong in latest SDK. CommandEvent eventType numbers are not means what is documented and there is more numbers here. In the API reference there is a small section:

CommandEvent Event [User Interface Customization]

Description

Indicates that a command was started, stopped, suspended, or resumed.

Parameters

commandID
An integer that specifies the affected command.
eventType

An integer that specifies the type of command operation.

ValueEvent Type
0 command started
1 command was suspended
2 command resumed
4 command stopped

The table above contains incorrect explanation. As I tested it I found event numbers as I described below:

  • 0: command started - CORRECT
  • 1: command started also but it's strange when it comes
  • 2: command resumed- CORRECT
  • 3: command stopped - NOT 4 BUT 3 MEANS IT
  • 4: Element draw started
  • 5: Element draw cancelled - means user reset when element not completed (eg.: polygon with only 1 line) - element will be deleted on next click!
  • 6: Element draw completed - active tool remains, you can draw second element now. After it the ElementCreated event comes.

The second thing what you should know is the default command is the Pan (=1) which always starts when any tool reseted. Any tool reseted means this event occures even when (the same) Pan Tool is reseted.

Finally there is an undocumented event number: 500 which comes immediately after MapViewer control created. It always comes with eventType=3 which means "command stopped" - but I don't know which command.

I wonder if I missed or misunderstood something about this?