Cursor movement

General TRichView support forum. Please post your questions here
Post Reply
thajuggla
Posts: 6
Joined: Tue May 20, 2008 5:40 pm

Cursor movement

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

How do you want to define the position where to move the caret?
thajuggla
Posts: 6
Joined: Tue May 20, 2008 5:40 pm

Post by thajuggla »

Sergey Tkachenko wrote:How do you want to define the position where to move the caret?
Yes, I believe so :P
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
thajuggla
Posts: 6
Joined: Tue May 20, 2008 5:40 pm

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What if there are less than 80 characters on the current line?
thajuggla
Posts: 6
Joined: Tue May 20, 2008 5:40 pm

Post 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.
Pieter Zijlstra
Posts: 42
Joined: Sat Oct 08, 2005 3:56 pm
Location: The Netherlands
Contact:

Post by Pieter Zijlstra »

Have you considered using tabstops?
thajuggla
Posts: 6
Joined: Tue May 20, 2008 5:40 pm

Post 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?
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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
thajuggla
Posts: 6
Joined: Tue May 20, 2008 5:40 pm

Post 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
Post Reply