Jørgen Granborg
May 26th, 1999, 01:33 PM
How to set the insertion point in a Richt Edit Control.
Sorry I know it must be simple.
Sorry I know it must be simple.
|
Click to See Complete Forum and Search --> : Rich Edit Control Jørgen Granborg May 26th, 1999, 01:33 PM How to set the insertion point in a Richt Edit Control. Sorry I know it must be simple. Simon Rose May 26th, 1999, 01:56 PM Hi, I think you probably need the SetSel member function of the RichEdit control. To set it at the 100 character, something like SetSel(100, 100) should do. Hope this helps, Simon Jørgen Granborg May 26th, 1999, 04:13 PM Thanks a lot, the problem I have with this method is. I am writing a document where I would like to write the first line and protect it. I have use the code in the Richeditctrl section here. When i Protect the first line, the user can append to the first line, and I dont want him to that. If I make the protected character the lenght of the first line+ 1 and place the insertion point with your suggestions, the user can´t write anything before using the arrows. Strange... codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |