PDA

Click to See Complete Forum and Search --> : text box-- the arabic script


urooj
Jul 4th, 2001, 02:00 PM
my probelm is that i have to handle arabic script. and so i want the text cursor to move from right to left. but if i set the align property, the cursor makes each next insersion to its left, when it should be to its right. also i can not seem to set the righttoleft property false. can anyone help?:confused:

Yonatan
Jul 7th, 2001, 04:14 AM
Originally posted by urooj
also i can not seem to set the righttoleft property false.But if you want the cursor to move from the right to the left, then you probably want RightToLeft to be True?

BrianHawley
Sep 12th, 2001, 09:13 AM
You need to be using an Arabic version of Windows and you need to set BOTH the Align property and the RightToLeft property.

It should then work fine.

Note that you can change righttoleft dynamically in code with VB6 and later, but in earlier versions you can only change it in design mode. The only work-around is to have two text boxes, one for each right-to-left setting, and make them visible or not as required. Tip: make all your paired controls a control array and have a variable called r2l that equals 0 or 1. That way you can refer to them as (e.g.)

text1(r2l) = "xyz"

Save you a lot of grief if you have lots of controls like this.