VisibleChanged Event
VisibleChanged Event |
Occurs when the PenInputPanel object has shown or hidden itself.
Declaration
[C++]
HRESULT VisibleChanged (
[in] VARIANT_BOOL NewVisibility
);
[Microsoft® Visual Basic® 6.0]
Public Event VisibleChanged ( _
NewVisibility as Boolean, _
);
Parameters
NewVisibility
[in] Whether the PenInputPanel object has become visible.
Remarks
The VisibleChanged event is not raised for the Tablet PC Input Panel hover target.
Example
[Visual Basic 6.0]
This Visual Basic 6.0 example creates a PenInputPanel object, thePenInputPanel and attaches it to an InkEdit control, InkEdit1. It adds a VisibleChanged event handler, VisibleChanged_Event, to the form for the PenInputPanel. In the event handler, if the pen input panel is visible, its position is changed to screen coordinates 100, 100 by calling the MoveTo.
' Declare a new PenInputPanel object
Dim WithEvents thePenInputPanel As PenInputPanel
Private Sub Form_Load()
' Create the PenInputPanel
Set thePenInputPanel = New PenInputPanel
' Attach the PenInputPanel to an InkEdit control
thePenInputPanel.AttachedEditWindow = InkEdit1.hWnd
End Sub
Private Sub thePenInputPanel_VisibleChanged( _
ByVal NewVisibility As Boolean)
' Move the pen input panel to screen position 100, 100
thePenInputPanel.MoveTo 100, 100
End Sub
Applies To
- PenInputPanel Class (Automation Library Reference)