Uniface User Forum

 View Only

A small hiccups: ProcScript actions on selected lines

  • 1.  A small hiccups: ProcScript actions on selected lines

    Posted 10-05-2024 10:51
    Edited by Gianni Sandigliano 10-05-2024 10:54

    Hi Unifacers,

    let's share this small hiccups with all of you... I know there are more important features to be implemented or fixed, but... :-)

    I've got during years from time to time NOT so nice comment about behaviour of Uniface procScript code editor, when an action is requested over an active selection; it could be seen with:
    - comment/uncomment
    - indenting/unindenting
    - maybe other actions

    What is criticized? The Uniface behaviour is different from ALL other text editor on the market, included Notepad++ based on the same "scintilla" editor like Uniface.
    Editing action choosen is applied on last line selected, also if NO characters of that line were selected. When using mouse it is simpler to fall in the trap.

    Example:
    a) Code available into code container is composed by 5 lines, being the fifth one empty, like this:
    - 1st line
    - 2nd line
    - 3rd line
    - 4th line

    b1) Manually: user is positioning cursor at beginning of first line before dash character then while holding shift is stroking two times down arrow; two lines are marked as selected and cursor is the beginning of the third line (note: before dash sign!)
    b2) Mouse: user clicks to position cursor at the beginning of first line then while holding shift is moving mouse down two lines at the beginning of third line (note: again before dash sign!)
    c) Choosing to comment selected lines: a comment sign is placed on 1st, 2nd AND 3rd line. 
       User request: 3rd line should be left unchanged because NO characters in that line were selected!

    The unexpected behaviour is more visible if the selection applied is from 3rd to 5th line (the empty line!); a character is added on 5th line while it should NOT!

    When I was notified with this behaviour my answer was always: you could mark lines from the end to the beginning and your "problem" is fading away... but I've NO defense answer for "Uniface behaviour is different from all other text editor on the market" because AFAIK it is true!

    Let's hope the Uniface code editor could be improved on actions over selected lines... :-)

    Regards,
    Gianni



    ------------------------------
    Gianni Sandigliano
    IT
    ------------------------------