Site icon Python GUI

Fill Solid Shapes With .Brush

featuredimage2 4

.Brush represents the color and pattern used to fill solid shapes.

Brush encapsulates the Windows brush object (HBRUSH) and is used to fill solid shapes, such as rectangles and ellipses, with a color or pattern.

Here is the working example of the implementation of DelphiVCL.ColorBox:

[crayon-662a61f71942a360881946/]

 

To see the result, let’s run the complete script:

[crayon-662a61f719432554198028/]

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Exit mobile version