Hmm, I just realized I have everything I need to calc the horizontal position,
so this has become a non-issue. However, I just ran into my next problem. Sigh.

So, what I'm trying to do is add context help, which will use the compiler
services for this. I need to pass it the current source, the word the cursor is
under, and the x and y position of the cursor.

The three items (code, word, and line) I can get the horizontal position. I'm
taking advantage of the "Set File as Main for Compiler," however, it will ALWAYS
return that file in %file%. I guess what I need is something like
%current_file%, which is always the current file. 

I got the context help working, but only if "Set File as Main for Compiler" is
turned off. Is there a workaround, something I can change, code, or whatever to
solve this?

It becomes a pain to uncheck this each time I'm trying to get context help.

-- 
Jarrod Davis
Owner/Lead Developer @ tinyBigGames
https://tinybiggames.com

<https://forum.pspad.com/read.php?2,71900,71901>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem