Hi all,
I am trying to use ResizableBorderComponent object to handle resizing of my_Component. The problem is that the resizing doesn’t work. Actually, the breakpoints in ResizableBorderComponent::mouseDown() and .mouseDragg() etc, don’t even get hit when I click/move the mouse
over the edge of my_Component().
Below are the relevant pieces of my code.
.h file
class my_Component : public Component,
public ComponentBoundsConstrainer
{
…
private:
ComponentDragger dragger;
ResizableBorderComponent* border;
…
}
.cpp
my_Component::my_Component(int x, int y, int X, int Y):
border(0) ,borderThickness(10) // it’s pretty thick
{
addChildComponent (border =
new ResizableBorderComponent(this,this));
…
border->setBorderThickness (BorderSize (borderThickness));
border->setBounds(this->getBounds());
border->setVisible(true);
…
}
Also, there are no other components on top of the border or on my_Component.
I would kindly appreciate any suggestions.
P.S.
I have an equivalent code using of ResizableWindow, but I really
need to find out why the ResizableBorderComponent doesn’t work.
:roll: