11d.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 […]
OVERVIEW All drawing is done by the wxPen object. A pen object can configure color, width and style . Styles can be as shown below […]
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 […]
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 […]
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 […]
OVERVIEW We now look at how to do 2d graphics in wxWidgets. Displaying graphics is different from displaying text – you need something called a […]
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 […]
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 […]
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 […]
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 […]
OVERVIEW wxWidgets provides a class called wxScrolled<T> which is a template for specialized scrolling classes. It has two implementations of this class: wxScrolledCanvas wxScrolledWindow In […]
Copyright © 2024 | WordPress Theme by MH Themes