RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomOutline.KeyPress Method

Provides special processing when a key is pressed.

Pascal
procedure KeyPress(var Key: Char); override;
C++
virtual __fastcall KeyPress(Char Key);

KeyPress is called automatically after the user presses a key but before it is released. After calling the inherited method, which generates an OnKeyPress event, KeyPress processes the following characters :

Key 
Behavior 
+  
Expands the selected node.  
-  
Collapses the selected node.  
*  
Fully expands the outline.  

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!