Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layout mirroring Right to Left flow #2221

Closed
moohaad opened this issue Nov 13, 2022 · 4 comments
Closed

layout mirroring Right to Left flow #2221

moohaad opened this issue Nov 13, 2022 · 4 comments
Milestone

Comments

@moohaad
Copy link

moohaad commented Nov 13, 2022

top windows and some views need to be Right to Left for example FrameView

Windows Forms supported long ago

Originally posted by @moohaad in #894 (comment)

@tznind
Copy link
Collaborator

tznind commented Nov 13, 2022

Hi, thanks for raising this topic!

There is right to left support for some controls (see video and the PR you posted in). There are not currently any 'layouts' as such (flow panels, table layout panels etc). Currently layout is handled with Pos and Dim (e.g. 50% -1 or Fill(margin 1)).

So you could manually reposition your controls and change the text direction on those that support it but it sounds like you are thinking of something more automagical?

If you were interested in implementing layouts then I think RTL would be a nice addition to such a feature.

right-to-left

@tznind
Copy link
Collaborator

tznind commented Nov 13, 2022

Regarding DateField specifically there is this unmerged PR to increase the representation of formats #1205 and also a discussion here about the fragility of using a text field for date : #617

A full DateTimePicker would be a great addition.

@BDisp
Copy link
Collaborator

BDisp commented Nov 13, 2022

@moohaad I think you are talking about RTL for Arabic or Hebrew languages. If so, I already though about his implementation but I need to understand better how it really work first.

@tig
Copy link
Collaborator

tig commented May 27, 2024

The above PR supports Right to Left alignment (and ordering) of Views. The Aligner class supports AlignmentModes.EndToStart for this.

This could also be used w/in a potential TextFormatter re-write.

@tig tig closed this as completed May 27, 2024
@tig tig added this to the V2 Alpha milestone Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

No branches or pull requests

4 participants