If your button’s constructor has a parameter, Xojo will ignore that constructor when you drag and drop an instance of the button on a Window.
Workaround:
Copy the color assignments in a public method you can name SetDefaults
Update your constructor to call SetDefaults
In the button’s Opening event in the Window, add the following code:
me.SetDefaults