Article View: borland.public.cppbuilder.nativeapi
Article #13770Re: TrayIcon problem
From: vERUs
Date: Fri, 12 Sep 2003 16:36
Date: Fri, 12 Sep 2003 16:36
16 lines
1707 bytes
1707 bytes
> You can't change the FormStyle property on the fly, the VCL doesn't
support
> that correctly. Your best bet is to just leave it as fsNormal and call
> SetWindowPos() manually.
That explains a few things, that solved the problem. With the code below,
the trayicon is no longer affected:
if (Alltidverst1->Checked) SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0,
0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
else SetWindowPos(Handle, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOMOVE |
SWP_NOSIZE | SWP_SHOWWINDOW);
Thanks!
/ vERUs
Technical Details
Message-ID:
<3f61f63a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f60760e@newsgroups.borland.com> <3f60a272@newsgroups.borland.com> <3f610ea7@newsgroups.borland.com> <3f6110cb@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4c15741c747f36c X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-12 09:39:40 PST From: "vERUs" <-verus-@telia.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f60760e@newsgroups.borland.com> <3f60a272@newsgroups.borland.com> <3f610ea7@newsgroups.borland.com> <3f6110cb@newsgroups.borland.com> Subject: Re: TrayIcon problem Date: Fri, 12 Sep 2003 18:36:40 +0200 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 NNTP-Posting-Host: 217.210.229.131 Message-ID: <3f61f63a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1063384634 217.210.229.131 (12 Sep 2003 09:37:14 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail