PDA

View Full Version : FormattedTextControl - Copy & Paste with formatting - Anyone interested?



jharp
August 10th, 2021, 04:08
Hello everyone,

I've added an extension to forge that allows copy and paste between formattedtextcontrols with the formatting preserved.

Available at: https://forge.fantasygrounds.com/shop/items/185/view

By default the tool copies the entire source formattedtextcontrol and appends the data at the end of the destination formattedtextcontrol. All of this is hot key triggered. The focus must be in the source when you copy and in the destination when you paste.

Due to the lack of selection support for formattedtextcontrol you can do subsections but it requires the use of some marker text to accomplish. I happen to use:

#FTS# - start position
#FTE# - end position
#FTI# - insert position (if you want it somewhere other than the end of the destination formattedtextcontrol


Releases

v1.0.6

Changed: Moved the configuration of FTCopyPaste to the options menu under Ma's Tools.


v1.0.5

Fix: Focus unable to be found in certain cases.


v1.0.0

Initial release

jharp
August 27th, 2021, 23:52
Confirmed compatible with TEST channel ruleset changes.
Confirmed compatible with v4.1.9
Confirmed compatible with v4.1.5

damned
August 28th, 2021, 01:57
Hah! Very good.
I do something like that in MoreCore and Player Agency but I never thought of using it for this purpose.

jharp
August 28th, 2021, 03:28
From you I take that as a great complement. Thank you.