|
RCD_ Writing Direction
RCD_ values are used in the wRcDirect member of the global RC structure. The RC structure is passed to a version 1.0 recognizer in the lpRC argument of InitRC and informs the recognizer of the writing direction. To set the writing
direction differently than the default direction, call SetGlobalRC with the desired RCD_ value in wRcDirect.
RCD_ constants are provided only for compatibility with version 1.0 of the Pen
API and will not be supported in future versions.
The writing direction consists of both primary and secondary directions. For
example, English is written from left to right (primary) and then down the page
(secondary). Chinese is often written from the top down (primary) and then
right to left across the page (secondary).
The high byte of the direction indicates primary direction; the low byte
indicates secondary direction. A recognizer can choose to ignore this word and
support only the natural direction of the given language. The default value is
determined by the recognizer.
The following table lists the RCD_ values:
Constant
| Description
| RCD_DEFAULT
| Default value.
| RCD_BT
| Bottom to top.
| RCD_LR
| Left to right.
| RCD_RL
| Right to left.
| RCD_TB
| Top to bottom.
|
Example
For example, the value for standard English writing direction is defined as
follows:
#define wRcDirectRoman ((RCD_LR<<8) | RCD_TB)
See Also
RC
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|