TE Edit Control Win32 / Win64 Help
Product page

Hyphenation Support

TE Edit Control can interface with hyphenation library offered by Circle Noetics (www.circlenoetics.com). This third party product needs to be purchased directly from Circle Noetics if you wish to incorporate hyphenation feature into TE Edit Control. Please contact Circle Noetics to check if a particular language is supported by this product.

The DLL called dashes.dll found in this hyphenation library can be accessed by TE using the TerEnableDashes method.

You would call the TerEnableDashes method after creating a TE window to select a language for hyphenation, and to specify the hyphenation granulation level.

BOOL TerEnableDashes(hWnd, lang, level, enable)
HWND hWnd;The handle of the window to be accessed
int lang;The language id to enable the hyphenation feature. The available language id values are found in a Dashes library documentation.
int level;Hyphenation granulation level. The applicable values for this parameter are available in a Dashes library documentation. A value of 3 generally provides an acceptable granulation level.
BOOL enable;Set to TRUE to enable hyphenation, or set to FALSE to disable it.

Comment: The dashes.dll file must be copied to the project folder for hyphenation feature to be available.

Return Value: This function returns TRUE if successful.