コード例 #1
0
 public override bool ProcessMouse(MouseInfo info)
 {
     if (!controlsContainer.ProcessMouse(info))
     {
         return(base.ProcessMouse(info));
     }
     return(true);
 }
コード例 #2
0
        public override bool ProcessMouse(MouseInfo info)
        {
            // Check the scroll bar for mouse info first. If mouse not handled by scroll bar, then..
            if (!controlsContainer.ProcessMouse(info))
            {
                // Process this console normally.
                return(base.ProcessMouse(info));
            }

            // If we get here, then the mouse was over the scroll bar.
            return(true);
        }