(make-object mred:testable-canvas% parent x y width height style name) -> mred:testable-canvas% object
parent : wx:frame% object or wx:panel% object
x = -1 : small integer
y = -1 : small integer
width = -1 : small integer
height = -1 : small integer
style = 0 : small integer
name = "canvas" : string
If x, y, width or height is -1, a
default position/size is selected. The default may be
platform-specific.
The style argument is a bitwise-ior combination of the following
flags:
- wx:const-border -- gives the canvas a thin border
- wx:const-hscroll -- enables horizontal scrolling
- wx:const-vscroll -- enables vertical scrolling
(Use 0 for no flags.) The wx:const-hscroll and
wx:const-vscroll flags create a canvas with an initially
inactive scrollbar. The scrollbar is activated with
set-scrollbars.
The name argument is used to associate a name with the canvas, allowing the application user to set X Windows resource values for each individual canvas.