Article View: borland.public.cppbuilder.nativeapi
Article #17727Re: "On Screen Display" but how?
From: Remy Lebeau (TeamB)
Date: Mon, 03 Mar 2003 23:48
Date: Mon, 03 Mar 2003 23:48
19 lines
1783 bytes
1783 bytes
Are you wanting to do this with raw API only or with a VCL form? Either way, give the window the WS_EX_TRANSPARENT extended style, and then create a second window as a child that contains the actual text. In API terms, use the CreateWindowEx() function for the main window and then CreateWindow() with the "STATIC" class name for the text. In VCL terms, override the form's inherited CreateParams() method to include WS_EX_TRANSPARENT in the ExStyle field, and then use a TLabel for the text. Gambit "Mikael Halvarsson" <invalid@mail.com> wrote in message news:3e63e111$1@newsgroups.borland.com... > I've been lurking on maybe creating an simple "Always on top" > window and then display a text inside it but I dont know how to > make the window "transparent" and clickthrou and still show a > text inside it.
Technical Details
Message-ID:
<3e63e7c9@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!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e63e111$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,1f4116df6f1756e4,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-04 12:20:05 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e63e111$1@newsgroups.borland.com> Subject: Re: "On Screen Display" but how? Date: Mon, 3 Mar 2003 15:48:41 -0800 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 207.175.226.26 Message-ID: <3e63e7c9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1046734793 207.175.226.26 (3 Mar 2003 15:39:53 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail