Change Value of ProgressBar and make it without rounded Borders

I know stupid Questions but I can not find any setValue, value or setProgressValue Methods or similar. Also I don’t know how to remove the rounded Corners.

Thanks a lot!!

Edit

To easy. When I instantiate the ProgressBar I needed to pass a double Reference. I just need to change this references Value and the ProgressBar updates its Value.


...
double prog = 0.0;  // <<< The Double Reference
...
EightAudioProcessorEditor::EightAudioProcessorEditor (EightAudioProcessor& p)
    : AudioProcessorEditor (&p),
    processor (p),
    keyboardComponent(p.keyboardState, MidiKeyboardComponent::horizontalKeyboard),
    menuBar(this),
    fileLoaderProgressBar(prog)  // <<< Instantiate the ProgressBar with the double Reference
{
    addAndMakeVisible(&menuBar);

    addAndMakeVisible(fileLoaderProgressBar);
...
prog = 0.3;  // <<< Changing the Reference changes the ProressBar as well
...