I want create a command like a switch in "toolbar" or "command manager".It will not up automatical after press down,until click the button again.But i can not find a function or property to achive it.
Thanks for your answer!
Take a look at this example: #CODE|Add Toggle Button in Toolbar and Command Manager
Thanks for you efficient and particular answer!
I have completed my code.
Would you like do me another favor?
There was a problem borther me for a long time.
Can I create a control like "combobox" or "textbox" at toolbar like some SOLIDWORKS commands.
If it can please tell me what I can do.
Thanks again for you attention!
It seems like this is resolved and you have a new question. Please mark Artem's answer as correct and ask a new question.
Could you give new information about this question? Old site is down.
Check this: xcad-examples/toggle-command at master · xarial/xcad-examples · GitHub
Right now, I would be very hard to go to your framework. Could you send me to PM simple API SW solution. I will be very grateful to you.
When you call ICommandGroup::AddCommandItem2 there is an 'EnableMethod' function you specify. Return 1 to uncheck the button and 3 to check. Please let me know if any questions.
Retrieving data ...