This seems wrong to me since getName() is the Name of a component which ought to be fixed once the button is instantiated regardless of what is shown on the button. TextButton uses Button::getButtonText() to define the caption. Shouldnt this apply to DrawableButton too ?

i am attempting to create my own “custom” version of
DrawableButton, so i created copies of DrawableButton.h and DrawableButton.cpp and renamed the source files and the names of the class from DrawableButton to “Bevel_Button” .

for the time being i simply left the new versions in the same directory as the
juce control source and added the two files to XCode. I then via macro - simply “pointed” an existing subclass of DrawableButton that i already had ( named “Bevelbutton”) , to Bevel_Button.

Even though i hadnt gotten around to doing any modifications to the code ( APART from renaming all the class names from “DrawableButton” to “Bevel_Button” when i do a build - i get a clean compile with no compile errors but some linker errors:

( the subclass that was previously inherited from DrawableButton compiled and linked fine with no errors.)