Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RTL / LTR
Message
 
 
À
19/03/2010 04:45:36
Issam Mansour
Jordan Business Machines
Amman, Jordanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01455666
Message ID:
01455668
Vues:
93
This message has been marked as the solution to the initial question of the thread.
You have to set WS_EX_LAYOUTRTL flag back to 0
*-- Set the window extended style to none-RTL
IF BITAND(OldLong, WS_EX_LAYOUTRTL) <> 0 
  SetWindowLong(ThisForm.HWnd,GWL_EXSTYLE, BITAND(BITXOR(OldLong,WS_EX_LAYOUTRTL),WS_EX_NOINHERITLAYOUT))
ENDIF
Please use PRE tag for code readability.

>I am the sing the following code for Right-To-Left to switch the form to Arabic, I what to add more flexibly to my system to be able to switch to Latin mode. so any one can help me to modify the following code the code as follows.
>
>*-- Define extended Windows styles
>#DEFINE GWL_EXSTYLE -20
>#DEFINE WS_EX_LAYOUTRTL 0x400000
>#DEFINE WS_EX_NOINHERITLAYOUT 0x100000
>*-- Define the Get window long API
>DECLARE INTEGER GetWindowLong IN user32;
>INTEGER hWnd, INTEGER nIndex 
>*-- Define the Set window long API
>DECLARE INTEGER SetWindowLong IN user32;
>INTEGER hWnd, INTEGER nIndex, INTEGER dwNewLong 
>*-- Get this form's current style. 
>OldLong = GetWindowLong(ThisForm.HWnd, GWL_EXSTYLE)
>*-- Set the window extended style RTL non-inheritable.
>SetWindowLong(ThisForm.HWnd,GWL_EXSTYLE,; 
>BITOR(OldLong,WS_EX_LAYOUTRTL,WS_EX_NOINHERITLAYOUT))
>
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform