Exemple #1
0
        public static void add(Control ctrl, on_wheel_func on_wheel)
        {
            var filter = new wheel_filter(ctrl, on_wheel);

            Application.AddMessageFilter(filter);
            ctrl.Disposed += (s, e) => Application.RemoveMessageFilter(filter);
        }
Exemple #2
0
 public static void add(Control ctrl, on_wheel_func on_wheel)
 {
     var filter = new wheel_filter(ctrl, on_wheel);
     Application.AddMessageFilter(filter);
     ctrl.Disposed += (s, e) => Application.RemoveMessageFilter(filter);
 }
Exemple #3
0
 public wheel_filter(Control ctrl, on_wheel_func on_wheel)
 {
     ctrl_ = ctrl;
     on_wheel_ = on_wheel;
 }
Exemple #4
0
 public wheel_filter(Control ctrl, on_wheel_func on_wheel)
 {
     ctrl_     = ctrl;
     on_wheel_ = on_wheel;
 }