You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add this to constructor to ensure background color listener is still set if the concrete class doesn't modify the BackgroundColorableComponents. This ensures it will still update the color of the Grid on background change.
function obj = BaseWidget(varargin)
% Attach internal postSetup callback
args = horzcat(varargin, {"CreateFcn", @(src,evt)postSetup_I(src)});
% Call superclass constructor
obj = [email protected](args{:});
% Ensure background color listener has been generated
if isempty(obj.BackgroundColorListener)
obj.updateBackgroundColorableComponents()
obj.listenForBackgroundChange();
end
end %function
The text was updated successfully, but these errors were encountered:
Add this to constructor to ensure background color listener is still set if the concrete class doesn't modify the BackgroundColorableComponents. This ensures it will still update the color of the Grid on background change.
The text was updated successfully, but these errors were encountered: