Article View: borland.public.cppbuilder.nativeapi
Article #4963Re: stop undocked controls from closing
From: Remy Lebeau (TeamB)
Date: Sat, 15 Oct 2005 00:13
Date: Sat, 15 Oct 2005 00:13
27 lines
2042 bytes
2042 bytes
"Stefano Bonifazi" <stefboombastic@libero.it> wrote in message news:43502184@newsgroups.borland.com... > Well the problem was that when undocking the controls they > created their floating window by themselves so I had no way > to manage their OnClose event at all :( Sorry, I misread what you said before. > But I found that I can set the class of the window they use as floating > window when undocked by the "FloatingDockSiteClass" property. I have never seen that property before. I'll have to look at that, it might help me with some issues in my own projects ;-) > So now I implemented a descendant of TCustomDockForm to > use with them, that does not show the "biSystemMenu" at all :-) That will not prevent a window from being closed at all. A user can still use ALT-F4 to close an active window even when it does not have a X button or a system menu. Since you are deriving a new class, you can override the CloseQuery() method, or override the WndProc() method to intercept the WM_SYSCOMMAND or WM_CLOSE message. Gambit
Technical Details
Message-ID:
<435049b2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<434ffd95$1@newsgroups.borland.com> <43501a5f@newsgroups.borland.com> <43502184@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,30cfa311941310b6 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: <434ffd95$1@newsgroups.borland.com> <43501a5f@newsgroups.borland.com> <43502184@newsgroups.borland.com> Subject: Re: stop undocked controls from closing Date: Fri, 14 Oct 2005 17:13:00 -0700 Lines: 29 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: <435049b2$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129335218 68.69.17.41 (14 Oct 2005 17:13:38 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.volia.net!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail