thanks very much for this. it getting there.
i created then components and then this is my .cpp file
openWindow.onClick = [&]
window = new TopLevelWindow(“Window”,true);
window->centreWithSize (600, 400);
setSize (600, 400);
void MainComponent::paint (Graphics& g)
g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId));
g.setFont (Font (16.0f));
g.drawText ("Hello World!", getLocalBounds(), Justification::centred, true);
openWindow.setBounds (10, 10, 70, 25);
this compiles but crashes when i try to open a window. the break point is:
void Component::paint (Graphics&)
// if your component is marked as opaque, you must implement a paint
// method and ensure that its entire area is completely painted.
jassert (getBounds().isEmpty() || ! isOpaque());
do i need to add some more code to tell juce what the window should look like?