mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-29 10:25:27 +08:00
This includes multiple tab controls and pages order and uses new wxAuiSerializer and wxAuiDeserializer notebook-specific functions. These functions are pure virtual, which may be inconvenient if the program doesn't use wxAuiNotebook at all or doesn't allow splitting or reordering their pages, as it forces to still define them in this case, but this is arguably not too burdensome and making them pure virtual helps to attract attention to the fact that they need to be implemented for saving notebook layouts. Update the sample to show how to support notebook layout serialization in the simplest possible way, by creating a separate top-level XML tag for the notebooks. It could be tidier to put information about them inside the corresponding pane tags, but doing it like this is simpler and more clear, which is important for the sample code. Closes #24950.