1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

Fixed a TabbedComponent bug. Fixed fallback fonts on win32.

This commit is contained in:
Julian Storer 2010-11-05 10:21:28 +00:00
parent 030489f086
commit aa71477712
24 changed files with 1097 additions and 1154 deletions

View file

@ -29,6 +29,7 @@ BEGIN_JUCE_NAMESPACE
#include "juce_Component.h"
#include "juce_ModalComponentManager.h"
#include "windows/juce_ComponentPeer.h"
#include "../../events/juce_MessageManager.h"
#include "../../application/juce_Application.h"
@ -211,6 +212,34 @@ void ModalComponentManager::handleAsyncUpdate()
}
}
void ModalComponentManager::bringModalComponentsToFront()
{
ComponentPeer* lastOne = 0;
for (int i = 0; i < getNumModalComponents(); ++i)
{
Component* const c = getModalComponent (i);
if (c == 0)
break;
ComponentPeer* peer = c->getPeer();
if (peer != 0 && peer != lastOne)
{
if (lastOne == 0)
{
peer->toFront (true);
peer->grabFocus();
}
else
peer->toBehind (lastOne);
lastOne = peer;
}
}
}
class ModalComponentManager::ReturnValueRetriever : public ModalComponentManager::Callback
{
public: