form is not reversed from right to left

This forum is for programmers who have questions about the source code.
Post Reply
Moustafa.Ismail
Posts: 8
Joined: Mon May 17, 2021 1:14 pm

form is not reversed from right to left

Post by Moustafa.Ismail » Mon May 17, 2021 5:23 pm

Hello
Issue 21.1
Why when choosing languages like Arabic the form is not reversed from right to left, as in previous releases until 20.2
Starting at 20.3 the form is not completely reversed
Thank you so much
Moustafa Ismail

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: form is not reversed from right to left

Post by jordansparks » Tue May 18, 2021 4:58 pm

Uh oh. I don't think I considered that. I'll try to duplicate it. If I can't, I might ask for a screenshot.
Jordan Sparks, DMD
http://www.opendental.com

Moustafa.Ismail
Posts: 8
Joined: Mon May 17, 2021 1:14 pm

Re: form is not reversed from right to left

Post by Moustafa.Ismail » Tue May 18, 2021 6:06 pm

This causes a lot of chaos inside the form
Thank you jordansparks
Moustafa Ismail

Moustafa.Ismail
Posts: 8
Joined: Mon May 17, 2021 1:14 pm

Re: form is not reversed from right to left

Post by Moustafa.Ismail » Tue May 18, 2021 6:10 pm

Image
Moustafa Ismail

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: form is not reversed from right to left

Post by jordansparks » Wed May 19, 2021 6:41 am

It looks like the solution is going to be to force everything to layout left to right. Fixing the right to left layout looks far more complex. I'll know more later today.
Jordan Sparks, DMD
http://www.opendental.com

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: form is not reversed from right to left

Post by jordansparks » Wed May 19, 2021 3:15 pm

Fix is posted, but not quite released. As I suspected, the fix was to layout from left to right. So it all looks good now. But it can't lay out from right to left like it did in older versions.
Jordan Sparks, DMD
http://www.opendental.com

Moustafa.Ismail
Posts: 8
Joined: Mon May 17, 2021 1:14 pm

Re: form is not reversed from right to left

Post by Moustafa.Ismail » Wed May 19, 2021 3:44 pm

This is bad news that the program does not support the right-to-left direction
right Now
Do I, if I go back to the old paint and delete the new one?
Is there a conflict with the work of the program?
Or is the new paint just an appearance of the program?
Moustafa Ismail

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: form is not reversed from right to left

Post by jordansparks » Wed May 19, 2021 8:01 pm

You can go back to an old version if you use an old database.

I didn't realize it was that big of a deal. So you've really been using it as a complete mirror image of how it shows in our manual? But it doesn't look like you've translated anything, so why would that be useful? Is it mostly that you like the textboxes to start at the right when you type? We could probably easily change the textboxes back without the full mirror image of everything else.
Jordan Sparks, DMD
http://www.opendental.com

Moustafa.Ismail
Posts: 8
Joined: Mon May 17, 2021 1:14 pm

Re: form is not reversed from right to left

Post by Moustafa.Ismail » Thu May 20, 2021 4:09 am

I want to use the latest version to benefit from what has been updated with the latest database, and I can also translate the entire program in Arabic
And also, I've already flipped the pattern from right to left. This I've already done
But I retreated a little to ask you first whether it would affect something else in the program, especially the home page where most modules are displayed, and this question only. Instead of reading the code completely, I asked your question in order to shorten the way for myself
Now if it does not affect the operation of any module on the main page, I will reverse the program in all from right to left
//I also have a question
When is the release date for version 21.1 stable?

Thank you jordansparks for your patience
Moustafa Ismail

Moustafa.Ismail
Posts: 8
Joined: Mon May 17, 2021 1:14 pm

Re: form is not reversed from right to left

Post by Moustafa.Ismail » Thu May 20, 2021 5:13 am

Image
This is version 21.1 with the most recent upgrade I made after I forced all the layouts to run from left to right
With translation, all objects function well within a model like this
I ask you about the rest of the models when presented on the main page
Will there be a conflict, or will it continue?
Moustafa Ismail

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: form is not reversed from right to left

Post by jordansparks » Thu May 20, 2021 7:01 am

Nice job! How did you mirror things? From the screenshot, it sort of looks like you edited the code to turn off our LayoutManager for that one form. That would be a lot of work to do it for all forms, especially since you would have to reapply the changes with each version. Without knowing exactly what you changed, it's really impossible for me to advise. I would be happy to point you in the right direction.
If I was going to do it, I would make a hard coded list in a new class of forms that should not mirror, like FormOpenDental. Then, in the LayoutManager, I would mirror all the other forms using a little bit of math. Next, I would figure out how to mirror the anchors and docking. Finally, I would look at all methods in LayoutManager that changed controls on the fly, and I would add some math to those methods as well. I guess it really wouldn't be too hard. I'm very curious how this compares to your approach.
You might also notice that we have new comboboxes, listboxes, and groupboxes. Those won't mirror unless we add code to them. Grids have never mirrored, but that doesn't seem to bother you.
Jordan Sparks, DMD
http://www.opendental.com

Moustafa.Ismail
Posts: 8
Joined: Mon May 17, 2021 1:14 pm

Re: form is not reversed from right to left

Post by Moustafa.Ismail » Thu May 20, 2021 7:42 am

No, absolutely not. I will reflect all the objects within the format, including data display networks, and send them to you soon for review and incorporation into the following versions. It is possible to upload a comprehensive Arabic language file to the program
This will add a great launch to the program in our Arab region
This is our job, we are a software company and we have a history in software, especially the dot net
And we have programs in the market for managing labs, managing pharmacies, running restaurants, and managing clothes and grocery stores
Moustafa Ismail

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: form is not reversed from right to left

Post by jordansparks » Thu May 20, 2021 7:52 am

Interesting. Yes, we can place an Arabic file on our server for anyone to import. You could also supply the file to your customers.
Jordan Sparks, DMD
http://www.opendental.com

Moustafa.Ismail
Posts: 8
Joined: Mon May 17, 2021 1:14 pm

Re: form is not reversed from right to left

Post by Moustafa.Ismail » Thu May 20, 2021 7:55 am

Well, I will translate an Arabic file in our general language to suit all Arab countries and send it to you to upload it to the server
Moustafa Ismail

User avatar
jordansparks
Site Admin
Posts: 5739
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: form is not reversed from right to left

Post by jordansparks » Fri May 21, 2021 8:23 am

You might not want to do too much work on the mirroring until I've had a chance to see what your strategy is. If you send us a whole bunch of changes, it's unlikely that we'll be able to incorporate them. In other words, I don't want you to do a lot of work all for nothing. It would be better if you show me how you did that one form and then we start talking about whether that strategy can be scaled for everything. There are just so many different ways to do the same thing.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply