Freigeben über


AutoShow Property

AutoShow Property

Gets or sets a Boolean value that indicates whether the pen input panel appears when focus is set on the attached control by using the pen.

Declaration

[C++]

[propput] HRESULT AutoShow (
    [in] VARIANT_BOOL Show);
[propget] HRESULT AutoShow (
    [out, retval] VARIANT_BOOL *Show);

[Microsoft® Visual Basic® 6.0]

Public Property Get AutoShow() as Boolean
Public Property Let AutoShow ( _
    Show as Boolean)

Property Value

VARIANT_BOOL Whether the pen input panel appears when focus is set by using the pen.

TRUE Default. The pen input panel appears when focus is set using the pen.
FALSE The pen input panel's appearance is controlled by the Visible property, rather than by whether or not the attached control has focus.

This property is read/write.

Remarks

When the AutoShow property is set to TRUE, Tablet PC Input Panel does not show until the Visible property is set to TRUE. At this point, Input Panel is displayed but no hover target is shown.

Return Value

HRESULT value Description
S_OK Success.
E_FAIL An unspecified error occurred.

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 disables automatic activation of the pen input panel by setting the AutoShow property to FALSE.

'Declare a new PenInputPanel object
Dim thePenInputPanel As PenInputPanel

' Create the PenInputPanel
Set thePenInputPanel = New PenInputPanel

' Attach the PenInputPanel to an InkEdit control
thePenInputPanel.AttachedEditWindow = InkEdit1.hWnd

' Turn off AutoShow
thePenInputPanel.AutoShow = False

Applies To