Skip to content

layout mirroring Right to Left flow #2221

Description

@moohaad

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)

Activity

  1. tznind commented on Nov 13, 2022

    @tznind
    Collaborator

    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

  2. tznind commented on Nov 13, 2022

    @tznind
    Collaborator

    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.

  3. BDisp commented on Nov 13, 2022

    @BDisp
    Collaborator

    @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.

  4. tig commented on May 27, 2024

    @tig
    Member

    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.

  5. added this to the V2 Alpha milestone on Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions