Textboxes right margin (1 Viewer)

basilyos

Registered User.
Local time
Today, 14:55
Joined
Jan 13, 2014
Messages
252
Hello guys

I have a report in arabic (reading order = right to left)
In the detail section i have 7 textboxes and a big one that contains all the data of the 7 textboxes and i used a small function to concat textboxes

My problem with the right margin the first letter doesn't appear
I changed the right margin in the 7 textboxes and then in huge one and then in all the 8 textboxes
Then i put the data source of the textboxes before the data
= "5 spaces" & [Data]

Everything omay with the first line but i a textbox with more than one line so the second line will start from zero

Any solution so all the text start from the new right margin value
 

Minty

AWF VIP
Local time
Today, 22:55
Joined
Jul 26, 2013
Messages
10,368
Have a look into the right padding option - this will move the inner margin of the entire control.
 

basilyos

Registered User.
Local time
Today, 14:55
Joined
Jan 13, 2014
Messages
252
I tried the right margin nothing happened still have the same problem

Sent from my SM-J510F using Tapatalk
 

Minty

AWF VIP
Local time
Today, 22:55
Joined
Jul 26, 2013
Messages
10,368
Not the margin - the padding - it's a different setting.
 

Minty

AWF VIP
Local time
Today, 22:55
Joined
Jul 26, 2013
Messages
10,368
Can you upload the form and some simple sample data to demonstrate, and maybe a picture of what you are trying to achieve?. The padding setting definitely works normally.
 

basilyos

Registered User.
Local time
Today, 14:55
Joined
Jan 13, 2014
Messages
252
hello sir
i uploaded a sample of my database
and i put two reports right and left

the left one contains textbox that have left alignment no problems
but the right one contains textbox that have right alignment the first letters of each textbox gone

i already said that i have multiple textboxes in one textbox

any solution ??
 

Attachments

  • Database.accdb
    696 KB · Views: 114

Minty

AWF VIP
Local time
Today, 22:55
Joined
Jul 26, 2013
Messages
10,368
Firstly I would remove the leading spaces - if you click in the hidden text boxes, on my machine at least, when you scroll through the contents the spaces tab through left to right but when you reach the stored text the text it goes right to left, so that might be causing some confusion.
 

basilyos

Registered User.
Local time
Today, 14:55
Joined
Jan 13, 2014
Messages
252
Firstly I would remove the leading spaces - if you click in the hidden text boxes, on my machine at least, when you scroll through the contents the spaces tab through left to right but when you reach the stored text the text it goes right to left, so that might be causing some confusion.

the original textboxes show the text with no problems in the first letters just in the concat textbox

so can we make something in the function
Code:
Public Function fnConcat(ParamArray p() As Variant) As String
    Dim elem As Variant
    Dim ret As String
    For Each elem In p
        If Trim(elem & "") <> "" Then ret = ret & elem & vbCrLf
    Next
    If Len(ret) > 0 Then ret = Left(ret, Len(ret) - Len(vbCrLf))
    fnConcat = ret
End Function
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 05:55
Joined
May 7, 2009
Messages
19,229
check if there are changes.
 

Attachments

  • aa_arabic.zip
    83.3 KB · Views: 76

basilyos

Registered User.
Local time
Today, 14:55
Joined
Jan 13, 2014
Messages
252
Any help guys?
I really need a solution
I gues the problem in the concat function
If so can i use another function and have the same result (combine textboxes each one on a new line) without losing first letters when i change the align to the right?

Sent from my SM-J510F using Tapatalk
 
Last edited:

basilyos

Registered User.
Local time
Today, 14:55
Joined
Jan 13, 2014
Messages
252
Any help guys?
Please i really need the solution

Sent from my SM-J510F using Tapatalk
 

Users who are viewing this thread

Top Bottom