Hello all,
In my application I need to incorporate mirroring to each object within a form so that it will display properly for an Arabic GUI.
For grid objects I need to add alltrim() to controlsource where the field Type() is character. What do I need to add to the grid code to get the alltrim() working?
** My grid code
IF ATC("Page",This.Parent.BaseClass) = 0 && IF Parent is not a page object.
This.Left = This.Parent.Width - (This.Left + This.Width)
ELSE && Else Parent is a page object.
This.Left = This.Parent.Parent.PageWidth - (This.Left + This.Width)
ENDIF
*-- Adjust the inside controls (To Mirror Properties.) .....
*-- Assign the RightToLeft and Alignment properties.
LOCAL oColumn as Column, oControl
*-- Loop Grid columns.
FOR EACH oColumn IN This.Columns
oColumn.Alignment = 1 && 1-Right for Arabic language,
*-- Loop Column controls.
FOR EACH oControl IN oColumn.Controls
IF PEMSTATUS(oControl,"Alignment",5)
oControl.Alignment = 1 &&Right for Arabic language,
ENDIF
IF PEMSTATUS(oControl,"RightToLeft",5)
oControl.RightToLeft = .T.
ENDIF
ENDFOR
ENDFOR
thanks for your help.
In my application I need to incorporate mirroring to each object within a form so that it will display properly for an Arabic GUI.
For grid objects I need to add alltrim() to controlsource where the field Type() is character. What do I need to add to the grid code to get the alltrim() working?
** My grid code
IF ATC("Page",This.Parent.BaseClass) = 0 && IF Parent is not a page object.
This.Left = This.Parent.Width - (This.Left + This.Width)
ELSE && Else Parent is a page object.
This.Left = This.Parent.Parent.PageWidth - (This.Left + This.Width)
ENDIF
*-- Adjust the inside controls (To Mirror Properties.) .....
*-- Assign the RightToLeft and Alignment properties.
LOCAL oColumn as Column, oControl
*-- Loop Grid columns.
FOR EACH oColumn IN This.Columns
oColumn.Alignment = 1 && 1-Right for Arabic language,
*-- Loop Column controls.
FOR EACH oControl IN oColumn.Controls
IF PEMSTATUS(oControl,"Alignment",5)
oControl.Alignment = 1 &&Right for Arabic language,
ENDIF
IF PEMSTATUS(oControl,"RightToLeft",5)
oControl.RightToLeft = .T.
ENDIF
ENDFOR
ENDFOR
thanks for your help.