Coder Social home page Coder Social logo

Comments (6)

davidbannon avatar davidbannon commented on May 30, 2024

Ah, this is not isolated to "highlight", bold and italics do it too.
All done in the same function. And a complicated function it is. Sigh .....

from tomboy-ng.

davidbannon avatar davidbannon commented on May 30, 2024

OK, fixed. When we change a selection of text, it has to be done block by block. But we now base the whole change on the first character of selection, not first char of each block !

from tomboy-ng.

traumschule avatar traumschule commented on May 30, 2024

Good it is fixed now. As I am picky, i tried the following:

  • add some words to a line
  • mark one word and click highlight, the word gets highlighted
  • mark this word or a part of it together with unhighlighted text and click highlight - the whole marked area should get highlighted. instead it gets UNhighlighted.

Side note: Can we change the color of marked highlighted text? Currently I need to unmark text to check if it is highlighted.
TKGridAttrTextCell(KGrid1.Cell[MyColumn, MyRow]).Brush.Style := MyColor; (source)

from tomboy-ng.

davidbannon avatar davidbannon commented on May 30, 2024

The test to determine whether we highlight or un-highlight is what the first character of the selection is. Thats the standard way and only way that makes sense IMHO. So, when you say "together with unhighlighted text", whats important is where that (new to the selection) unhighlighted text is. If its in front of the part you just highlighted, then the first character will be unhighlighted and the action is to highlight the new selection. On the other hand, if the addition to selection is after the part you previously highlighted, the the first character will be already highlighted and the action will be to unhighlight it all.

If this is not whats happening, its a bug, please detail just what you are doing to demonstrate it.

from tomboy-ng.

davidbannon avatar davidbannon commented on May 30, 2024

re your sidenote about color of text. The 'highlight' text color is set in settings.pas, line number 151. Hover your mouse over clRed and you can open the unit where the predefined colours are defined. If necessary, we could make it a user settings.

from tomboy-ng.

traumschule avatar traumschule commented on May 30, 2024

i agree, Tomboy NG does the same.

from tomboy-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.