35.2 Индикатор выполнения ¶
-
:
h =waitbar(frac)¶ -
:
h =waitbar(frac, msg)¶ -
:
h =waitbar(…, "createcancelbtn", fcn, …)¶ -
:
h =waitbar(…, prop, val, …)¶ -
: waitbar
(frac)¶ -
: waitbar
(frac, h)¶ -
: waitbar
(frac, h, msg)¶ -
Возвращает дескриптор h нового объекта индикатора выполнения ("waitbar").
Waitbar заполняется до доли frac, значение которой должно быть в диапазоне [0, 1].
Необязательное сообщение msg выводится посередине над waitbar.
К нижней части waitbar можно добавить кнопку отмены, используя свойство
"createcancelbtn"фигур waitbar. Действие, которое должно быть выполнено при нажатии пользователем этой кнопки, задается строкой или дескриптором функции fcn.Внешний вид окна waitbar можно настроить, передавая пары prop/val в функцию. Полный список свойств описан в разделе Свойства фигур.
При вызове с одним входным аргументом текущий waitbar, если он существует, обновляется до нового значения frac. Если имеется несколько waitbar, их можно обновлять индивидуально, передав дескриптор h конкретного waitbar для изменения.
См. также: delete.
© 1996–2023 The Octave Project Developers
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://docs.octave.org/v9.2.0/Progress-Bar.html