| || |
weird behaviour with SetPosition
I have a multi-line text field and am trying to use the setPostion method to change the location of the cursor. When I call tField.setPosition(1,1) it will set the cursor in the correct location at the top left corner. However, if i chasnge the line number to 2, i.e. tField.setPosition(2,1).... it does move a line down but also moves a column over (line 2 column 2). It seems that it goes to the right row number but it always goes to the wrong column. From the pattern i saw it seems like it always adds the row number to the column number and subtracts one to get the column number it should go to. Anyone else experience this weeird behavour or know of any solutions?