void wxMediaCanvas (wxFrame *parent, int x = -1, int y = -1, int width = -1, int height = -1, char *name = ``'', long style = 0, int scrollsPerPage = 100, wxMediaBuffer *media = NULL)
Most of the parameters here are as with wxCanvas. The last three parameters are specific to wxMediaCanvas.
The style flag can be any combination of
While vertical scrolling of editor buffers is based on lines, horizontal scrolling and pasteboard vertical scrolling is based on a fixed number of steps per horizontal page. scrollsPerPage sets this value.
You can give the canvas a buffer to view on creation in the media
parameter. If this is NULL, then you will need to call
wxMediaCanvas::SetMedia (section
) later
to set the buffer.