Skip to content Skip to sidebar Skip to footer

Tag: Document/View

Getting Acquainted with Document/View Framework – Simple Image Viewer

In my previous posts here and here I showed how to create a simple application which uses Document/View framework. Now I’m going to show more complex example – image viewer with scrolling and selection rectangle. As far as I can see from wxForum, implementation of selection-related functionality is some kind of complex but very useful task. So, let’s start from simple part. The simplest task here is modification of our wxDocument-related class.

Read more

Getting Acquainted with Document-View architecture – Part II – Simple Text Editor

Today we’ll dig a little bit deeper into Document/View framework provided by wxWidgets and will see how to create a simple text editor using this framework. We’ll take the source code from the previous article of this series and add some modifications. You will see below that modifications are rather simple and take almost no time. First of all we have to make wxDocTemplate to handle desired file extensions (in our case it’s TXT).

Read more