Sharing objects between notebook tabs. 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.
Hubble
In need of some credit
In need of some credit
Posts: 6
Joined: Sun Jan 13, 2019 5:52 pm

Re: Sharing objects between notebook tabs.

Post by Hubble » Fri Jan 18, 2019 5:11 pm

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, such as a reference page, and there I have a member called m_most_recent_buffer that refers to the page with the most update to date text editor.
shawnhcorey wrote:Wouldn't DocView work here?
I'm no wxWidgets expert so I can't give an opinion about the document/view framework design. I'll leave that to the experts here.
Now that I have a working program I'll close this discussion.

Thanks all the help.

Post Reply