PDA

View Full Version : formattedtextcontrol - get selected text



jharp
August 9th, 2021, 18:24
Hello all,

With the formattedtextcontrol is there a way to get any information about the text that is selected, current select position, current cursor position. I searched and at one point the answer was no but I'm hoping that has changed.

I want to write an extension that copies and pastes between formattedtextcontrols and I need to know what is currently selected. Otherwise I can only copy and paste the entire getValue().


Thanks,
Jason

superteddy57
August 9th, 2021, 18:30
Hello all,

With the formattedtextcontrol is there a way to get any information about the text that is selected, current select position, current cursor position. I searched and at one point the answer was no but I'm hoping that has changed.

I want to write an extension that copies and pastes between formattedtextcontrols and I need to know what is currently selected. Otherwise I can only copy and paste the entire getValue().


Thanks,
Jason

Unfortunately no, it would need to be a stringcontrol to have access to those APIs