mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
Couple of tweaks to the introjucer new project template.
This commit is contained in:
parent
c0e2afb075
commit
b61af93f1a
3 changed files with 14 additions and 12 deletions
|
|
@ -27,7 +27,7 @@ public:
|
|||
{
|
||||
// This method is where you should put your application's initialisation code..
|
||||
|
||||
mainWindow = new MainWindow();
|
||||
mainWindow = new MainWindow (getApplicationName());
|
||||
}
|
||||
|
||||
void shutdown() override
|
||||
|
|
@ -60,17 +60,18 @@ public:
|
|||
class MainWindow : public DocumentWindow
|
||||
{
|
||||
public:
|
||||
MainWindow() : DocumentWindow ("MainWindow",
|
||||
Colours::lightgrey,
|
||||
DocumentWindow::allButtons)
|
||||
MainWindow (String name) : DocumentWindow (name,
|
||||
Colours::lightgrey,
|
||||
DocumentWindow::allButtons)
|
||||
{
|
||||
setUsingNativeTitleBar (true);
|
||||
setContentOwned (new CONTENTCOMPCLASS(), true);
|
||||
|
||||
centreWithSize (getWidth(), getHeight());
|
||||
setVisible (true);
|
||||
}
|
||||
|
||||
void closeButtonPressed()
|
||||
void closeButtonPressed() override
|
||||
{
|
||||
// This is called when the user tries to close this window. Here, we'll just
|
||||
// ask the app to quit when this happens, but you can change this to do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue