how to change the edit box color in gui?
2 次查看(过去 30 天)
显示 更早的评论
i want to change the background color of my edit box after i clicked my push button.
what i did was
a=get(handles.edit1,'string');
if a=='2';
set(handles.edit1,'BackgroundColor','red')
end
%these codes are under pushbutton1 callback function.
but still it doesnt change anything to my edit1 background.
what is wrong with it?
the command window doesnt say anything about any errors or mistakes111
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!