Function Window.setCaptureWidget

void setCaptureWidget(
  Widget w,
  MouseEvent event
);