# MouseUp Event

> Occurs when the user releases a mouse button over a TXStatusBar, passing the button, the SHIFT, CTRL and ALT state and the X and Y position in the status bar.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXStatusBar > MouseUp Event
- **355 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/mouseup-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/mouseup-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/mouseup-event/llms-full.txt

---

Occurs when the user releases a mouse button.

### Syntax

```vbscript
TXStatusBar.MouseUp(Button, Shift, X, Y)
```

### Parameters

| Parameter | Description |
|---|---|
| Button | Informs which button is pressed. Possible values are the following: |
| Shift | Informs about the state of the SHIFT, CTRL and ALT keys at the time of the event. It is the sum of one or more of the following values: |
| X,Y | Specifies the current location of the mouse pointer. The coordinates are relative to the upper-left corner of the status bar. |

#### Button

| Value | Description |
|---|---|
| 1 | The left button is pressed. |
| 2 | The right button is pressed. |
| 4 | The middle button is pressed. |

#### Shift

| Value | Description |
|---|---|
| 1 | The SHIFT key was pressed at the time of the event. |
| 2 | The CTRL key was pressed at the time of the event. |
| 4 | The ALT key was pressed at the time of the event. |

### Data Types

| Name | Data type |
|---|---|
| Button | Integer |
| Shift | Integer |
| X | Long |
| Y | Long |

### See Also

- [MouseDown Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/mousedown-event/llms-full.txt)
- [MouseMove Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/mousemove-event/llms-full.txt)
- [Programming Category: Tool Bars](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/toolbars/llms-full.txt)

---

## Nearby

- **Previous:** [MouseMove Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/mousemove-event/llms-full.txt)
- **Next:** [PageMode Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txstatusbar/pagemode-property/llms-full.txt)
