View Single Post
  #1 (permalink)  
Old 06-07-2008, 07:08 AM
Erel's Avatar
Erel Erel is online now
Administrator
 
Join Date: Apr 2007
Posts: 13,104
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default Desktop - Change RightToLeft property

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
Reply With Quote