Inheritance: IUIWindow
Exemplo n.º 1
0
        public virtual void AttachToWindow(UIWindow aWindow)
        {
            fUIWindow = aWindow;

            AttachForKeyboard(fUIWindow);
            AttachForMouse(fUIWindow);
        }
Exemplo n.º 2
0
        protected virtual void AttachForMouse(UIWindow aWindow)
        {
            // Basic mouse events
            aWindow.MouseDownEvent += new MouseDownDelegate(OnMouseDown);
            aWindow.MouseMoveEvent += new MouseMoveDelegate(OnMouseMove);
            aWindow.MouseUpEvent += new MouseUpDelegate(OnMouseUp);

            // Mouse wheel related
            aWindow.MouseWheelEvent += new MouseWheelDelegate(OnMouseWheel);

            // Mouse tracking events
            aWindow.MouseEnterEvent += new MouseEnterDelegate(OnMouseEnter);
            aWindow.MouseLeaveEvent += new MouseLeaveDelegate(OnMouseLeave);
        }
Exemplo n.º 3
0
        protected virtual void AttachForKeyboard(UIWindow aWindow)
        {

        }