Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips
Documentation Wiki Register Members List B4P 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, 06:08 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
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
  #2 (permalink)  
Old 06-15-2009, 07:08 AM
Junior Member
 
Join Date: May 2009
Posts: 15
Default


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

NullReferenceExeption
Continue?
Reply With Quote
  #3 (permalink)  
Old 06-15-2009, 04:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

The device doesn't support this property, only the desktop.
Reply With Quote
  #4 (permalink)  
Old 06-15-2009, 06:53 PM
Junior Member
 
Join Date: May 2009
Posts: 15
Default

Thanks Erel for you quick response.
I will try to work around Right to Left issues.
If I found solution I 'll send.
__________________
-----------
Best Wishes
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 Off
Pingbacks are Off
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 (Windows Mobile) 19 10-27-2010 01:08 PM
Readonly property in the Textbox control bidibulle Basic4ppc Wishlist 14 11-16-2007 08:19 AM
Visible property for menus alfcen Basic4ppc Wishlist 2 11-11-2007 11:15 AM
ComboBox.Value property Cableguy Questions (Windows Mobile) 3 07-01-2007 02:09 PM
property settin in the pda Cableguy Basic4ppc Wishlist 3 05-10-2007 03:40 PM


All times are GMT. The time now is 09:57 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0