mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-24 01:54:22 +00:00
Added device detection for DirectSound. New method addToDesktop() for ResizableWindow.
This commit is contained in:
parent
fb58d0c380
commit
dbe5768527
9 changed files with 404 additions and 489 deletions
|
|
@ -37,15 +37,16 @@ ApplicationCommandManager* commandManager = nullptr;
|
|||
MainWindow::MainWindow()
|
||||
: DocumentWindow (JUCEApplication::getInstance()->getApplicationName(),
|
||||
Colour::greyLevel (0.6f),
|
||||
DocumentWindow::allButtons)
|
||||
DocumentWindow::allButtons,
|
||||
false)
|
||||
{
|
||||
setUsingNativeTitleBar (true);
|
||||
setContentOwned (new ProjectContentComponent(), false);
|
||||
|
||||
#if ! JUCE_MAC
|
||||
#if ! JUCE_MAC
|
||||
JucerApplication* app = static_cast<JucerApplication*> (JUCEApplication::getInstance());
|
||||
setMenuBar (app->menuModel);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
setResizable (true, false);
|
||||
|
||||
|
|
@ -77,6 +78,11 @@ MainWindow::MainWindow()
|
|||
|
||||
//getPeer()->setCurrentRenderingEngine (0);
|
||||
getLookAndFeel().setColour (ColourSelector::backgroundColourId, Colours::transparentBlack);
|
||||
|
||||
setVisible (true);
|
||||
addToDesktop();
|
||||
|
||||
getContentComponent()->grabKeyboardFocus();
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue