Dabo supports the drawing of basic shapes on any of its UI surfaces. This is done by calling one of several drawing primitives:

All of these methods return an object reference that can later be used to modify the drawing's appearance. Each method can also take additional parameters that control how the shape is drawn. They are (with their default values):


Besides shapes, Dabo suports drawing of bitmaps by calling:

This method also returns an object reference that can later be used to modify the drawing's appearance. It can also take additional parameters that control how the shape is drawn. They are (with their default values):


You can also draw text objects at any angle and in any font by calling:

Like the other methods, this returns a reference to an object you can then manipulate to change the text's appearance. There are several other parameters you can pass that affect the text:


You can also draw gradients that vary continuously from one color to another either horizontally or vertically. The syntax is:

Obviously, if you don't specify the colors, nothing will get drawn. You can specify orientation in several ways, as long as the first letter is H or V in either upper or lower case. The default size of the gradient is the entire control; you can change that by specifying any of the following optional parameters:


So now that you've drawn a shape and have a reference to that shape, what can you do with it? Well, every shape supports these methods:

These should be self-explanatory. Shapes are drawn in the order they are called, and if they overlap, the later shape draws over any earlier shapes. If you decide that you want to change that order, you can call these methods.


Draw objects also have several properties. Not all will be relevant for all shapes (e.g., Radius only applies to circles). Here are the properties for draw objects: