Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Code Samples & Tips Share your recent discoveries and ideas with other users.


Desktop - Change RightToLeft property


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2008, 07:08 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,185
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
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using rapi from desktop to copy file from device to desktop sunnyboyj Questions & Help Needed 9 02-08-2008 12:40 PM
Readonly property in the Textbox control bidibulle Basic4ppc Wishlist 14 11-16-2007 09:19 AM
Visible property for menus alfcen Basic4ppc Wishlist 2 11-11-2007 12:15 PM
ComboBox.Value property Cableguy Questions & Help Needed 3 07-01-2007 03:09 PM
property settin in the pda Cableguy Basic4ppc Wishlist 3 05-10-2007 04:40 PM


All times are GMT. The time now is 04:31 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0