addAndMakeVisible Problem - Newbie

Hi all,
I’m total newbie. I want to learn Juce and Visual C++. I’m app and web developer.
That’s my problem.
I’m creating a new plugin with juce.
I’m trrying to add combobox in a fixed layout.
I added this code inside plugineditor.h

void MidiSenderAudioProcessorEditor::paint (Graphics& g)
    // (Our component is opaque, so we must completely fill the background with a solid colour)
    g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId));

    g.setColour (Colours::white);
    g.setFont (15.0f);
    g.drawFittedText ("Hello World!", getLocalBounds(), Justification::centred, 1);

    ComboBox styleMenu;

    // add items to the combo-box
    styleMenu.addItem("Plain", 1);
    styleMenu.addItem("Bold", 2);
    styleMenu.addItem("Italic", 3);

But combobox never is shown.

Could you helme?

Kind Regards

Hello and welcome, @quasimidi

The JUCE tutorials are a great starting place, so I’d suggest you start with those. Specifically, the issue you’re having with a ComboBox Component not appearing is addressed here:

Follow the tutorial, and you’ll see you just haven’t gotten to defining the position of the Component in the resized method yet.

Kind Regards. I’m going to follow this tutorials. I Think that the lifecycle is nor defined propertly in tutorials. Thanks in advanced