previous up next     contents index
Next: wxMediaEdit: wxMediaBuffer Up: wxMediaCanvas: wxCanvas Previous: wxMediaCanvas::setLazyRefresh

wxMediaCanvas::SetMedia

  void SetMedia (wxMediaBuffer *edit, Bool redraw = TRUE)

Sets the buffer that is viewed by the canvas. Unless the buffer is changed again, this buffer will be destroyed when the canvas is destroyed. If redraw is not TRUE, then the buffer is not immediately drawn; in this case, something must force a redraw later (e.g., a call to the OnPaint method).



PLT