Friends,
I'm having difficulty accomplishing a few things that I'm sure can be done with some built in string functions.
I have a memo form which I need to perform a "quasi-tab." I already know a way to simulate a tab in a memo field by trapping keycodes and all, but it still does not do exactly what I need.
When the user presses tab inside my memo field, I need:
1.) the cursor to go back to the beginning of the current line,
then,
2) move the cursor ten spaces forward.
The second part has been more problematic than the first. The only way I know how to move the cursor ten spaces is to add spaces like this " " . this creates an empty string that I don't want. Its hard to explain clearly what I need.
Basically I have a transcript form that shows verbatim transcriptions of callers lIke this.
ID: TRANSCRIPT
Joe: Hey, this is Joe.
Mike: Hey, Joe, this is Mike.
Lou: Hey, this is Lou.
After the user types in the name, he/she presses 'tab.' The way I had it before, would just add ten spaces from where tab was pressed. This, however, results in the transcript text being out of alignment like this.
Joe: Hey, this is Joe.
Mike: Hey, Joe, this is Mike.
Lou: Hey, this is Lou.
So, again I need to go back to the start of the line and move forward ten spaces WITHOUT ERASING THE CALLER ID NAMES.
Is this possible or should I just explore the RTF control I keep hearing about? I don't want to have to worry about missing references or anything. If someone has any insight I would appreciate it a great deal. Thanks.
I'm having difficulty accomplishing a few things that I'm sure can be done with some built in string functions.
I have a memo form which I need to perform a "quasi-tab." I already know a way to simulate a tab in a memo field by trapping keycodes and all, but it still does not do exactly what I need.
When the user presses tab inside my memo field, I need:
1.) the cursor to go back to the beginning of the current line,
then,
2) move the cursor ten spaces forward.
The second part has been more problematic than the first. The only way I know how to move the cursor ten spaces is to add spaces like this " " . this creates an empty string that I don't want. Its hard to explain clearly what I need.
Basically I have a transcript form that shows verbatim transcriptions of callers lIke this.
ID: TRANSCRIPT
Joe: Hey, this is Joe.
Mike: Hey, Joe, this is Mike.
Lou: Hey, this is Lou.
After the user types in the name, he/she presses 'tab.' The way I had it before, would just add ten spaces from where tab was pressed. This, however, results in the transcript text being out of alignment like this.
Joe: Hey, this is Joe.
Mike: Hey, Joe, this is Mike.
Lou: Hey, this is Lou.
So, again I need to go back to the start of the line and move forward ten spaces WITHOUT ERASING THE CALLER ID NAMES.
Is this possible or should I just explore the RTF control I keep hearing about? I don't want to have to worry about missing references or anything. If someone has any insight I would appreciate it a great deal. Thanks.