where can i downoad 6.0.7 juce ?. still unify developer have no time and i guess no motivation to let unify work on hidpi correct. also many other plugins i guess juce based have problems in hidpi.it seem too much work to use newer juce and change much code. I test 7.0.5 current build to open a window in the way he post examplecode and can work in 6.0.7
#pragma once
#include <JuceHeader.h>
class AboutBox : public Component
{
public:
AboutBox();
void paint (Graphics&) override;
void resized() override;
static void launch();
private:
Label copyrightLine;
Label vstLine;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AboutBox)
};
as aboutbox.h in projucer to the example plugin project. there come class Component is not find. I change class AboutBox : public juce::Component then come errors on void paint (Graphics&) override;
when i remove this line for test next error is on
Label copyrightLine;
and
Label vstLine;
so please help to get with #define or replacement class code old code working without work. #define can also have parameters https://cplusplus.com/doc/tutorial/preprocessor/ I develop on compiler and gui system but i must admit the gui system of juce look really strange for me. If i can see working child window gui code for newest juce for hidpi i maybe have good chances to write c++ preprocessor macros that translate old code syntax into new code syntax
so please tell how i need change the code that it work ok
aboutbox.cpp look as this
#include āAboutBox.hā
AboutBox::AboutBox()
{
copyrightLine.setColour(Label::textColourId, Colours::white);
copyrightLine.setJustificationType(Justification::horizontallyCentred);
copyrightLine.setText(ā(c)2019 The Very Big Corporation of Americaā, NotificationType::dontSendNotification);
addAndMakeVisible(copyrightLine);
vstLine.setText("VST PlugIn Technology by Steinberg Media Technologies", NotificationType::dontSendNotification);
vstLine.setJustificationType(Justification::horizontallyCentred);
addAndMakeVisible(vstLine);
}
void AboutBox::paint (Graphics& g)
{
g.fillAll(getLookAndFeel().findColour(ResizableWindow::backgroundColourId));
}
void AboutBox::resized()
{
auto bounds = getLocalBounds().reduced(10);
copyrightLine.setBounds(bounds.removeFromTop(24));
vstLine.setBounds(bounds.removeFromTop(24));
}
void AboutBox::launch()
{
DialogWindow::LaunchOptions options;
options.dialogTitle = āAbout this programā;
AboutBox* view = new AboutBox;
view->setBounds(0, 0, 420, 80);
options.content.set(view, true);
options.useNativeTitleBar = false;
options.launchAsync();
}