Desktop - Change RightToLeft property

Discussion in 'Code Samples & Tips' started by Erel, Jun 7, 2008.

  1. Erel

    Erel Administrator Staff Member Licensed User

    Most of the desktop controls support both (default) left to right fonts and right to left fonts like Hebrew and Arabic.
    You can use the Door library with the following code to change this property:
    Code:
    'obj is an Object.
    Sub App_Start
        Form1.Show
        SetRTL(
    "textbox1")
    End Sub

    Sub SetRTL(crl)
        obj.New1(
    false)
        obj.FromControl(crl)
        obj.SetProperty(
    "RightToLeft","Yes")
    End Sub
    Sub SetLTR(crl)
        obj.New1(
    false)
        obj.FromControl(crl)
        obj.SetProperty(
    "RightToLeft","No")
    End Sub
     
  2. ayman12

    ayman12 Member Licensed User

    :sign0085:
    In WM6.0 on Device
    it is not work and says
    An error occured on Sub __main_setrtl.

    NullReferenceExeption
    Continue?
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    The device doesn't support this property, only the desktop.
     
  4. ayman12

    ayman12 Member Licensed User

    Thanks Erel for you quick response.
    I will try to work around Right to Left issues.
    If I found solution I 'll send.
     
Loading...
  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