|
-
Feb 4th, 2014, 02:06 AM
#1
Thread Starter
Addicted Member
[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
-
Feb 4th, 2014, 03:52 AM
#2
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
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.
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
-
Feb 4th, 2014, 04:09 AM
#3
Thread Starter
Addicted Member
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 ? 
Is there any code to force the TextBox to be in RightToLeft direction ?
-
Feb 4th, 2014, 06:30 AM
#4
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
-
Feb 4th, 2014, 10:44 AM
#5
Thread Starter
Addicted Member
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 ? 
Anyway , Thanks for your respond
-
Feb 4th, 2014, 05:00 PM
#6
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.
-
Feb 5th, 2014, 07:57 AM
#7
Thread Starter
Addicted Member
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 ?!
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 ?
Last edited by GlowingVB; Feb 5th, 2014 at 08:07 AM.
-
Feb 5th, 2014, 08:10 AM
#8
Thread Starter
Addicted Member
Re: [RESOLVED] Textbox RightToLeft problem in vb6
I got the solution myself!
Search about HexUniControls .
-
Feb 5th, 2014, 08:11 AM
#9
Thread Starter
Addicted Member
Re: [RESOLVED] Textbox RightToLeft problem in vb6
HexUniControls can solve this easily !
Last edited by GlowingVB; Feb 5th, 2014 at 08:17 AM.
-
Feb 5th, 2014, 08:40 AM
#10
Re: [RESOLVED] Textbox RightToLeft problem in vb6
Why not share the complete Solution? :-)
-
Feb 5th, 2014, 09:40 AM
#11
Thread Starter
Addicted Member
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!)
-
Feb 5th, 2014, 01:39 PM
#12
Re: [RESOLVED] Textbox RightToLeft problem in vb6
I'm not sure what the problem was in the first place...
-tg
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|