Solved

A question about mirroring that is required for multi-language applications

Posted on 2003-10-21
8
224 Views
Last Modified: 2010-04-17
A question about mirroring that is required for multi-language applications,
where some languages are read from right to left rather than left to right
(Arabic is an example).
How can I reverse the presentation of text strings, or even better, reverse
(or mirror) the entire UI if possible for complete consistency.
My application is written on VB6.

Thanks in advance
0
Comment
Question by:NatalieEng
  • 4
  • 3
8 Comments
 
LVL 41

Expert Comment

by:graye
ID: 9593051
Forms and most ActiveX controls on VB6 support the "RightToLeft" property, which will do what you want.  In VB6 it's called "bi-directional" programming

BTW: VB.Net has much better support for these kinds of globalization features.
0
 

Author Comment

by:NatalieEng
ID: 9597803
Thanks, but if the RightToLeft property of a specific form is set to True, several actions occur:

1. Menus and their associated command names (or items) are right-aligned with RTL reading order. They appear at the right edge of the form in an overall RTL layout.
2. Form captions have an RTL reading order and are right-aligned in the title bar.
3. Any text that the Print method prints to the form will begin at the right boundary of the form and have RTL reading order.
4. Set to true the default RightToLeft property value for newly added controls that have a RightToLeft property.

My problem is what about controls that are already in the form? how can I change their default RightToLeft property value automatically, and not one by one?
0
 
LVL 41

Expert Comment

by:graye
ID: 9598389
Hummm....  I guess you'd just have to run thru the controls collection and set them as you go..

Private Sub Form_Load()
    Dim c As Control
   
    Form1.RightToLeft = True
    For Each c In Form1.Controls
        c.RightToLeft = True
    Next
   
End Sub
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:NatalieEng
ID: 9599999


_______
|
0
 

Author Comment

by:NatalieEng
ID: 9600347
I want to explain myself better.
I need exactly mirror form of my "Form". For example:

original form:
_________________________________
| __________                                      |
| |TextBox     |            Label                  |
| |_________|                                      |
|________________________________|

Mirror form:

_________________________________
|                                      __________ |
|               Label               |     TextBox| |
|                                      |_________| |
|________________________________|

RightToLeft property cannot do that.
Is there a function or add-in of some sort that can do that? It will really help me!

Thanks in advance.

0
 
LVL 41

Accepted Solution

by:
graye earned 125 total points
ID: 9600638
Oh!

OK... no, there's nothing really that can help with that kind of setup... You could hard-code the upper-lefthand corner locations in an array, and switch the locations in code... but that's pretty hokey.

Once Again, VB.Net can be of tremendous help in this regard, since you can create multiple version of a single GUI based upon Locale and have the correct one display automatically based upon the client's PC settings.
0
 

Author Comment

by:NatalieEng
ID: 9605123
OK

I'll try to find a different way to do it.

Thanks anyway.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now