🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: stop undocked controls from closing

#4968
From: Stefano Bonifazi
Date: Sun, 16 Oct 2005 18:00
40 lines
2703 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:435049b2$1@newsgroups.borland.com...
>
> "Stefano Bonifazi" <stefboombastic@libero.it> wrote in message
> news:43502184@newsgroups.borland.com...
>
>> 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 ;-)

Yes maybe it's a new property of BCB6 ... I don't remember it with BCB5 ... 
And I found other nice properties connected to Docking stuff that I never 
heard about before ... maybe they renewed "Docking" !?!
 >
>> 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.

Yes and I've already overridden CloseQuery ... but then I found that 
TCustomDockForm::Close acts "like" setting Visible=false of the undocked 
control ... and in my application it's more usefull letting the user to 
"hide" the floating window by pushing the "x" and then make it again visible 
programmately whenever needed :-)

>
>
> Gambit
>
Who other so great ? :) ... Thank You very much Mr. Gambit
Stefano B. 
Technical Details
Message-ID: <43529492@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.media.kyoto-u.ac.jp!msrn-out!msrn-in!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <434ffd95$1@newsgroups.borland.com> <43501a5f@newsgroups.borland.com> <43502184@newsgroups.borland.com> <435049b2$1@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: "Stefano Bonifazi" <stefboombastic@libero.it>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <434ffd95$1@newsgroups.borland.com> <43501a5f@newsgroups.borland.com> <43502184@newsgroups.borland.com> <435049b2$1@newsgroups.borland.com>
Subject: Re: stop undocked controls from closing
Date: Sun, 16 Oct 2005 20:00:17 +0200
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 151.28.93.234
Message-ID: <43529492@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1129485458 151.28.93.234 (16 Oct 2005 10:57:38 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.media.kyoto-u.ac.jp!msrn-out!msrn-in!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail