Page 1 of 1

Cursor movement

Posted: Tue May 20, 2008 5:43 pm
by thajuggla
How do I move the cursor from one position to another position in the TrichviewEdit?

I am trying to move my cursor to position 80 on the line, but am unable to find out how to do this.

Posted: Tue May 20, 2008 5:52 pm
by Sergey Tkachenko
How do you want to define the position where to move the caret?

Posted: Tue May 20, 2008 6:23 pm
by thajuggla
Sergey Tkachenko wrote:How do you want to define the position where to move the caret?
Yes, I believe so :P

Posted: Tue May 20, 2008 6:46 pm
by Sergey Tkachenko
I just asked where do you want to move the caret.

You said, for example, to the position 80 on the line. It is possible, but not very trivial. But there may be simpler methods, I can try to help if you tell me what do you want to implement.

Posted: Tue May 20, 2008 6:52 pm
by thajuggla
I am simply wanting to move my caret position to position 80 on the line. I am not seeing any option to "MoveCaret" to a position in TRichView.

Thanks for the help

Posted: Tue May 20, 2008 6:55 pm
by Sergey Tkachenko
What if there are less than 80 characters on the current line?

Posted: Tue May 20, 2008 10:59 pm
by thajuggla
Sergey Tkachenko wrote:What if there are less than 80 characters on the current line?
I am populating the box. I have one bit of information that I know can be a maximum of 50 characters, and a minimum of 5 characters, or in between. After I write this bit of information, I want to move to position 80 to write my second bit of information.

Posted: Wed May 21, 2008 12:33 am
by Pieter Zijlstra
Have you considered using tabstops?

Posted: Wed May 21, 2008 12:48 am
by thajuggla
Pieter Zijlstra wrote:Have you considered using tabstops?
No I did not. However I look at the help, and I really do not understand the help for the tab info section.

Would I have to design a specific paragraph style with a tab stop, then apply it to the whole line?

Posted: Wed May 21, 2008 4:36 am
by Sergey Tkachenko
If I understand you, you want to arrange data in columns.
Yes, the best way to do it is either tabs or tables.
For tabs, see here: http://www.trichview.com/forums/viewtopic.php?t=1589

Posted: Wed May 21, 2008 5:11 am
by thajuggla
Sergey Tkachenko wrote:If I understand you, you want to arrange data in columns.
Yes, the best way to do it is either tabs or tables.
For tabs, see here: http://www.trichview.com/forums/viewtopic.php?t=1589
This is it!! Thank you very much :D