🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to disable a window in this way?

#15433
From: Remy Lebeau (TeamB)
Date: Sun, 06 Jul 2003 07:01
25 lines
2054 bytes
"JD" <nospam@nospam.com> wrote in message
news:3f07c2aa$1@newsgroups.borland.com...

> He wants to launch Form2 from Form1 using
> Form2->ShowModal(); Then, if the user tries to
> return to Form1 before Form2 is closed, he
> wants to flash Form2 as a visual que to remind
> the user to close Form2 first.

Since disabled windows cannot receive focus, he may have no choice but to
use global mouse and keyboard hooks to track window changes and test for
when the user is trying to click outside of a modal window.  Offhand, I
cannot think of any other way to do it, since I do not have BCB available at
the moment to play around with this issue.

> You can see this effect if you display any help page, click
> contents and then try to return to the help page while the
> Contents/Index/Find window is still open.

I still do not see any such blinking occur.  Perhaps it is an OS-specific
thing.  I am running Win98SE when I try this.


Gambit
Technical Details
Message-ID: <3f07c815$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f06bf1c@newsgroups.borland.com> <3f075635$1@newsgroups.borland.com> <3f0766a4$1@newsgroups.borland.com> <3f07c2aa$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,994be8bc89f21914
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-06 00:09:03 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f06bf1c@newsgroups.borland.com> <3f075635$1@newsgroups.borland.com> <3f0766a4$1@newsgroups.borland.com> <3f07c2aa$1@newsgroups.borland.com>
Subject: Re: How to disable a window in this way?
Date: Sun, 6 Jul 2003 00:01:04 -0700
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f07c815$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057474581 207.175.226.26 (5 Jul 2003 23:56:21 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail