Exemplo n.º 1
0
        private void panel_Time_Paint(object sender, PaintEventArgs e)
        {
            //以下、モーションのコントロール描画処理
            ClsDatMotion clMotion = ClsSystem.GetSelectMotion();

            if (clMotion != null)
            {
                int inSelectFrameNo = (int)this.numericUpDown_NowFlame.Value;
                ClsSystem.SetSelectFrameNo(inSelectFrameNo);

                clMotion.DrawTime(e.Graphics, this.panel_Time.Width, this.panel_Time.Height);
            }
        }
Exemplo n.º 2
0
        private void panel_Time_MouseDown(object sender, MouseEventArgs e)
        {
            ClsDatMotion clMotion = ClsSystem.GetSelectMotion();

            if (clMotion == null)
            {
                return;
            }

            int inFrameNo = this.GetFrameNoFromPositionX(e.X);
            int inLineNo  = this.GetLineNoFromPositionY(e.Y);

            //以下、現在位置を設定する処理
            ClsSystem.SetSelectFromLineNo(inLineNo);
            ClsSystem.SetSelectFrameNo(inFrameNo);

            //以下、フレーム選択処理
            if (inFrameNo <= this.numericUpDown_MaxFrame.Value)
            {
                this.numericUpDown_NowFlame.Value = inFrameNo;
            }
            else
            {
                this.numericUpDown_NowFlame.Value = this.numericUpDown_MaxFrame.Value - 1;
            }

            /* 一旦コメントアウト 2017/01/31 comment out by yoshi
             * if (e.Button == MouseButtons.Left)
             * {
             *  //以下、座標情報初期化処理
             *  mMouseDownL = true;
             *  mSelect_Pos_End.X = 0;
             *  mSelect_Pos_End.Y = 0;
             * }
             */

            /* 一旦コメントアウト 2017/01/31 comment out by yoshi
             * //if (e.Button == MouseButtons.Right) { mMouseDownR = true; }
             * //if (e.Button == MouseButtons.Middle) { mMouseDownM = true; }
             * mSelect_Pos_Start.X = e.X / FormControl.CELL_WIDTH;
             * mSelect_Pos_Start.Y = e.Y / FormControl.CELL_HEIGHT;
             */

            //以下、コントロール更新処理
            this.RefreshControl();
            this.panel_Control.Refresh();
            this.panel_Time.Refresh();
            this.mFormMain.Refresh();
        }