?
Solved

Real world hourglass cursor

Posted on 1998-07-07
6
Medium Priority
?
264 Views
Last Modified: 2012-06-22
I don´t want the my app. to process any keyboard or mouseevents while the cursor state is crHourGlass.
What is the best way to do this ? (Considering overhead and ease of implementation)

  Michael
0
Comment
Question by:miv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 3

Expert Comment

by:Matvey
ID: 1357222
Make your form disabled - Form1.Disabled := True;
0
 
LVL 3

Expert Comment

by:Matvey
ID: 1357223
Make your form disabled - Form1.Disabled := True;
0
 
LVL 1

Author Comment

by:miv
ID: 1357224
Does not work. I can still select menu items and press buttons e.t.c.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:Matvey
ID: 1357225
I tested it with all forms: Normal, MDI, everything! I set the ENABLED property of the FORM to FALSE and it can't receve any clicks, key strokes, menu selects, move_window message - nothing! You can't even close it with Alt+F4!

What's wrong here?

(PS sorry, there is no such property as Disabled like i posted in the first comment, it's "Enabled" instead...)
0
 
LVL 1

Author Comment

by:miv
ID: 1357226
The non-modal forms created by the form, can still recieve input, but you´re right, it works for the form where I set enabled:=false, sorry.
Is there any easy and fast way to disable all "child" windows.
I could traverse TForm.Controls and do it that way, but that seems to be slow ?

ps. Just answer the Q again, I will award you the points.
0
 
LVL 3

Accepted Solution

by:
Matvey earned 360 total points
ID: 1357227
You can disble all child windows like this:

  with Form1 do for I := MDIChildCount-1 downto 0 do
     MDIChildren[I].Enabled := False

-I don't think it's slow...

Sorry for the misunderstaning and good luck,
bosism@netvision.net.il
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month9 days, 1 hour left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question