Hide Table of Contents
OnKeystroke Method (IPropertyManagerPage2Handler9)

Processes a keystroke that occurred on this PropertyManager page.

.NET Syntax

Visual Basic (Declaration) 
Function OnKeystroke( _
   ByVal Wparam As System.Integer, _
   ByVal Message As System.Integer, _
   ByVal Lparam As System.Integer, _
   ByVal Id As System.Integer _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IPropertyManagerPage2Handler9
Dim Wparam As System.Integer
Dim Message As System.Integer
Dim Lparam As System.Integer
Dim Id As System.Integer
Dim value As System.Boolean
 
value = instance.OnKeystroke(Wparam, Message, Lparam, Id)
C# 
System.bool OnKeystroke( 
   System.int Wparam,
   System.int Message,
   System.int Lparam,
   System.int Id
)
C++/CLI 
System.bool OnKeystroke( 
&   System.int Wparam,
&   System.int Message,
&   System.int Lparam,
&   System.int Id
) 

Parameters

Wparam
wparam argument from Windows processing; indicates the keystroke that occurred

NOTE:
From the standard set of virtual keys from Windows. Refer to the Virtual Key Code information from Microsoft documentation; for example, the Alt key is VK_MENU.
Message

Message being processed by Windows; one of these values:

 

  • WM_KEYDOWN 256 or 0x100

  • WM_KEYUP 257 or 0x101

  • WM_CHAR 258 or 0x102

  • WM_DEADCHAR 259 or 0x103

  • WM_SYSKEYDOWN 260 or 0x104

  • WM_SYSKEYUP 261 or 0x105

  • WM_SYSCHAR 262 or 0x106

  • WM_SYSDEADCHAR 263 or 0x107

Lparam
lparam argument from Windows processing; bitmask containing various pieces of information; dependent on specific message
Id
ID of the control that has focus when the keystroke was made; this is the ID specified when the control was created in IPropertyManagerPage2::AddControl or IPropertyManagerPage2::IAddControl or IPropertyManagerPage2::AddGroupBox or IPropertyManagerPage2::IAddGroupBox.

Return Value

True indicates that the keystroke has been handled by the add-in and SOLIDWORKS should not continue to try to process it, false indicates that the keystroke has not been handled by the add-in and SOLIDWORKS will continue to try to process it

Example

See the IPropertyManagerPage2Handler9 examples.
 

See Also

Availability

SOLIDWORKS 2012 FCS, Revision Number 20.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   OnKeystroke Method (IPropertyManagerPage2Handler9)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2024 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.