🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Trapping button message?

#14815
From: Vladimir Afanasyev
Date: Wed, 30 Jul 2003 16:22
16 lines
1536 bytes
"Mattias Carleson" <mattias.carleson@commentor.se> wrote:
>Hi!
>The trapping seems to work, but the ControlAtPos() doesnt return anything
>but NULL
>although the coordinates in 'TPoint click' is within the TSpeedButtons
>limits. Any idea why?
>My speedbutton is placed upon a TCoolBar.

May be because... 

I put SpeedButtons on form and it works.
But really this code does not work for TCoolBar.
For (click, true, true) it returns bar.
What about Rofolfo's ideas?
Vladimir.
Technical Details
Message-ID: <3f27f0ab$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f26ea7c$1@newsgroups.borland.com> <3f27c07b$1@newsgroups.borland.com> <3f27eaec$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,77c37ce9ffa755d1
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-30 09:29:57 PST
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Trapping button message?
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 212.82.216.226 212.82.216.226    
X-Forwarded-For: 192.168.0.147
References:  <3f26ea7c$1@newsgroups.borland.com> <3f27c07b$1@newsgroups.borland.com> <3f27eaec$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3f27f0ab$1@newsgroups.borland.com>
Date: 30 Jul 2003 09:22:03 -0700
X-Trace: newsgroups.borland.com 1059582123 207.105.83.65 (30 Jul 2003 09:22:03 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail