EditorGadget - determine selection
Posted: Mon Nov 17, 2025 7:36 pm
Good day to all.
Maybe someone has already encountered a similar problem ? Maybe someone has already solved this ?
I have an editor gadget. The user selects one line, several lines, or all lines. It doesn't matter if it was a mouse or another method (keyboard). These questions interest me. That is, when a button is pressed, I want to know whether all the text, several lines, or just one line is selected. Maybe even just part of a line. I would like to know the line numbers that were marked. All, even partially selected ones.
Thank you in advance for your answers.
Maybe someone has already encountered a similar problem ? Maybe someone has already solved this ?
I have an editor gadget. The user selects one line, several lines, or all lines. It doesn't matter if it was a mouse or another method (keyboard). These questions interest me. That is, when a button is pressed, I want to know whether all the text, several lines, or just one line is selected. Maybe even just part of a line. I would like to know the line numbers that were marked. All, even partially selected ones.
Thank you in advance for your answers.