问题描述
我正在使用 Matlab App Designer 创建一个应用程序。 我需要移除一些元素的边框(Textarea、EditField 等)
我已阅读 this blog 篇帖子。 (请注意,对这篇博文的大多数引用都已损坏,因为该博客已移至其页面的新部分。)。但这种方法已不再被 Matlab 推荐。
Warning: The JavaFrame figure property will be removed in a future release. For more @R_768_4045@ion see UI
Alternatives for MATLAB Apps on mathworks.com.
我发现有些对象具有可以设置的属性,例如 Borderstyle。这解决了我的面板问题。但这不适用于 EditFields 或 Textareas。
我知道我应该使用 matlab.ui.layout.Layoutoptions,但我不知道如何使用。 如果有人可以帮助删除文本区域和编辑字段的边框,那就太好了。
>> hEdit = uieditfield();
>> hEdit
hEdit =
EditField with properties:
BackgroundColor: [1 1 1]
BeingDeleted: off
BusyAction: 'queue'
ContextMenu: [0×0 GraphicsPlaceholder]
CreateFcn: ''
DeleteFcn: ''
Editable: on
Enable: on
FontAngle: 'normal'
FontColor: [0 0 0]
FontName: 'Helvetica'
FontSize: 12
FontWeight: 'normal'
HandleVisibility: 'on'
HorizontalAlignment: 'left'
InnerPosition: [100 100 100 22]
Interruptible: on
Layout: [0×0 matlab.ui.layout.Layoutoptions]
OuterPosition: [100 100 100 22]
Parent: [1×1 figure]
Position: [100 100 100 22]
Tag: ''
Tooltip: ''
Type: 'uieditfield'
UserData: []
Value: ''
ValueChangedFcn: ''
ValueChangingFcn: ''
Visible: on
顺便说一句,java 选项不再起作用,我已经尝试过了。我决定不再尝试解决这个问题,这只是时间问题,直到它再次失败。该博文来自 2010 年,适用于 Matlab GUI(现在已经 10 年了,我正在使用 AppDesigner)。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)