is there Outlook style Vertical menu Control with wxWidgets?  [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.
cwall
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu May 18, 2017 6:36 am

is there Outlook style Vertical menu Control with wxWidgets?  [SOLVED]

Postby cwall » Fri May 19, 2017 12:45 pm

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: 10899
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

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

Postby doublemax » Fri May 19, 2017 1:27 pm

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
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 242
Joined: Tue Mar 19, 2013 8:52 pm

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

Postby iwbnwif » Fri May 19, 2017 1:38 pm

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.10, TDM MinGW64 5.1.0, g++ 4.8.2, Ubuntu 16.04LTS, 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: 11
Joined: Thu May 18, 2017 6:36 am

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

Postby cwall » Fri May 19, 2017 3:37 pm

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 186 times

cwall
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu May 18, 2017 6:36 am

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

Postby cwall » Fri May 19, 2017 3:48 pm

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 182 times

User avatar
T-Rex
Moderator
Moderator
Posts: 1124
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

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

Postby T-Rex » Fri May 19, 2017 11:10 pm

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: 11
Joined: Thu May 18, 2017 6:36 am

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

Postby cwall » Sat May 20, 2017 6:42 am

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: 1124
Joined: Sat Oct 23, 2004 9:58 am
Location: Zaporizhzhya, Ukraine
Contact:

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

Postby T-Rex » Sat May 20, 2017 10:07 am

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
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 242
Joined: Tue Mar 19, 2013 8:52 pm

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

Postby iwbnwif » Sat May 20, 2017 7:47 pm

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.10, TDM MinGW64 5.1.0, g++ 4.8.2, Ubuntu 16.04LTS, 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: 11
Joined: Thu May 18, 2017 6:36 am

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

Postby cwall » Wed May 24, 2017 9:04 pm

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.


Return to “C++ Development”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests