🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Draw WinControls on form

#5706
From: Remy Lebeau (TeamB)
Date: Tue, 19 Jul 2005 16:26
36 lines
2241 bytes
"Thorsten Kettner" <QUESTIONBYthorsten.kettner@otto.de> wrote in message
news:42dcddc7$1@newsgroups.borland.com...

> Are you sure, Remy? I doubt that. If I click a control
> in the IDE, it doesn't get focus (no focus rect!).

The VCL intercepts the mouse clicks internally and forwards them to the IDE
for processing.  But when you work in a designer, you are still working with
actual object instances nontheless.

> A button doesn't get lowered and raised when I click it, a
> radiobutton doesn't get checked when I click it.

Not by default, but they can if they wanted to.  At design time, when the
user clicks on a control, the IDE sends it a CM_DESIGNHITTEST message.  If
the control responds to the message, the click is directed to the control
and processed normally.  If the control does not respond, then the click is
processed by the IDE.

> Do you think they intercept all this standard behaviour somehow?

Yes.

> Well, thinking about it... maybe I could lay a totally trans-
> parent form on top of the other, thus preventing any mouse
> operation on my original form and its controls.

That is not necessary.

> Has anybody else a solution for my original drawing problem?

Again, just use real objects and let them paint themselves normally.


Gambit
Technical Details
Message-ID: <42dd2a41$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42dbd87f$1@newsgroups.borland.com> <42dbe2e2$3@newsgroups.borland.com> <42dcddc7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c52395efb5c800b0
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42dbd87f$1@newsgroups.borland.com> <42dbe2e2$3@newsgroups.borland.com> <42dcddc7$1@newsgroups.borland.com>
Subject: Re: Draw WinControls on form
Date: Tue, 19 Jul 2005 09:26:24 -0700
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42dd2a41$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1121790529 68.69.17.41 (19 Jul 2005 09:28:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail