I’ve been trying for a few days but i can’t for the life of me get this thing to work. I’m trying to replace the close button button but overrideing the
createDialogBoxCloseButton() method in my own look and feel object. then set the main dialog windows lookandFeel to my new object.
i was wondering is it even possable to replace the ShapeButton used by the default with an Image Button?
here is an example of my method,
Button* closeStyle::createDialogBoxCloseButton()
{
ImageButton* const cb = new ImageButton (T("close"));
cb->setImages(true,false,true,closeNorm,1,Colours::transparentBlack,closeOver,1,Colours::transparentBlack,closeDown,1,Colours::transparentBlack,0.0);
return cb;
}