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