Lock PowerPoint

Modified on Mon, 5 Oct at 1:54 PM

When configuring buttons that contain a command chain, it can be beneficial to Lock PowerPoint while executing. This will reduce the loading time as well as enhance the efficiency.

Insert the lock command as the first one in the command chain, and the unlock command as the last one.

The code below illustrates an example that benefit from locking PowerPoint while the commands are executed.

XML
<Button label="Change colors">
   <Cmd case="BaseExtensions:lock-pp"/>
   <Cmd case="BaseExtensions:change-fill-color-named-shape" name="Background" color="255,255,255"/>
   <Cmd case="BaseExtensions:change-fill-color-named-shape" name="BackgroundRed" color="255,255,255"/>
   <Cmd case="BaseExtensions:change-fill-color-named-shape" name="Shape" color="143,143,143"/>
   <Cmd case="BaseExtensions:change-fill-color-named-shape" name="Logo" color="112,110,111"/>
   <Cmd case="BaseExtensions:change-font-color-named-shape" name="Text" color="112,110,111"/>
   <Cmd case="BaseExtensions:change-font-color-named-shape" name="TextLevelRed" color="0,0,0"/>
   <Cmd case="BaseExtensions:change-font-color-named-shape" name="TextRed" color="220,0,0"/>
   <Cmd case="BaseExtensions:change-font-color-named-shape" name="Date" color="112,110,111"/>
   <Cmd case="BaseExtensions:change-font-color-named-shape" name="SlideNumber" color="112,110,111"/>
   <Cmd case="BaseExtensions:change-font-color-named-shape" name="Footer" color="112,110,111"/>
   <Cmd case="BaseExtensions:change-font-color-named-shape" name="TextDivider" color="112,110,111"/>
   <Cmd case="BaseExtensions:change-font-color-named-shape" name="TextSubtitle" color="112,110,111"/>
   <Cmd case="BaseExtensions:unlock-pp"/>
</Button>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article