BBjDrawPanel::setDrawMode

Description

In BBj 16.0 and higher, this method sets the BBjDrawPanel drawing mode.

Syntax

Return Value

Method

void

setDrawMode(int mode)

Parameters

Variable

Description

mode

Drawing mode, from the following list:

  • 0 = COPY mode (default)
  • 1 = OR mode
  • 2 = XOR mode (new item is XORed with the existing surface)
  • 3 = CLEAR mode
  • 4 = NOT COPY mode
  • 5 = NOT OR mode
  • 6 = NOT XOR mode
  • 7 = NOT CLEAR mode

Return Value

None .

Remarks

None.

Example

rem ' BBjDrawPanel::setDrawMode
sysgui = unt
open (sysgui)"X0"
size = 50
x = 100
y = 100
w = size * 8
h = size * 8
title$ = "BBjDrawPanel::setDrawMode"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(x,y,w,h,title$,$00090003$)
window!.setCallback(window!.ON_CLOSE,"eoj")
drawpanel! = window!.getDrawPanel()
for filltype = 0 to 7
  for drawmode = 0 to 7
    x = drawmode * size
    y = filltype * size
    drawpanel!.setDrawMode(drawmode)
    drawpanel!.setFillType(filltype)
    drawpanel!.drawRect(x,y,size,size)
  next drawmode
next filltype
process_events
eoj:
release

See Also

BBjAPI

BBjSysGui

BBjWindow

BBjDrawPanel

DRAWMODE Mnemonic - Set SYSGUI Drawing Mode

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