ADDNL problem with RightToLeft mode
Posted: Sun Dec 18, 2005 5:35 pm
I made very simple example with following settings:
- RichViewEdit BiDiMode is set to rvbdRightToLeft
- Paragraph BiDiMode is set to rvbdRightToLeft
- Paragraph Alignment is set to rvaRight
- TextStyle BiDiMode is set to rvbdRightToLeft
I have a button with follwing procedure on button click:
AddNL(Edit1.Text, rvsDefStyle, -1);
Format;
Edit1.Text contains some Hebrew values that are changed every time before click.
On my XP machine it works fine, every click adds chars according to RightToLeft scenario.
When I run the same compiled application on Windows 2000 machine, it works different. It always puts added chars to the first position on the right side. I evaluated CurItemNo in inspector and it was always 0. When I just edit a text in the component, it works perfect.
What can be a problem?
- RichViewEdit BiDiMode is set to rvbdRightToLeft
- Paragraph BiDiMode is set to rvbdRightToLeft
- Paragraph Alignment is set to rvaRight
- TextStyle BiDiMode is set to rvbdRightToLeft
I have a button with follwing procedure on button click:
AddNL(Edit1.Text, rvsDefStyle, -1);
Format;
Edit1.Text contains some Hebrew values that are changed every time before click.
On my XP machine it works fine, every click adds chars according to RightToLeft scenario.
When I run the same compiled application on Windows 2000 machine, it works different. It always puts added chars to the first position on the right side. I evaluated CurItemNo in inspector and it was always 0. When I just edit a text in the component, it works perfect.
What can be a problem?