Type | Description | |||
Long | A Long expression that specifies the handle of the item from the current cursor location. |
The following sample toggles the item's bold attribute when the user right clicks the control:
Private Sub G2Host1_Context() With G2Host1 If (.HostContext.HitTest And exHTValidItem) Then .Host.Items.ItemBold(.HostContext.Item) = Not .Host.Items.ItemBold(.HostContext.Item) End If End With End Sub