O'Reilly logo

Cross-Platform GUI Programming with wxWidgets by Stefan Csomor, Kevin Hock, Julian Smart

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 19 Working with Documents and Views

This chapter discusses how the document/view framework provided by wxWidgets can dramatically reduce the amount of code you need to write for a document-based application. It also discusses the related topic of providing undo and redo in your application, a seemingly miraculous facility that users now take for granted.

Document/View Basics

The document/view system is found in most application frameworks because it can greatly simplify the code required to build many kinds of applications.

The idea is that you can model your application primarily in terms of documents, which store data and provide GUI-independent operations upon it, and views, which display and manipulate the data. It’s similar ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required