• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

Convert Visual BASIC v6 application into Right to Left mode (Hebrew)

Hello,

I have a Visual BASIC v6 application written in English with many forms, objects, captions and message box.

How can I "flip" the forms to be from right to left without changing all the design?

Thank you,
Elad.
0
eladroz
Asked:
eladroz
  • 5
1 Solution
 
drakesheCommented:
there is a property for almost all controls called righttoleft
http://img27.imageshack.us/img27/2981/leftright.png
0
 
eladrozAuthor Commented:
Thank you for your reply.

Right to Left is good but not enough... let's say that I have a save button on the bottom right  corner of a form and I want that when it's running as RTL,  this button will be on the bottom left corner of the form - RightToLeft will not help me in this case.

Think that I just want to "flip" the form with all it's objects (like: labels, buttons, lists, trees, etc.) in 180 degrees.

I hope that I explained myself better.

Elad.
0
 
drakesheCommented:
So your hoping that there is an automatic function that will flip the form objects? er... lemme try and figure something out.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
drakesheCommented:
Ok, try this. The following code will make the object in the variables go to the opposite side:

Private Sub Label1_Click()
   Call flip(Me.Label1)
End Sub
 
Function flip(ByVal Obj As Object)
   Dim distance As Integer
   distance = Me.Width - (Obj.Left + Obj.Width)
   Obj.Left = distance
End Function

Open in new window

0
 
drakesheCommented:
Oh and also the object can be click a second time and return to the original position which is a bonus.
0
 
drakesheCommented:
Did you get it working?
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now