
11f.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 […]
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 […]
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: […]
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 […]
Copyright © 2025 | WordPress Theme by MH Themes