Re: Disallow editting of certain words

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"MAB" <MAB@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:ED62DDF0-9A57-4B4B-A708-912E8975E641@xxxxxxxxxxxxxxxx

I notices when I took Mike color's coding (.SelColor = linkcolor(1))
out and replaced the selected text (either typing or ComboBox) that
the selected text was 1 character long no matter what I did. After
putting his color coding back, it all worked fine (?).

The main difference between my code and Rick's code is that I wrote my code so that the RichTextBox could very easily distinguish between one "editable section" and another, regardless of how much editing was done or whereabouts those sections actually ended up in the text. In other words, you can have dozens (or hundreds) of separate editable sections, with each one popping up a ListBox (or something similar) which allows the user to choose from a list of options which is specific to that particular editable section (something which I believe was part of your original requirement). For example, one editable section (when clicked) could offer the user a list of sizes (5mm, 8mm, 10mm, etc) wheras another editable section could offer a choice of part numbers and another perhaps a choice of colours. All sorts of things are possible with such a system. It still needs some work, though :-)

Mike



.



Relevant Pages

  • Typed character on other side of cursor.
    ... I am finding that when I am typing lines of text (no matter what the application) that every so often a character I have typed doesn't appear where expected but instead seems get on the right hand side of the cursor and move along as I type. ... Stan ...
    (microsoft.public.windowsxp.basics)
  • Re: keybd_event
    ... > Typing the first character in the edit1 correctly causes the ComboBox to ... > open on the row with the same character, but then any other character typed ... > goes into the ComboBox edit rather then in Edit1. ...
    (comp.lang.pascal.delphi.misc)
  • Re: asymptote/hyperbola?
    ... >> I have no interest in refuting anything in this matter. ... He's presenting a character who's talking math. ... the passage I cited does no such thing. ...
    (rec.arts.books)
  • Re: Matter by Iain M Banks
    ... Well, I've just finished second-reading Matter, and... ... what Banks is trying to do is very impressive, ... real to make an emotionally-satisfying difference to his character. ... Her emotional Sursamen/Culture loyalty dilemna seems to have been long ...
    (rec.arts.sf.written)
  • Re: Tauriel??
    ... it doesn't matter if it is a matter of a fundamental change or a ... and that means an elven character. ... My opinion of a number of Jackson's changes to /The Lord of the ... The target audience of Jackson's /The Hobbit/ films will of course be ...
    (rec.arts.books.tolkien)