











<SCRIPT LANGUAGE="JavaScript">

var origStatus = window.defaultStatus.substring(0,window.defaultStatus.length);

function Set() {
  window.defaultStatus = "wxMedia Class Reference Manual";
}

function ReSet() {
  window.defaultStatus = origStatus;
}
</SCRIPT>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1 (Feb 5, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>wxMediaCanvas::OnFocus</TITLE>
<META NAME="description" CONTENT="wxMediaCanvas::OnFocus">
<META NAME="keywords" CONTENT="wxme">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="wxme.css">
</HEAD>
<BODY LANG="EN" onLoad="Set()" onUnload="ReSet()">
 <A NAME="tex2html4656" HREF="node176.html"><IMG SRC="../icons/l_arrow.gif" WIDTH=29 HEIGHT=30 BORDER=0 ALIGN=BOTTOM ALT=previous></A> <A NAME="tex2html4662" HREF="node167.html"><IMG SRC="../icons/u_arrow.gif" WIDTH=30 HEIGHT=29 BORDER=0 ALIGN=BOTTOM ALT=up></A> <A NAME="tex2html4664" HREF="node178.html"><IMG SRC="../icons/r_arrow.gif" WIDTH=29 HEIGHT=30 BORDER=0 ALIGN=BOTTOM ALT=next></A> &#160;&#160;&#160; <A NAME="tex2html4666" HREF="node2.html"><IMG SRC="../icons/contents.gif" WIDTH=80 HEIGHT=30 BORDER=0 ALIGN=BOTTOM ALT=contents></A> <A NAME="tex2html4667" HREF="node550.html"><IMG SRC="../icons/index.gif" WIDTH=80 HEIGHT=30 BORDER=0 ALIGN=BOTTOM ALT=index></A><BR>
<B> Next:</B> <A NAME="tex2html4665" HREF="node178.html">wxMediaCanvas::OnKillFocus</A>
<B>Up:</B> <A NAME="tex2html4663" HREF="node167.html">wxMediaCanvas: wxCanvas</A>
<B> Previous:</B> <A NAME="tex2html4657" HREF="node176.html">wxMediaCanvas::OnEvent</A>
<BR> <P>
<H2><A NAME="SECTION004510000000000000000">wxMediaCanvas::OnFocus</A></H2>
<P>
 void <B>OnFocus</B><A NAME=2085>&#160;</A>(Bool <I>on</I>)
<P>
This method is called by the default <B>OnSetFocus</B> and
<B>OnKillFocus</B>. It enables or disables the caret in the
view's buffer, if there is one. Override this method for
your own use.
<P>
<BR> <HR>
<P><ADDRESS>
<A HREF="http://www.cs.rice.edu/CS/PLT/">PLT</A>
</ADDRESS>
</BODY>
</HTML>
