# ViewClicked Event

> Obsolete event that occurs when a marked hyperlink field is clicked while EnableHyperlinks is True, passing the field type code and the field contents.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > Obsolete Properties, Methods and Events > ViewClicked Event
- **330 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/viewclicked-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/viewclicked-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/viewclicked-event/llms-full.txt

---

Occurs when a marked text field for which hyperlink data has been stored, is clicked on. It occurs only if the [EnableHyperlinks](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/enablehyperlinks-property/llms-full.txt) property is set to True.

### Syntax

```vbscript
ViewClicked(FieldType, FieldContents)
```

### Parameters

| Parameter | Description |
|---|---|
| FieldType | Specifies the type of a field as an identifier. It can be one of the following values: |
| FieldContents | Is a string that represents the contents of the field. The specification depends on the field's type and on the type of the document. |

#### FieldType

| Code | Meaning |
|---|---|
| 0 - 19 | Specifies fields that represent links to text positions within the same document (RTF only). |
| 20 - 39 | Specifies buttons that represent link positions (RTF only). |
| 100 | Specifies a field that is a link to a position in the same document (HTML only). |
| 101 | Specifies a field that is a link to an external position (HTML only). |

### Data Types

| Name | Data type |
|---|---|
| FieldType | Integer |
| FieldContents | String |

### Remarks

This event is sent before a [FieldClicked](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldclicked-event/llms-full.txt) event is sent.

### See Also

- [EnableHyperlinks Property](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/enablehyperlinks-property/llms-full.txt)

---

## Nearby

- **Previous:** [TextImport Method](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/textimport-method/llms-full.txt)
- **Next:** [ViewImagePath Property](https://docs.textcontrol.com/tx-text-control-activex/reference/obsolete-members/viewimagepath-property/llms-full.txt)
