ArcPad Scripting Object Model
OnPower Event
See Also  Send comments on this topic.
Application Object : OnPower Event

Glossary Item Box

Description

Occurs when ArcPad receives a WM_POWERBROADCAST message from the operating system.

Remarks

Use this event to write code that performs any desired power management action when an OnPower event occurs. When this event occurs, the Parameters(0) property of the ThisEvent object contains the power management event that was broadcast by the operating system. The following power management requests can be intercepted and denied by setting the Result property of the ThisEvent object to False:
Value Meaning
0 Request for permission to suspend.
1 Request for permission to stand by.

For example, to deny permission to suspend the device in an OnPower event handler:
If ThisEvent.Parameters(0) = 0 Then
   ThisEvent.Result = False
End If

See Also

© 2012 All Rights Reserved.