BBjDrawPanel::drawPoint

Description

In BBj 16.0 and higher, this method draws a point at (x,y) on the BBjDrawPanel using the current pen color.

Syntax

Return Value

Method

void

drawPoint(int x, int y)

Parameters

Variable

Description

x

Horizontal location of the point.

y

Vertical location of the point.

Return Value

None.

Remarks

Technically, this draws a solidly filled circle with a diameter of the current pen width centered at (x,y). The pen position remains unchanged.

Example

rem ' BBjDrawPanel::drawPoint

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
title$ = "BBjDrawPanel::drawPoint"
window! = sysgui!.addWindow(25,25,1125,75,title$,$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
window!.setTrack(0)
window!.setFont(sysgui!.makeFont("Arial",8,0))
drawpanel! = window!.getDrawPanel()
drawpanel!.setPenColor(BBjColor.BLUE)
drawpanel!.setTextColor(BBjColor.BLUE)
drawpanel!.setFillColor(BBjColor.GREEN)
for i = 0 to 10
    x = i * 100 + 25
    w = i + 1
    drawpanel!.setPenWidth(w)
    drawpanel!.drawText(x,25,"setPenWidth("+str(w)+")")
    drawpanel!.drawPoint(x,50)
next i
process_events

eoj:
release

See Also

BBjAPI

BBjSysGui

BBjWindow

BBjDrawPanel

SET Mnemonic - Plot a Point in SYSGUI Window

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.