public void SetFocus() { if (CurrentFocus != this) { if (CurrentFocus != null) CurrentFocus.UnlockFocus (); CurrentFocus = this; LockFocus (); } }
public object CreateContext(Widget w) { ContextInfo c = new ContextInfo (); c.Path = new NSBezierPath (); return c; }