---
title: "Numpad (Basic)"
canonical: "https://docs.cuesystem.com/space/CVCGC/407633928/Numpad%20(Basic)"
format: markdown
---
# Description

The Numpad is a twelve key numeric keypad allowing to enter any number from 0 to 2 147 483 647 (maximum positive numer stored in Long type variable). Input number is displayed in display area. If button Enter is pressed two events are raised. First event delivers input number as text, second event delivers input number as number data type long. Everytime any numeric button is pushed the event OnKeyPress is raised and it delivers button code. The Numpad is available in two sizes - 200 x 300 and 160 x 240 pixels.

![image](media://086e2bd4-c16f-4f0f-aacf-c61672c7d071)

# Properties

See section [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/401178660/BasicKeyboards+Collection#Common-Properties](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/401178660/BasicKeyboards+Collection#Common-Properties) . In addition, this object uses the following properties.

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Keyboard |
| SmallSize | Boolean | Yes = 640 x 275 pixels   
No = 800 x 344 pixels | No | This property switches size between small size (160 x 240 pixels) and full size (200 x 300 pixels). |
| PasswordMask | Boolean | Yes   
No | False | If Yes the input characters are masked by symbol *. |

# Functions

See section [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/401178660/BasicKeyboards+Collection#Common-Functions](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/401178660/BasicKeyboards+Collection#Common-Functions) . In addition, this object uses the following functions.

## SetPasswordMask 

This function sets property PasswordMask to newpasswordmask value. Function returns True.

#### Syntax

```visualbasic
Function SetPasswordMask(newpasswordmask As Boolean) As Boolean
```

## GetPasswordMask

This function returns the current value of property PasswordMask.

#### Syntax

```visualbasic
Function GetPasswordMask() As Boolean
```

# Events

## OnEnter 

This event is raised whenever button Enter is pushed. It returns input text in the parameter keypadtext and id which was set by function ShowObject().

#### Syntax

```visualbasic
Event OnEnter As Process(keypadtext As Text, id As Long)
```

## OnEnterNumber 

This event is raised whenever button Enter is pushed. It returns input number in the parameter keypadnumber and id which was set by function ShowObject().

#### Syntax

```visualbasic
Event OnEnterNumber As Process(keypadnumber As Long, id As Long)
```

## OnKeyPress 

This event is raised whenever any button is pushed. It returns key in the parameter keytext and id which was set by function ShowObject().

Parameter keytext returns

- “C“ for button Clear
- Printable characters for rest of buttons

#### Syntax

```visualbasic
Event OnKeyPress As Process(keytext As Text, id As Long)
```