Hi, all
I'm newer for wxWidgets, and some of my data should be show is a two tiers tree structured. So I'm finding some ctrls like outlook style vertical menu.
I tried to show them with TreeCtrl, but not so good.
Any idea? Thanks.
is there Outlook style Vertical menu Control with wxWidgets? Topic is solved
Re: is there Outlook style Vertical menu Control with wxWidgets?
I'm not quite sure what you mean with "vertical menu". Do you mean ribbons? If yes, check the "ribbons" sample that comes with wxWidgets.
http://docs.wxwidgets.org/trunk/classwx_ribbon_bar.html
http://docs.wxwidgets.org/trunk/classwx_ribbon_bar.html
Use the source, Luke!
Re: is there Outlook style Vertical menu Control with wxWidgets?
Do you mean an accordion control like the one here?
(Please scroll down on that link, there are some pictures in the Readme.md).
(Please scroll down on that link, there are some pictures in the Readme.md).
wxWidgets 3.1.2, MinGW64 8.1.0, g++ 8.1.0, Ubuntu 19.04, Windows 10, CodeLite + wxCrafter
Some people, when confronted with a GUI problem, think "I know, I'll use Eclipse RCP". Now they have two problems.
Some people, when confronted with a GUI problem, think "I know, I'll use Eclipse RCP". Now they have two problems.
Re: is there Outlook style Vertical menu Control with wxWidgets?
Like this.
I forgot the version of the outlook with the menu style. So I paint it.
BTW, I can't configure/make the code on debian.
I forgot the version of the outlook with the menu style. So I paint it.
BTW, I can't configure/make the code on debian.
- Attachments
-
- vertical_menu.jpg (15.33 KiB) Viewed 3475 times
Re: is there Outlook style Vertical menu Control with wxWidgets?
I get a picture of it.
- Attachments
-
- 屏幕快照 2017-05-19 下午11.46.32.png (84.44 KiB) Viewed 3471 times
- T-Rex
- Moderator
- Posts: 1248
- Joined: Sat Oct 23, 2004 9:58 am
- Location: Zaporizhzhya, Ukraine
- Contact:
Re: is there Outlook style Vertical menu Control with wxWidgets?
https://github.com/T-Rex/wxToolBox
https://wxwidgets.info/wxtoolbox-is-now-open-source/
There is a way to host the inner controls inside the tabs.
https://wxwidgets.info/wxtoolbox-is-now-open-source/
There is a way to host the inner controls inside the tabs.
Re: is there Outlook style Vertical menu Control with wxWidgets?
Thanks.
It's an old code and seems to be throw away by author.
I tried to get it work on wxWidgets 3.0. compile succeed, but failed to run. Even I just only new a wxToolBox control.
segment fault.
It's an old code and seems to be throw away by author.
I tried to get it work on wxWidgets 3.0. compile succeed, but failed to run. Even I just only new a wxToolBox control.
segment fault.
- T-Rex
- Moderator
- Posts: 1248
- Joined: Sat Oct 23, 2004 9:58 am
- Location: Zaporizhzhya, Ukraine
- Contact:
Re: is there Outlook style Vertical menu Control with wxWidgets?
It works with 3.0. You probably running it the wrong way. You could e.g. try to debug what happens and then resolve that problem.
It's open source and you can improve the code the way you want.
It's open source and you can improve the code the way you want.
Re: is there Outlook style Vertical menu Control with wxWidgets?
https://github.com/NewPagodi/wxAccordionIt's an old code and seems to be throw away by author.
The author is regularly on this forum.
wxWidgets 3.1.2, MinGW64 8.1.0, g++ 8.1.0, Ubuntu 19.04, Windows 10, CodeLite + wxCrafter
Some people, when confronted with a GUI problem, think "I know, I'll use Eclipse RCP". Now they have two problems.
Some people, when confronted with a GUI problem, think "I know, I'll use Eclipse RCP". Now they have two problems.
Re: is there Outlook style Vertical menu Control with wxWidgets?
I build the code ok, but run failed.
build step:
1) cd build, modify CMakeLists.txt, set flags for if (LINUX). Get flags by `wx-config --libs` and `wx-config --cxxflags`
2> run cmLinux.sh
3) cd linuxDebug, run make
there are some errors in source code, fixed them.
4) cd bin/Debug, run them.
nothing responsed. After three minutes, exit on segment fault.
I discard the OnWindowCreate in wxToolBox.cpp, it can run normally.
the Original code:
#ifdef __WXGTK__
void wxToolBox::OnWindowCreate(wxWindowCreateEvent & event)
{
m_TextBox = new wxToolItemEditorTextCtrl(this, NULL);
m_TextBox->Show(false);
}
#endif
It seems the edit function can't work with gtk+, and I discard the function.
build step:
1) cd build, modify CMakeLists.txt, set flags for if (LINUX). Get flags by `wx-config --libs` and `wx-config --cxxflags`
2> run cmLinux.sh
3) cd linuxDebug, run make
there are some errors in source code, fixed them.
4) cd bin/Debug, run them.
nothing responsed. After three minutes, exit on segment fault.
I discard the OnWindowCreate in wxToolBox.cpp, it can run normally.
the Original code:
#ifdef __WXGTK__
void wxToolBox::OnWindowCreate(wxWindowCreateEvent & event)
{
m_TextBox = new wxToolItemEditorTextCtrl(this, NULL);
m_TextBox->Show(false);
}
#endif
It seems the edit function can't work with gtk+, and I discard the function.