🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16183

Re: Can reverse video in edit control be shut off?

#16183
From: Eudy Silva
Date: Sun, 25 May 2003 22:30
27 lines
1830 bytes
Bill Carson wrote:
 > [snip]  Is there any
 > way to keep the reverse video from
 > displaying?

I guess you're using an edit box (TEdit) and the text is being
autoselected when the edit box gets focus. Take a look at the
AutoSelect property. Set it to false.

> [snip]  Maybe another control is
> better for the purpose of displaying static
> text?

For static text which the user can select and copy I like
to use an edit box with ReadOnly set to true and
Color set to clBtnFace or cl3DLight. It has nice built in
functionalities to copy, select, accelerators, etc.

If you want to completely hide the caret you can code
ActiveControl = NULL
inside the edit's OnEnter event handler.
But note this will also remove the inverted color when text
is selected.

You also migth consider using a Label instead.

Eudy
Technical Details
Message-ID: <3ED14414.2040904@directnet.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ed13bd7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a52495bb3fc3f3b6
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-25 15:32:02 PST
Message-ID: <3ED14414.2040904@directnet.com>
Date: Sun, 25 May 2003 19:30:44 -0300
From: Eudy Silva <eudy@directnet.com>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Can reverse video in edit control be shut off?
References: <3ed13bd7@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 200.152.8.215
X-Trace: newsgroups.borland.com 1053901732 200.152.8.215 (25 May 2003 15:28:52 -0700)
Lines: 28
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail