diff --git a/examples/HelloWorld/Source/MainComponent.cpp b/examples/HelloWorld/Source/MainComponent.cpp index 883dd026f1..ffff1c1b3e 100644 --- a/examples/HelloWorld/Source/MainComponent.cpp +++ b/examples/HelloWorld/Source/MainComponent.cpp @@ -7,7 +7,7 @@ the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded and re-saved. - Created with Projucer version: 4.2.0 + Created with Projucer version: 4.2.1 ------------------------------------------------------------------------------ @@ -29,8 +29,11 @@ //============================================================================== MainComponent::MainComponent () { - addAndMakeVisible (helloWorldLabel = new Label (String::empty, - "Hello World!")); + //[Constructor_pre] You can add your own custom stuff here.. + //[/Constructor_pre] + + addAndMakeVisible (helloWorldLabel = new Label (String(), + TRANS("Hello World!"))); helloWorldLabel->setFont (Font (40.00f, Font::bold)); helloWorldLabel->setJustificationType (Justification::centred); helloWorldLabel->setEditable (false, false, false); @@ -38,8 +41,8 @@ MainComponent::MainComponent () helloWorldLabel->setColour (TextEditor::textColourId, Colours::black); helloWorldLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); - addAndMakeVisible (quitButton = new TextButton (String::empty)); - quitButton->setButtonText ("Quit"); + addAndMakeVisible (quitButton = new TextButton (String())); + quitButton->setButtonText (TRANS("Quit")); quitButton->addListener (this); @@ -85,6 +88,9 @@ void MainComponent::paint (Graphics& g) void MainComponent::resized() { + //[UserPreResize] Add your own custom resize code here.. + //[/UserPreResize] + helloWorldLabel->setBounds (152, 80, 296, 48); quitButton->setBounds (getWidth() - 176, getHeight() - 60, 120, 32); internalPath1.clear(); @@ -136,10 +142,10 @@ BEGIN_JUCER_METADATA - s 136 80 q 176 24 328 32 q 472 40 472 104 q 472 192 232 176 l 184 216 l 200 168 q 96 136 136 80 x