Home > Language Reference > Classes > Display

Oval Method

Draws a circle or ellipse.

Syntax

Public Sub Oval(ByVal x1 As Integer, ByVal y1 As Integer, ByVal x2 As Integer, ByVal y2 As Integer, Optional ByVal eMode As HbRectangle = hbRectFillSolid+hbRectBorderSolid)

ParameterDescription
x1X-coordinate of the top left corner of the circumscribing rectangle.
y1Y-coordinate of the top left corner of the circumscribing rectangle.
x2X-coordinate of the bottom right corner of the circumscribing rectangle.
y2Y-coordinate of the bottom right corner of the circumscribing rectangle.
eModeDrawing options.

Remarks

The Oval method draws a circle or ellipse within the rectangle specified by the x1, y1, x2 and y2 coordinates.

The eMode parameter specifies the drawing options, and should be a combination of the following group of constants:

To indicate the fill color, specify one of the following constants:

ConstantValueDescription
hbRectFillNone&H0000No fill.
hbRectFillSolid&H0001The drawing is filled with the current background color, previously specified by the BackColor property.
hbRectFillPattern&H0002The drawing is filled with the current pattern, previously specified by the Pattern property.

To indicate the border type, specify one of the following constants:

ConstantValueDescription
hbRectBorderNone&H0000No border.
hbRectBorderSolid&H0010The border is drawn with the foreground color, previously specified by the ForeColor property.

This method enqueues the drawing instruction in the graphics instruction buffer. The arc is only drawn when the buffer is emptied, either because it is full or because the Flush method is called.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A