1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Add FocusOutline class for indicating Component keyboard focus

This commit is contained in:
ed 2021-12-20 09:40:42 +00:00 committed by Tom Poole
parent 0e24c9557e
commit 461192b355
14 changed files with 416 additions and 32 deletions

View file

@ -190,10 +190,13 @@ private:
ButtonsComponent()
{
addAndMakeVisible (radioButtons);
textButton.setHasFocusOutline (true);
addAndMakeVisible (textButton);
shapeButton.setShape (getJUCELogoPath(), false, true, false);
shapeButton.onClick = [] { AlertWindow::showMessageBoxAsync (MessageBoxIconType::InfoIcon, "Alert", "This is an AlertWindow"); };
shapeButton.setHasFocusOutline (true);
addAndMakeVisible (shapeButton);
}
@ -217,6 +220,7 @@ private:
{
b.setRadioGroupId (1);
b.setButtonText ("Button " + String (index++));
b.setHasFocusOutline (true);
addAndMakeVisible (b);
}