Okay, I'm going to need a bit of help with the highlighted text tracker... One way M.I. Wright suggested was to only keep track of the start and end of the highlighted text, and then when the user presses the copy button (TRACE), it takes the sub() of the current string, starting at the beginning and ending at the last highlighted text. However, I'm having a bit of difficulty...
The way I have it setup is that X is the constant, where the start or end of your highlighted text is. V is the one that moves around with your cursor, if you are highlighting. Then, when you want to copy, it determines which variable is greater, which enables it to know which variable it should put first in the sub() command. If X=0, it stores the placement in the string of the cursor in X. Every time after that, it stores the placement to V. Btw, you can look at earlier posts to see how I converted the cursor value to string placement.
My code is hardly working at all, so I would appreciate some help...
[EDIT]
another problem is that the numbers will have to change whether you are highlighting from right to left or left to right. My code is pretty much nothing, I'm just tossing around numbers right now... I think I'm tired.
[EDIT 2]
I believe I fixed it. Just had to change some numbers around.
Here's for tracking (and highlighting):
Code:
Line(B,62-A,B,57-A,0
For(F,B,B+3(K-25),K-25
For(G,A,A+5
Pxl-Change(G,F
End:End
If not(X
23round(A/6-1,0)+B/4+2->X
B+4(K-25->B
23round(A/6-1,0)+Ans/4+2->V
and here's for copying:Code:
If K=14 and X!=V:Then
If X>V
V+.01X
If V>X
X+.01V
sub(Str7,iPart(Ans)+1,100fPart(Ans)-iPart(Ans->Str6 //in the future i'll just add it to the beginning of BasicNote's entire note string
End
End:End
If you can optimize this, great