?
Solved

Determining if method runs at design-time

Posted on 2003-03-09
3
Medium Priority
?
241 Views
Last Modified: 2010-04-04
!!!! DO NOT RESPOND THIS QUESTION !!!!

How to determine in the method of an component if it runs at design-time or at runtime?

I have a component which handles a message (mouse enter/leave). Running at design-time leads Delphi to crash allthrough this method works normally at runtime. How could I prevent method load (or processing message) at design-time?
0
Comment
Question by:msa2003
[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
  • 2
3 Comments
 
LVL 5

Author Comment

by:msa2003
ID: 8099314
I had already found a solution myself.

I should check if not(csDesigning in ComponentState) property.

Thanx a lot of attention. Please do not respond this question.
0
 

Accepted Solution

by:
Chmod earned 0 total points
ID: 8099593
PAQ'd & points refunded

Chmod
Community Support Moderator @Experts Exchange
0
 
LVL 5

Author Comment

by:msa2003
ID: 8101514
Thank you a lot
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 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