Guys, before I spent all day trying to figure out why I´m doing wrong, please, could someone share some tips on this? The deal is, I created my own LookAndFeel and I pass this to my plugin. So far everything works but the Alert Box. Any idea why? :oops: Thanks!
[code]class LookAndFeelEx: public LookAndFeel
{
public:
void drawScrollbar (Graphics& g, ScrollBar& scrollbar, int x, int y, int width, int height, bool isScrollbarVertical, int thumbStartPosition, int thumbSize, bool isMouseOver, bool isMouseDown);
void drawScrollbarButton (Graphics& g, ScrollBar& scrollbar, int width, int height, int buttonDirection, bool isScrollbarVertical, bool isMouseOverButton, bool isButtonDown);
void drawTreeviewPlusMinusBox (Graphics& g, int x, int y, int w, int h, bool isPlus, bool isMouseOver);
void drawFileBrowserRow (Graphics& g, int width, int height,const String& filename, Image* icon,const String& fileSizeDescription,const String& fileTimeDescription,bool isDirectory,bool isItemSelected,int itemIndex,DirectoryContentsDisplayComponent& component);
void drawRotarySlider (Graphics& g, int x, int y, int width, int height, float sliderPosProportional, float rotaryStartAngle, float rotaryEndAngle, Slider& slider);
Label displayLabel;
Image scrollBarImages[2][2][3];
Image scrollButtons;
Image plusMinus;
Image treeFolder;
Colour treeViewTextColour;
Colour treeViewTextColourSelectedBack;
Colour treeViewTextColourSelected;
};
[/code]
The above works, but once I add:
virtual void drawAlertBox (Graphics& g,
AlertWindow& alert,
const Rectangle<int>& textArea,
TextLayout& textLayout);
And, for instance, I just leave the code blank, it still uses the regular LookAndFeel code, not the one inside my LookAndFeelEx code.
Ahhhhhhh, and I can´t figure out why…
Best Regards, WilliamK