Solved

procedure WndProc

Posted on 1998-07-01
1
258 Views
Last Modified: 2010-04-03
Im making an application that, initialy, it runs invisible. So, the property Form1.Visible is initialy False. But, when it starts, the application reads the procedure WndProc, and it turns that property to True. I tried to put an If structure at WndProc, like:
if a=0 then
  Form1.Visible := False
else
  Form1.Visible := True; ,
but, when i do that, the application doesn't appears anymore. What can i do and why the procedure WndProc is so unstable (it's readen more than 1000000 times at the start up).
0
Comment
Question by:lifeson
1 Comment
 
LVL 4

Accepted Solution

by:
d003303 earned 70 total points
ID: 1356785
Yo,
modify your project's source code like this:

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Form1.Visible := false; // if not already set in object inspector
  Application.ShowMainForm := false;
  Application.Run;
end.

Slash/d003303
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

706 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now