🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to hide caret in Edit Box?

#9985
From: Boba
Date: Thu, 27 May 2004 22:31
26 lines
1895 bytes
"Eugene" <eugene@dmx.de> wrote in message
news:40acc205$1@newsgroups.borland.com...
>
> Hi,
>
> I would like to ask how to hide the caret totally in controls.I can hide
it with HideCaret, e.g:
> HideCaret(Edit1->Handle);
> But i must write it to OnChange, OnClick and FormCreate.By the other hand
another people has asked this here and got a complete answer with 2 lines of
code.I noted that before but now i can not find it.
> In short sentences, how can i hide caret in TEdit completely?
>
> Eugene
Saying frankly,  I don't remember that  'complete answer with 2 lines of
code',
and  just because VCL does not support MS windowing 100%,  I had to create
my
own carret with all the properties it is suppose to have.  As for the
HideCaret
API call, NT environment is pretty stingy about any resource(s) and it may
return
the ERROR_ACCESS_DENIED error code with GetLastError. I wish you good luck
'cause
you'll need it - that's why there is no TCaret class in BCB v.<=3.
.Boba
Technical Details
Message-ID: <40b66bae@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40acc205$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f48a98caca73cc37
X-Google-Attributes: gid10cc67,public
From: "Boba" <Boba@somewhere.world>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40acc205$1@newsgroups.borland.com>
Subject: Re: How to hide caret in Edit Box?
Date: Thu, 27 May 2004 17:31:00 -0500
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 208.210.156.32
Message-ID: <40b66bae@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1085696942 208.210.156.32 (27 May 2004 15:29:02 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!ecngs!feeder.ecngs.de!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail