Search found 6 matches

by Hubble
Fri Jan 18, 2019 5:11 pm
Forum: C++ Development
Topic: Sharing objects between notebook tabs.
Replies: 15
Views: 3512

Re: Sharing objects between notebook tabs.

So I have implemented the "double buffer swapping" approach. Two different panels, two different text editors. When changing pages the text of the current page (if it has a text editor) is copied into the text editor of the next page. I will be adding modes that don't require a text editor...
by Hubble
Wed Jan 16, 2019 6:32 pm
Forum: C++ Development
Topic: Sharing objects between notebook tabs.
Replies: 15
Views: 3512

Re: Sharing objects between notebook tabs.

Let's say there are two wxPanel derived classes, one called EditModePanel and the Other DebugModePanel each having a pointer to the same text editor. They would have to display the text editor when active. If I understand correctly, in your method are a number of sets containing windows each corresp...
by Hubble
Mon Jan 14, 2019 7:43 pm
Forum: C++ Development
Topic: Sharing objects between notebook tabs.
Replies: 15
Views: 3512

Re: Sharing objects between notebook tabs.

Hi, Those classes are not part of the main wx distribution anymore. You're right. Looking through wx source I can't find a tabs.h file which should contain all the relevant classes. I had a quick look through notebook.h and other related files. I can't figure out how notebook implements tabs. As do...
by Hubble
Mon Jan 14, 2019 3:56 pm
Forum: C++ Development
Topic: Sharing objects between notebook tabs.
Replies: 15
Views: 3512

Re: Sharing objects between notebook tabs.

Ok, I was going to post a reply but something went wrong so I'll make this short. After searching around I found a set off classes relating to tabs - wxTabbedPanel , wxPanelTabView , wxTabControl... . However, I can't find any documentation on these classes on the official website. I found a small t...
by Hubble
Mon Jan 14, 2019 12:58 pm
Forum: C++ Development
Topic: Sharing objects between notebook tabs.
Replies: 15
Views: 3512

Re: Sharing objects between notebook tabs.

Keeping everything on one panel is good idea and it works well for my design. I have implemented my application as a state machine that allows me to easily add widgets that hide/show themselves upon changing state. But is this still possible? The wx documentations states that a panel cannot be added...
by Hubble
Sun Jan 13, 2019 6:59 pm
Forum: C++ Development
Topic: Sharing objects between notebook tabs.
Replies: 15
Views: 3512

Sharing objects between notebook tabs.

I'm creating an IDE program that allows the user to write, compile and debug code. There are two modes - edit mode and debug mode - which can can selected using tabs from the wxNotebook class. There are features that both modes share, like the compile button. I thought that one way to implement this...