Toolbar buttons with submenus
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Toolbar buttons with submenus
Is it possible that a Freecad toolbar icon has submenus?
If yes, do you have an example of code?
If yes, do you have an example of code?
Last edited by leoheck on Mon Oct 03, 2022 10:22 pm, edited 1 time in total.
Re: Toolbar buttons with submenus
Moved from Developer forum. You post there, if you have questions concerning your own development.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Toolbar buttons with submenus
Sorry, I thought you asked about configuring your own toolbar. I moved the topic back to Developers.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Toolbar buttons with submenus
Oh, that's fine. Thanks, Chrisb.
Re: Toolbar buttons with submenus
if you want a toolbar button that expands down like a menu (not sub-menu) to show more commands then look for dropDownCmd in Asm4_libs. This is what the createFasteners and createDatum buttons do.
Re: Toolbar buttons with submenus
Zolko your exactly the guy I wanted to talk.
My idea was to have a button with menus and submenus.
Why?
Because then Fasteners Workbench could have and option of a Toolbar button with the whole WB inside of it. Then this button could be easily instantiated by other Workbenches like Assembly 4 enabling easy access to all the features.
My idea was to have a button with menus and submenus.
Why?
Because then Fasteners Workbench could have and option of a Toolbar button with the whole WB inside of it. Then this button could be easily instantiated by other Workbenches like Assembly 4 enabling easy access to all the features.
- ebrahim raeyat
- Posts: 619
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: Toolbar buttons with submenus
Thanks Ebrahim. Is this a Freecad workbench that I can test? I could not find it with the package manager.
Edit: I installed it manually. I am seeing 2 toolbar buttons with dropdown lists (Load Combination, and Frame Section). But they don't have sublists (nested lists).
Edit: I installed it manually. I am seeing 2 toolbar buttons with dropdown lists (Load Combination, and Frame Section). But they don't have sublists (nested lists).
- ebrahim raeyat
- Posts: 619
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: Toolbar buttons with submenus
I don't know if it is possible to create nested lists with this manner. you can test it. Let me know if it is possible.