documentation: update OnKeyPress, OnUTF8KeyPress

git-svn-id: trunk@16521 -
This commit is contained in:
paul 2008-09-10 09:36:50 +00:00
parent 3374c666b8
commit bcdf40958c

View File

@ -10335,12 +10335,13 @@ If the TabStop is True, the control is in the tab order. If TabStop is False, th
</element>
<!-- property Visibility: public -->
<element name="TWinControl.OnKeyPress">
<short>OnKeyPress - event controller for a key being pressed while the control has focus</short>
<short>OnKeyPress - event controller for a key being pressed while the control has focus. To properly handle national chars use UTF8KeyPress instead.</short>
<descr>
<p>
<var>OnKeyPress</var>
- event controller for a key being pressed while the control has focus</p>
<p>Differs from <link id="#lcl.Controls.TWinControl.OnKeyDown">OnKeyDown</link> in that the key needs to become pressed while the control has focus; with <var>OnKeyDown</var> the key may have already been down when the control received focus.</p>
<p>Note: we recomend you to use OnUTF8KeyPress to prevent data lost. National chars are converted from UTF8 to the system encoding in OnKeyPressEvent. This can cause a data lost if symbol cannot be converted. OnUTF8KeyPress does not perform this convertion.</p>
</descr>
</element>
<!-- property Visibility: public -->
@ -10381,8 +10382,11 @@ If the TabStop is True, the control is in the tab order. If TabStop is False, th
</element>
<!-- property Visibility: public -->
<element name="TWinControl.OnUTF8KeyPress">
<short/>
<descr/>
<short>UTF8KeyPress - event controller for a key being pressed while the control has focus.</short>
<descr>
<p><var>OnUTF8KeyPress</var> - event controller for a key being pressed while the control has focus</p>
<p>Differs from <link id="#lcl.Controls.TWinControl.OnKeyPress">OnKeyDown</link> in that the char does not converts to the system encoding</p>
</descr>
<seealso/>
</element>
<!-- property Visibility: public -->