AU & Custom look and feel

I’ve made a plugin that i want to compile on AU but it won’t i seem to get this error, And also on another plugin it keeps saying custom look and feel not found but it works on another plugin, Do you have any idea what could be the problem even though it is the same code? Thanks

Paste the full messages being reported by your compiler - otherwise its very difficult to help you debug this issue.

This is how i wrote the words that keep moving for the interface

g.setFont(juce::FontOptions(“Bodoni 72 SmallCaps”, 20.5f, juce::Font::plain));
g.drawFittedText(“r.com”, getX() +20, getY() -0.5, getWidth(), getHeight(), juce::Justification::topLeft,1);

g.setFont(juce::FontOptions("Rx Script", 27.5f, juce::Font::italic));
g.drawFittedText("R", getX() +20.0, getY() -10.0, getWidth(), getHeight(), juce::Justification::bottomLeft,1);

}

void GainAudioProcessorEditor::resized()
{
// This is generally where you’ll want to lay out the positions of any
// subcomponents in your editor..


And this is the other error that can’t seem to find my dial for the interface for it to rotate. Thanks

getX() and getY() will return the position of the component relative to its parent. When you are drawing in the paint function the graphics context is relative to the component (not its parent). This way drawing something at position 0, 0 will always be in the top left corner of that component. You shouldn’t have to consider the position of the component when drawing.

For your header include issue you need to consider how the compiler finds header files. There are two ways

  1. It searches from the directory that the file with the include statement is in

So in your case this would mean “ImageKnob.h” would need to be located in the same directory as the file displaying the error you’ve shown.

Alternatively the include path could be something like

#include "../Images/ImageKnob.h"

This would mean relative to the file trying to include ImageKnob.h it would be located up one directory and then in a directory called Images.

  1. Alternatively if the compiler doesn’t find the file relative to the file trying to include it, it will search in any “header search paths” that have been provided. You can provide these search paths via the Projucer or CMake.

Thanks for that, I will try it to see if it works.

anthony-nicholls
May 7 |

  • | - |

getX() and getY() will return the position of the component relative to its parent. When you are drawing in the paint function the graphics context is relative to the component (not its parent). This way drawing something at position 0, 0 will always be in the top left corner of that component. You shouldn’t have to consider the position of the component when drawing.

For your header include issue you need to consider how the compiler finds header files. There are two ways

  1. It searches from the directory that the file with the include statement is in

So in your case this would mean “ImageKnob.h” would need to be located in the same directory as the file displaying the error you’ve shown.

Alternatively the include path could be something like

#include "../Images/ImageKnob.h"

This would mean relative to the file trying to include ImageKnob.h it would be located up one directory and then in a directory called Images.

  1. Alternatively if the compiler doesn’t find the file relative to the file trying to include it, it will search in any “header search paths” that have been provided. You can provide these search paths via the Projucer or CMake.