# ObjectRightClicked Event

> Occurs when an object in TXTextControl has been clicked with the right mouse button, passing its ObjectId; the ObjectCurrent property is updated with it.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > ObjectRightClicked Event
- **211 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectrightclicked-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectrightclicked-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectrightclicked-event/llms-full.txt

---

Occurs when an object has been clicked on with the right mouse button.

Introduced: 12.0.

### Syntax

```vbscript
ObjectRightClicked(ObjectId)
```

### Parameters

| Parameter | Description |
|---|---|
| ObjectId | Is the identifier of the object that has been clicked. |

### Data Types

| Name | Data type |
|---|---|
| ObjectId | Integer |

### Remarks

The value of the [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property is updated with the identifier given through the ObjectId parameter.

### See Also

- [ObjectClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectclicked-event/llms-full.txt)
- [ObjectDblClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectdblclicked-event/llms-full.txt)
- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [ObjectPrint Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectprint-event/llms-full.txt)
- **Next:** [ObjectScaleX Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectscalex-property/llms-full.txt)
