Article View: borland.public.cppbuilder.nativeapi
Article #17471Re: Few Memo control questions
From: Asger J�rgensen
Date: Tue, 11 Mar 2003 18:50
Date: Tue, 11 Mar 2003 18:50
20 lines
1452 bytes
1452 bytes
Hi ScOe In article <3e6e2772@newsgroups.borland.com>, ScOe says : > Problem is in VK_BACK .. if overwrite is turned on i use this: > Memo1->SelStart --; > Memo1->SelLength = 1; > Memo1->SelText = ' '; > Memo1->SelStart --; You should not use -- and ++ on properties since they have no return values You can be sure that it will work. You have to do like this: Memo1->SelStart = Memo1->SelStart - 1; You might also need to check if the value is less then 0 or higher then text length. Best regards Asger
Technical Details
Message-ID:
<MPG.18d84e5f94012e169896a2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e6e2772@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,ae06052f4c6d49c2,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-12 11:23:43 PST From: Asger J�rgensen <Asger.Pnotthis@AJ-World.dk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Few Memo control questions Date: Tue, 11 Mar 2003 19:50:28 +0100 Message-ID: <MPG.18d84e5f94012e169896a2@newsgroups.borland.com> References: <3e6e2772@newsgroups.borland.com> Organization: AJ-World X-Newsreader: MicroPlanet Gravity v2.50 NNTP-Posting-Host: 80.161.83.157 X-Trace: newsgroups.borland.com 1047408390 80.161.83.157 (11 Mar 2003 10:46:30 -0800) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail