Beispiel #1
0
        /// <summary>
        /// 滚动按钮触摸滚动事件
        /// </summary>
        /// <param name="sender">调用者</param>
        /// <param name="touchInfo">触摸信息</param>
        protected void scrollButtonTouchWheel(object sender, FCTouchInfo touchInfo)
        {
            FCTouchInfo newTouchInfo = touchInfo.clone();

            newTouchInfo.m_firstPoint  = TouchPoint;
            newTouchInfo.m_secondPoint = TouchPoint;
            onTouchWheel(newTouchInfo);
        }
Beispiel #2
0
        /// <summary>
        /// 控件触摸滚轮滚动方法
        /// </summary>
        /// <param name="touchInfo">触摸信息</param>
        public virtual void onControlTouchWheel(FCTouchInfo touchInfo)
        {
            FCGrid grid = Grid;

            if (m_control != null && grid != null)
            {
                FCTouchInfo newTouchInfo = touchInfo.clone();
                newTouchInfo.m_firstPoint  = grid.pointToControl(m_control.pointToNative(touchInfo.m_firstPoint));
                newTouchInfo.m_secondPoint = grid.pointToControl(m_control.pointToNative(touchInfo.m_secondPoint));
                grid.onTouchWheel(newTouchInfo);
            }
        }
Beispiel #3
0
 /// <summary>
 /// 触摸滚轮方法
 /// </summary>
 /// <param name="touchInfo">触摸信息</param>
 public override void onTouchWheel(FCTouchInfo touchInfo)
 {
     base.onTouchWheel(touchInfo);
     if (LinesCount <= 1)
     {
         if (m_dropDownMenu != null)
         {
             FCTouchInfo newTouchInfo = touchInfo.clone();
             newTouchInfo.m_firstPoint  = m_dropDownMenu.TouchPoint;
             newTouchInfo.m_secondPoint = m_dropDownMenu.TouchPoint;
             m_dropDownMenu.onTouchWheel(newTouchInfo);
         }
     }
 }