Datalogic .NET SDK

KeybdSetMultitapDelay (Method)

 

Syntax

 

   public static Boolean KeybdSetMultitapDelay (KbdMultitapDelay DelaySetting);

 

 

Class                           : Device

Namespace                : Datalogic.API

Assembly                   : Datalogic.API.DLL

 

 

Description

Sets the delay setting used by the multitap feature when the unit is in alpha mode.

 

 

Parameters Table

 

Type

Parameter

Description

[in]

KbdMultitapDelay

DelaySetting

Holds the new multitap setting.

 

 

 

 

[returns]

Boolean

 

Returns TRUE if delay was set, FALSE otherwise.

[on error]

FALSE

 

This method will return FALSE if this method is not supported by the installed keyboard.

 

 

Example

      

       private void cbDelay_SelectedIndexChanged(object sender, System.EventArgs e)

       {

          // Store old index

         int oldIndex = (int)Device.KeybdGetMultitapDelay();

          if(oldIndex != cbDelay.SelectedIndex)

          {

             if(!Device.KeybdSetMultitapDelay((Device.KbdMultitapDelay)cbDelay.SelectedIndex))

             {

                // If there was a failure to set the delay, go

                // back to the old setting.

                MessageBox.Show("Unable to change Multitap Delay");

                cbDelay.SelectedIndex = oldIndex;

             }

          }

       }

 

 

 

See Also

Device.KbdMultitapDelay (Enum), Example #022.

 

 

Copyright © Datalogic ADC. All Right Reserved