Example #1
0
 public BaseWidgetAccessible(Widget widget)
 {
     this.widget           = widget;
     widget.SizeAllocated += OnAllocated;
     widget.Mapped        += OnMap;
     widget.Unmapped      += OnMap;
     widget.FocusInEvent  += OnFocus;
     widget.FocusOutEvent += OnFocus;
     widget.AddNotification("sensitive", (o, a) => NotifyStateChange(StateType.Sensitive, widget.Sensitive));
     widget.AddNotification("visible", (o, a) => NotifyStateChange(StateType.Visible, widget.Visible));
 }
Example #2
0
 public override void EnableEvent(object eventId)
 {
     base.EnableEvent(eventId);
     if (eventId is PanedEvent)
     {
         switch ((PanedEvent)eventId)
         {
         case PanedEvent.PositionChanged:
             Widget.AddNotification("position", HandleMove); break;
         }
     }
 }