Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
90
Can be transfered the Gesture Event by Capture Property?
posted

Hello.

I’m using many UltraPictureBoxes control on Ultra Pananel, and I have faced a problem with touch screens.
When I’m trying to transfer the gesture event of UltraPictureBoxes to Ultra Pananel by Capture Property,
The gesture event of UltraPictureBoxes can't be transfered.

When the mouse event, this working is ok.
I wrote the sample when the event.

        /// <summary>
        /// Panel MouseDown Event
        /// </summary>
        private void panel_MouseDownClient(object sender, MouseEventArgs e)
        {
            if (!moving)
            {
                moving = true;
            }
        }

        /// <summary>
        /// PictureBox MouseDown Event
        /// </summary>
        private void pictureBox_MouseDownClient(object sender, MouseEventArgs e)
        {
            if (!moving)
            {
                pictureBox.Capture = false;
                panel.Capture = true;
                moving = true;
            }
        }
 
        /// <summary>
        /// Panel MouseUp Event
        /// </summary>
         private void panel_MouseUp(object sender, MouseEventArgs e)
        {
            moving = false;
        }

        /// <summary>
        /// Panel MouseMove Event
        /// </summary>
        private void panel_MouseMove(object sender, MouseEventArgs e)
        {
            if (moving)
            {
                // mouse move process
            }
        }

I want to transfer the gesture event of UltraPictureBoxes to Ultra Pananel.
Is there a solution to this issue?

Best Regard

Kazuhiro Murai

Parents
No Data
Reply
  • 23930
    Offline posted

    Hi Kazuhiro,

     

    Thank you for posting in our forums.

     

    The Capture property is a control level property which determines if the control intercepts mouse events. This property isn’t meant for gesture events and doesn’t work for them. If you want such property added to our controls for gesture events, please add a new product idea for this in our product ideas site.

     

    Please let me know if you have any additional questions.

Children