Resizable window border color


#1

Is there any way to control the border color of a resizable window. I want the border to be transparent if possible and if that doesn’t work, it would be nice to control the border size and set it 1px.
Thanks a lot!


#2

override this:

virtual void ResizableWindow::LookAndFeelMethods::drawResizableWindowBorder (Graphics &, int w, int h, const BorderSize< int > &border, ResizableWindow &)=0 

take a look at ResizableWindow::paint() to see where it comes from, and look up how to use LookAndFeel objects as well.


#3

That’s what I have tried. The method in my L&F looks like this:

void MeshLookAndFeel::drawResizableWindowBorder(Graphics& g, int /w/, int /h/,
const BorderSize& border, ResizableWindow&)
{
g.fillAll(Colour(0x00ffffff));
}

but the border is still there and I’m not able to change the size.

Thanks


#4

Show your code of how your custom lookAndFeel is assigned to your class


#5

In my main class I have:

CustomLookAndFeel = new CustomLookAndFeel();
LookAndFeel::setDefaultLookAndFeel(CustomLookAndFeel);

Every other L&F Method is working fine so far.


#6

add a breakpoint inside ResizableWindow::paint() and make sure your lookAndFeel is being used for the call to drawResizableWindowBorder.