9d. wxWidgets – wxGrid
OVERVIEW wxGrid sets up a grid with rows and columns, much like a spreadsheet and then add text to each of the cells. That is [...]
View Article10a. wxWidgets – wxTextDrop
OVERVIEW In the sample code below, we setup two wxListCtrl widgets. One of them is filled with string items. The other is empty. We can [...]
View Article10.wxWidgets – Drag & Drop
OVERVIEW wxWidgets provides functionality to do drag and drop between its various UI widgets. One widget is designated as the source and another widget is [...]
View Article10b. wxWidgets – wxFileDrop
OVERVIEW In this section we look at an example of dragging and dropping files. Unlike dragging and dropping a text object where we need a [...]
View Article11.wxWidgets – Graphics
OVERVIEW We now look at how to do 2d graphics in wxWidgets. Displaying graphics is different from displaying text – you need something called a [...]
View ArticlewxWidgets – 11a.Drawing Lines
OVERVIEW We use the DrawLine() method to draw straight lines on the screen. All GDI methods work by overriding the wxEVT_PAINT method. The DrawLine method [...]
View Article11b.wxWidgets – Drawing Text
OVERVIEW Drawing text is similar to drawing lines, except here we pass a string as an argument along with the x,y coordinates of where it [...]
View Article11c.wxWidgets – Drawing Points
OVERVIEW DrawPoint() is the simplest GDI function as it draws a point at the given x,y coordinates. In the sample code below, we draw 5000 [...]
View Article11d.wxWidgets – The Pen Object
OVERVIEW All drawing is done by the wxPen object. A pen object can configure color, width and style . Styles can be as shown below [...]
View Article11e. wxWidgets – Regions
OVERVIEW Regions are used to change colors in certain areas of the screen by defining different regions and using one of the 4 operations available: [...]
View Article11f.wxWidgets – Gradient
OVERVIEW A Gradient is a gradual transition in a color from one shade to another. This is useful for complex coloring and effects. wxWidgets provides [...]
View Article11g.wxWidgets – Shapes
OVERVIEW Apart from the basic rectangles and lines, there are more complex shapes which can be drawn: Ellipse, Rounded Rectangle, Arc, Circle, Splines and Polygons. [...]
View Article12.wxWidgets – Creating a Custom Widget
OVERVIEW We now look at how to create a custom widget. A custom widget is something which adds in a custom UI which can be [...]
View Article13.wxWidgets – Non-GUI Objects and Classes
OVERVIEW In this section, we look at some secondary objects and features available in wxWidgets which are not actually connected with GUI creation. However they [...]
View Article13a. wxWidgets – Character Buffer
OVERVIEW Character buffers are used to store buffers in memory for further processing or transferring to other objects. wxWidgets has wxMemoryBuffer which deals with raw [...]
View Article13b. wxWidgets – Stream Classes
OVERVIEW In this section we look at stream classes. wxWidgets has a good number of stream classes for raw input, output, file handling, text handling [...]
View Article13c. wxWidgets – Multithreading
OVERVIEW Multi-threading is a complex topic and it requires a good amount of usage before one can get familiar with it. Here we are only [...]
View Article13d. wxWidgets – wxConfig Usage
OVERVIEW The purpose of config classes in wxWidgets is to store various information and data which can be retrievable later on. Config data can be [...]
View Article13e. wxWidgets – Persistent Objects
OVERVIEW Persistent objects are widgets in wxWidgets which have the ability to save and restore their visual state between different program invocations. For instance, if [...]
View Article13f. wxWidgets – Regular Expressions
OVERVIEW Regular expressions is a very complex subject and it is used in a lot of languages. We cannot go into the details of how [...]
View Article