예제 #1
0
                //! \brief Update this object with the current state of the pointer.
                public void Update()
                {
                    uint buttons;
                    uint object_id;
                    uint cmp_id;

                    object_id = GetPointerInfo(out Pos.X, out Pos.Y, out buttons, out cmp_id);

                    Buttons = (ButtonState)buttons;

                    if (ToolboxWindow)
                    {
                        Window = CreateInstance <Window> (object_id);
                        Gadget = Window != null?Window.GetGadget(cmp_id) : null;

                        WindowHandle = 0;
                        IconHandle   = -1;
                    }
                    else
                    {
                        Window       = null;
                        Gadget       = null;
                        WindowHandle = object_id;
                        IconHandle   = (int)cmp_id;
                    }
                }
예제 #2
0
                public CaretEventArgs(IntPtr unmanagedEventData) : base(unmanagedEventData)
                {
                    uint cmp_id;

                    Window = WimpToToolbox(WindowHandle,
                                           IconHandle,
                                           out cmp_id);
                    Gadget = (Window != null) ? Window.GetGadget(cmp_id) : null;
                }
예제 #3
0
                /*! \brief Update this object with the current state of the caret.  */
                public override void Update()
                {
                    base.Update();
                    uint cmp_id;

                    Window = WimpToToolbox(WindowHandle,
                                           IconHandle,
                                           out cmp_id);
                    Gadget = (Window != null) ? Window.GetGadget(cmp_id) : null;
                }