[RESOLVED] Textbox RightToLeft problem in vb6
Hi guys ...
I'm trying to have a simple TextBox with below features :
1-MultiLine = True
2-Alingment = Right Justify
3-RightToLeft = true
4-Writting languages which are RightToLeft (Like Persian and ...)
The two first features are set without any problem , but when i try to change the RightToLeft to true property ( because of feature num 4) , It does not accept true property when i click on it!!( it is always on False as default property) ( I tried to write something like : Text1.RighToLeft=True in Private Sub Form_Load() , It does not Work!)
I have been trying to change other options like alignment Left Justify and ... to see whether it works or not . Eventually, It didn't show any reaction!
I have to use textbox because of it MultiLine feature.
I was wondering if anybody could solve this problem , Thanks :wave:
Re: Textbox RightToLeft problem in vb6
some properties have to be set in the design, can not be changed at runtime
right to left only works on windows systems that have the correct languages installed
from msdn
Quote:
Returns a boolean value that indicates the text display direction and controls the visual appearance on a bidirectional system.
Syntax
object.RightToLeft
The RightToLeft property syntax has this part:
Part Description
object Anobject expression that evaluates to an object in the Applies To list.
Settings
The possible boolean return values from the RightToLeft property are:
Setting Description
True The control is running on a bi-directional platform, such as Arabic Windows95 or Hebrew Windows95, and text is running from right to left. The control should modify its behavior, such as putting vertical scroll bars at the left side of a text or list box, putting labels to the right of text boxes, etc.
False The control should act as though it was running on a non-bidirectional platform, such as English Windows95, and text is running from left to right. If the container does not implement this ambient property, this will be the default value.
Re: Textbox RightToLeft problem in vb6
I do not get it! It means the only way to make a TextBox in RighToLeft is Pressing Right Shift+Right Ctrl ?
If so , Why vb6 has a special part (TextBox Options) for RighToLeft and TRUE/FALSE property ? :confused:
Is there any code to force the TextBox to be in RightToLeft direction ?
Re: Textbox RightToLeft problem in vb6
It's a READONLY property... it is designed to tell you (or the app, or what ever) if the current language of the OS supports RTL. And if it does, changes some behavior.
-tg
Re: Textbox RightToLeft problem in vb6
I agree with you , But this is not a good excuse ! Imagine my Os supports the languages with RTL ability . Again the property can not be changed to true in any situation. It is a true Bug of VB6! Because the task of vb6 in such a situation is so easy to do : When the program starts working , Set the RTL to True automatically. Is that so difficult ? :eek:
Anyway , Thanks for your respond :wave:
Re: Textbox RightToLeft problem in vb6
It's not a bug, you don't seem to understand the concept.
Read the post from Westconn again and again.
Re: Textbox RightToLeft problem in vb6
"right to left only works on windows systems that have the correct languages installed" . that's what you are trying to mention ? Would u please explain it ?!:rolleyes:
If you search about this BUG! u get what i'm talking about. Forget about explaining and justifying the problem , can anybody solve this or not ?! What should the users do about this ?
Re: [RESOLVED] Textbox RightToLeft problem in vb6
I got the solution myself!
Search about HexUniControls . :lol:
Re: [RESOLVED] Textbox RightToLeft problem in vb6
HexUniControls can solve this easily !
Re: [RESOLVED] Textbox RightToLeft problem in vb6
Why not share the complete Solution? :-)
Re: [RESOLVED] Textbox RightToLeft problem in vb6
This is the complete solution! Find and get HexUniControls , then you can solve your problem ! (it is something like extra tools for vb6 not code to share!)
Re: [RESOLVED] Textbox RightToLeft problem in vb6
I'm not sure what the problem was in the first place...
-tg