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.
<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>
Comments
0 comments
Article is closed for comments.