🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Draw WinControls on form

#5715
From: Thorsten Kettner
Date: Thu, 21 Jul 2005 14:41
25 lines
2116 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote:
>Again, just use real objects and let them paint themselves 
>normally.

Hi Remy, I tried WM_NCHITTEST, but am unsuccesful somehow.
What I need for my IDE is to receive all the mouse events 
(move, click, startdrag, and so on), only the control must not 
get focus and must not show its default clicked bahaviour
(which is button getiing lowered and raised, radiobutton 
getting checked, checkbox toggling checked state).

Is this really as simple as you say?

I would like to try it, but don't know how to tell a VCL control
"don't do your default behaviour, just give me the events".


PS: I still think that if I rendered my control to a paintbox 
for instance, I would get all mouse events (of the paintbox),
but no default control mouse behaviour, as the paint box just 
represents the control, but it is not the control itself. That
sounds so simple. Only I don't know how to make my control 
render itself to another canvas. Well I asked this question in
the graphics group, so maybe I'll get an answer to this there.
Technical Details
Message-ID: <42dfb413$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!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> <42dd2a41$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: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@ott.de>
Sender: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@ott.de>
Reply-To: "Thorsten Kettner" <QUESTIONBYthorsten.kettner@ott.de>
Subject: Re: Draw WinControls on form
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 80.85.196.92     
References: <42dbd87f$1@newsgroups.borland.com> <42dbe2e2$3@newsgroups.borland.com> <42dcddc7$1@newsgroups.borland.com> <42dd2a41$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <42dfb413$1@newsgroups.borland.com>
Date: 21 Jul 2005 07:41:23 -0700
X-Trace: newsgroups.borland.com 1121956883 207.105.83.66 (21 Jul 2005 07:41:23 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail