You are not logged in.

Dani

Intermediate

  • "Dani" started this thread

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

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

Posts: 436

Date of registration: Dec 20th 2008

  • Send private message

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

Intermediate

  • "Dani" started this thread

Posts: 325

Date of registration: Nov 19th 2009

Location: GERMANY

  • Send private message

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

denizunlu

Beginner

  • "denizunlu" is male

Posts: 18

Date of registration: Dec 10th 2011

Location: Istanbul

Occupation: Developer

  • Send private message

4

Sunday, November 18th 2012, 7:03pm

My code seems to work :


Public Sub Applet_Initialize()
txtUN1.Parent.setComponentOrientation (componentorientation.RIGHT_TO_LEFT)
txtUN1.Text = txtUN1.Text
End Sub

Rate this thread
WoltLab Burning Board