Tuesday, May 22nd 2012, 1:13am UTC+2

You are not logged in.

  • Login
  • Register

Dani

Trainee

Posts: 68

Location: GERMANY

1

Friday, September 23rd 2011, 10:27am

TextBox Alignment - false input behavior

Hey there,

Jabaco Source

1
2
3
Public Sub Form_Load()
   Text1.Parent.setComponentOrientation(RIGHT_TO_LEFT)
End Sub


When typing letters and numbers the alignment is right.
But then typing a comma, decimalpoint, etc. changes the alignment back to default!
Also the caret changes to a different one!

Dani

theuserbl

Intermediate

2

Monday, September 26th 2011, 5:12pm

RE: TextBox Alignment - false input behavior

Possible I will try to implement it sometimes.
The problem exists with Java. With Text1.Parent you are using the JTextArea of the VB.TextArea component.
And the ComponentOrientation "RIGHT_TO_LEFT" is for fonts red from right to left, like arabic fonts.
Right-aligned or Centered-aligned don't exists for JTextArea.

Dani

Trainee

Posts: 68

Location: GERMANY

3

Tuesday, September 27th 2011, 11:05am

Hey there theuserbl,

thanks for pointing that out!
I was just wondering how come that when typing letters and numbers it is the expected behaviour but typing a comma, decimalpoint, etc. it is not!?
These are characters of the same fontset so I would expect them to bahave the same way.

Dani

Rate this thread
WoltLab Burning Board