Initializing Rogue Wave Views Bidi
This section explains how to initialize Rogue Wave Views Bidi, as well as its limitations.
Setting the Language
As with the standard version of Rogue Wave Views, you must call the
IlvSetLocale function before creating the
IlvDisplay object(s) if you want your application to run in the context of a specific language.
int
main(int argc, char* argv[])
{
IlvSetLocale();
IlvDisplay* display = new IlvDisplay(...);
...
}
Setting Bidirectional Features
The IlvUsingBidi function helps the application determine dynamically whether the execution context uses bidirectional features:
IlBoolean IlvUsingBidi(IlvDisplay* display);
This function is declared in the <ilviews/bidi/bidi.h> header file. It returns IlFalse if the bidirectional module cannot be used for the current display.
Note: This function returns the same result for all the displays in the application. |
If IlvUsingBidi returns IlFalse, the application runs normally but the bidirectional features are inoperative.
Limitation
In Rogue Wave Views Bidi for Windows, the function IlvUsingBidi always returns IlTrue.
Version 6.1
Copyright © 2016, Rogue Wave Software, Inc. All Rights Reserved.