Initializing Views Bidi
This section explains how to initialize Views Bidi, as well as its limitations.
Setting the Language
As with the standard version of 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 Views Bidi for Windows, the function IlvUsingBidi always returns IlTrue.
Published date: 05/24/2022
Last modified date: 02/24/2022