Type | Description | |||
ContextHitTestInfoEnum | A ContextHitTestInfoEnum expression that specifies the valid properties that can be accessed at current cursor location. |
The following sample changes the color of the task's frame, when the user right clicks the control:
Private Sub G2Host1_Context() With G2Host1 If (.HostContext.HitTest And exHTValidBar) Then .Host.Items.ItemBar(.HostContext.Item, .HostContext.Bar, EXG2ANTTLibCtl.ItemBarPropertyEnum.exBarFrameColor) = RGB(255, 0, 0) End If End With End Sub