B4J Question Making CheckBox text appear on its left side

Discussion in 'B4J Questions' started by MegatenFreak, Aug 31, 2018.

  1. MegatenFreak

    MegatenFreak Member

    I'm having checkboxes with Farsi text which is a right-to-left language. So, naturally, a checkbox should appear on the right side of its text, and everything must be aligned to the right. I've been playing around with CSSUtils and direct style properties without success.
    Can anyone please help me with this?
    Thank you so much in advance.
  2. Cableguy

    Cableguy Expert Licensed User

    I think you need javaobject for accessing additional node funtions
    MegatenFreak likes this.
  3. MegatenFreak

    MegatenFreak Member

    Thanks a lot Cableguy!
    You pointed me in the right direction. I went digging into javaobject and found a lot of stuff, including the answer to most of my problems!
  4. derez

    derez Expert Licensed User

    If you can't find a way to change it make your own view with a minimal size checkbox (without text) and a label to the left of it.
    MegatenFreak likes this.
  5. Daestrum

    Daestrum Well-Known Member Licensed User

    You can use the same solution as you found on your Combobox question, just change Combobox to Checkbox.
    MegatenFreak likes this.
  6. MegatenFreak

    MegatenFreak Member

    Thank you everyone.
    That's a good idea derez. Fortunately, however, setting the orientation to right-to-left fixed everything!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice