is there Outlook style Vertical menu Control with wxWidgets? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
cwall
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu May 18, 2017 6:36 am

is there Outlook style Vertical menu Control with wxWidgets?

Post by cwall »

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.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: is there Outlook style Vertical menu Control with wxWidgets?

Post by doublemax »

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
Use the source, Luke!
iwbnwif
Super wx Problem Solver
Super wx Problem Solver
Posts: 282
Joined: Tue Mar 19, 2013 8:52 pm

Re: is there Outlook style Vertical menu Control with wxWidgets?

Post by iwbnwif »

Do you mean an accordion control like the one here?

(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.
cwall
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu May 18, 2017 6:36 am

Re: is there Outlook style Vertical menu Control with wxWidgets?

Post by cwall »

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.
Attachments
vertical_menu.jpg
vertical_menu.jpg (15.33 KiB) Viewed 3475 times
cwall
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu May 18, 2017 6:36 am

Re: is there Outlook style Vertical menu Control with wxWidgets?

Post by cwall »

I get a picture of it.
Attachments
屏幕快照 2017-05-19 下午11.46.32.png
屏幕快照 2017-05-19 下午11.46.32.png (84.44 KiB) Viewed 3471 times
User avatar
T-Rex
Moderator
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?

Post by T-Rex »

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.
cwall
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu May 18, 2017 6:36 am

Re: is there Outlook style Vertical menu Control with wxWidgets?

Post by cwall »

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.
User avatar
T-Rex
Moderator
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?

Post by T-Rex »

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.
iwbnwif
Super wx Problem Solver
Super wx Problem Solver
Posts: 282
Joined: Tue Mar 19, 2013 8:52 pm

Re: is there Outlook style Vertical menu Control with wxWidgets?

Post by iwbnwif »

It's an old code and seems to be throw away by author.
https://github.com/NewPagodi/wxAccordion

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.
cwall
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu May 18, 2017 6:36 am

Re: is there Outlook style Vertical menu Control with wxWidgets?

Post by cwall »

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.
Post Reply