Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1045
PopupMenuTool like StateButtonTool?
posted

Hi experts,

I'd like to have StateButtonTool act like PopupMenuTool, but I cannot find any way to do it. Please help! (I put the button in ribbon group)

If I use PopupMenuTool, I can insert sub items by PopupMenuTool.tools.insertTool(subitem). But StateButtonTool doesn't provide tools collection... How can I insert a child StateButtonTool into a father StateButtonTool, so that the father StateButtonTool has a down arrow, click the arrow shows the child StateButtonTool. And the father StateButtonTool itself is a StateButtonTool.

It's difficult for me. Please help!