Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application without a Main Form

Status
Not open for further replies.

Griffyn

Programmer
Jul 11, 2002
1,077
AU
Hi all,

I'm working on this game that doesn't require a main form. The flow structure is sorta like this:

[ul]
[li]Show SelectProfile form[/li]
[li]if new profile selected, show CreateProfile form[/li]
[li]if profile is in the middile of a scenario, ResumeScenario[/li]
[li]otherwise, call StartNewScenario[/li]
[/ul]

At the moment, I've got all my forms out of the Auto-Create box, except for one, which is invisible, and contains only a Timer control that kicks in after 500ms and executes the code as above.

My question is: Is there a cleaner way of doing this? I would prefer not to need to have this invisible form at all, and have my program go straight into my code as above which creates and shows all the necessary forms.
 
Use a data module rather than an invisible form.
this can contain non visual controls e.g timers but has no actual visible form, however it will appear in your forms list so you can make it the 'main' unit.


Steve:
A Delphi Programmer
A Feersum Endjinn indeed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top