docs: Progress bar in taskbar
This commit is contained in:
parent
2f36216cb0
commit
95662d4233
1 changed files with 26 additions and 0 deletions
|
@ -143,8 +143,34 @@ __Launcher shortcuts of Audacious:__
|
|||
|
||||
![audacious](https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles?action=AttachFile&do=get&target=shortcuts.png)
|
||||
|
||||
## Progress bar in taskbar (Windows & Unity)
|
||||
|
||||
On Windows, a taskbar button can be used to display a progress bar. This enables
|
||||
a window to provide progress information to the user without that user having to
|
||||
switch to the window itself.
|
||||
|
||||
The Unity DE also has a simililar feature that allows you to specify progress
|
||||
bar in the lancher.
|
||||
|
||||
__Progress bar in taskbar button:__
|
||||
|
||||
![Taskbar Progress Bar](https://cloud.githubusercontent.com/assets/639601/5081682/16691fda-6f0e-11e4-9676-49b6418f1264.png)
|
||||
|
||||
__Progress bar in Unity launcher:__
|
||||
|
||||
![Unity Launcher](https://cloud.githubusercontent.com/assets/639601/5081747/4a0a589e-6f0f-11e4-803f-91594716a546.png)
|
||||
|
||||
To set the progress bar for a Window, you can use the
|
||||
[BrowserWindow.setProgressBar](setprogressbar) API:
|
||||
|
||||
```javascript
|
||||
var window = new BrowserWindow({...});
|
||||
window.setProgresssBar(0.5);
|
||||
```
|
||||
|
||||
[addrecentdocument]:../api/app.md#appaddrecentdocumentpath
|
||||
[clearrecentdocuments]:../api/app.md#appclearrecentdocuments
|
||||
[setusertaskstasks]:../api/app.md#appsetusertaskstasks
|
||||
[setprogressbar]:../api/browser-window.md#browserwindowsetprogressbarprogress
|
||||
[app-registration]:http://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx
|
||||
[unity-launcher]:https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles#Adding_shortcuts_to_a_launcher
|
||||
|
|
Loading…
Reference in a new issue