jamesa
21-02-2005, 04:09 PM
Hello,
What is the best technique to create an application (game) that use only a single form?
I dont like to have a lot of popup window.
For example, I have 3 screen layouts :
- Menu
- Game Play
- Options
The easiest way is to create "MainForm" for the Menu screen, and 2 other forms for the Game Play and the Options screen.
What I want to achieve is, for those 3 screens, I use only one form.
I tought that I will use PageControl component, and each screen will be created in the "page". This will work well, because I virtually can hide screens (pages), and display it using PageControl.TabIndex := X.
But, I cant REMOVE the "Tabbed" control :( .
Then I came up with idea to use Frame. But it is hard to manage, because I must put all frames (screens) into that single form, and control the display by using .visible property.
So, what can you suggest?
Thanks
What is the best technique to create an application (game) that use only a single form?
I dont like to have a lot of popup window.
For example, I have 3 screen layouts :
- Menu
- Game Play
- Options
The easiest way is to create "MainForm" for the Menu screen, and 2 other forms for the Game Play and the Options screen.
What I want to achieve is, for those 3 screens, I use only one form.
I tought that I will use PageControl component, and each screen will be created in the "page". This will work well, because I virtually can hide screens (pages), and display it using PageControl.TabIndex := X.
But, I cant REMOVE the "Tabbed" control :( .
Then I came up with idea to use Frame. But it is hard to manage, because I must put all frames (screens) into that single form, and control the display by using .visible property.
So, what can you suggest?
Thanks