功能区 powerpoint 中的 OnAction 出现错误

问题描述 投票:0回答:1

我正在尝试使用 Office Ribbon X Editor 在 PowerPoint 的功能区中定义一个动态组合框。当我输入 onAction 行时,出现错误:

Ln 14, Col 25: 'onAction' 属性未声明。

代码:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <ribbon startFromScratch="false">
        <tabs>
            <tab id="customTab" label="Custom Tab">
                <group id="customGroup" label="Custom Group">
                    <button id="customButton" label="Custom Button" imageMso="HappyFace" size="large" onAction="Callback" />
                
                     <comboBox 
                        id="comboBox"
                        label="Size" 
                        sizeString="AAAA"
                        getItemCount="GetCBItemCount"
                        getItemID="GetCBItemID"
                        onAction="ddClicked"
                        >
                     </comboBox>
                    </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>

感谢任何帮助

vba powerpoint ribbon
1个回答
0
投票

组合框上没有

onAction
。试试
onChange

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
    <ribbon startFromScratch="false">
        <tabs>
            <tab id="customTab" label="Custom Tab">
                <group id="customGroup" label="Custom Group">
                    <button id="customButton" label="Custom Button" imageMso="HappyFace" size="large" onAction="Callback" />
                
                     <comboBox 
                        id="comboBox"
                        label="Size" 
                        sizeString="AAAA"
                        getItemCount="GetCBItemCount"
                        getItemID="GetCBItemID"
                        onChange="ddClicked"
                        >
                     </comboBox>
                </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>
© www.soinside.com 2019 - 2024. All rights reserved.