Datalogic .NET SDK

GetTouchScreenEnable (Method)

 

Syntax

 

   public static Boolean GetTouchScreenEnable (out Boolean enabled);

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Get the status of the touch screen.

 

 

Parameters Table

 

Type

Parameter

Description

[out]

Boolean

enabled

The value is set to TRUE if the touch screen is enabled, FALSE if it is disabled.

 

 

 

 

[returns]

Boolean

 

 

If the status is successfully retrieved then TRUE is returned, else FALSE is returned.

[on error]

FALSE

 

-

 

 

Example

 

        private void btnTouch_Click(object sender, EventArgs e)

        {

            bool b = Device.SetTouchScreenEnable(false);

            b = Device.GetTouchScreenEnable(out bTouchState);

            txtTouchStatus.Text = bTouchState.ToString() + ". Wait...";

 

            // pause

            for (int i = 0; i < 100000000; i++) { };

 

            b = Device.SetTouchScreenEnable(true);

            b = Device.GetTouchScreenEnable(out bTouchState);

            txtTouchStatus.Text = bTouchState.ToString();

 

        }

 

 

 

 

See Also

Example #026.

 

Copyright © Datalogic ADC. All Right Reserved