Browse Source

Added a TextEditor::getTextToShowWhenEmpty() method

tags/2021-05-28
ed 6 years ago
parent
commit
c6502e2a83
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      modules/juce_gui_basics/widgets/juce_TextEditor.h

+ 6
- 0
modules/juce_gui_basics/widgets/juce_TextEditor.h View File

@@ -279,6 +279,12 @@ public:
*/ */
void setTextToShowWhenEmpty (const String& text, Colour colourToUse); void setTextToShowWhenEmpty (const String& text, Colour colourToUse);
/** Returns the text that will be shown when the text editor is empty.
@see setTextToShowWhenEmpty
*/
String getTextToShowWhenEmpty() const noexcept { return textToShowWhenEmpty; }
//============================================================================== //==============================================================================
/** Changes the size of the scrollbars that are used. /** Changes the size of the scrollbars that are used.
Handy if you need smaller scrollbars for a small text box. Handy if you need smaller scrollbars for a small text box.


Loading…
Cancel
Save