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:
parent
0e24c9557e
commit
461192b355
14 changed files with 416 additions and 32 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue