on.activate()
This routine is called when the script application is activated. The dimensions of the drawing window cannot be initialized at this point, so it is not a good place to create and position graphical elements if they depend on the window size.
Introduced in platform.apiLevel = '1.0'