GUI中添加进度条控件

GUI中添加进度条控件

本文介绍了如何在Matlab GUI中添加进度条控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有现成的进度条uicontrol可以添加到Matlab gui中,uicontrol还是ActiveX组件?

Is there a ready made progress bar uicontrol that can be added to Matlab gui,either uicontrol or ActiveX component?

[edit]我了解waitbar函数,我的意思是一个可以在设计的GUI中实现的组件,而不仅仅是弹出窗口.状态栏中的电池状态之类的东西.

[edit] I know about the waitbar function, I meant a component that can be implemented into the designed GUI and not just pop out of the window. Something like battery status in status bar.

推荐答案

Waitbar及其变体显示带有状态栏的弹出窗口.在大多数应用程序中,这是可以的,而且使用起来非常简单.

Waitbar and its variants display a popup window with a status bar. In most applications this is ok and very simple to use.

如果要在现有的GUI窗口中集成进度条,则有多种选择:

If you want to integrate a progress-bar within an existing GUI window, you have several choices:

  1. 实现内部的等待条码-实际上,这只是一个轴,其上呈现一个彩色补丁,其宽度取决于进度值.
  2. 使用标准的 java.swing.JProgressBar ,可以将其添加到您的通过内置的 javacomponent函数
  3. 实现的Matlab GUI
  4. 使用 StatusBar实用程序或说明将进度条添加到GUI窗口的状态栏中
  1. implement the internal waitbar code - this is really just an axes that presents a colored patch whose width depends on the progress value.
  2. use the standard java.swing.JProgressBar, which can be added to your Matlab GUI via the built-in javacomponent function
  3. use the StatusBar utility or the explanation here to add a progress bar to your GUI window's status-bar

所有这些选择都适用于所有Matlab平台.

All of these choices work on all Matlab platforms.

这篇关于如何在Matlab GUI中添加进度条控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 01:03