| View previous topic :: View next topic |
| Author |
Message |
tuna
Joined: 03 Oct 2007 Posts: 47 Location: Bristol, England
|
Posted: Mon Dec 03, 2007 9:13 pm Post subject: Progress bar in status bar |
|
|
Perhaps not crucial, but the possiblity of a progress bar on a status bar (i.e. like IE) would be nice, since I keep have many little tasks that I would like to keep my eyes on - an simple unobtrusive control like that would be perfect.
Many thanks |
|
| Back to top |
|
 |
tic
Joined: 22 Apr 2007 Posts: 1375
|
Posted: Tue Dec 04, 2007 12:15 am Post subject: |
|
|
| make your own status bar that has a progress in it |
|
| Back to top |
|
 |
tuna
Joined: 03 Oct 2007 Posts: 47 Location: Bristol, England
|
Posted: Tue Dec 04, 2007 7:06 am Post subject: |
|
|
| But that would be text based right? |
|
| Back to top |
|
 |
HuBa
Joined: 24 Feb 2007 Posts: 172 Location: Budapest, Hungary
|
Posted: Tue Dec 04, 2007 9:39 pm Post subject: |
|
|
Create a statusbar on the gui and a progressbar.
Set the progressbar's parent to statusbar.
It's graphical, like IE.
Last edited by HuBa on Tue Dec 04, 2007 11:37 pm; edited 1 time in total |
|
| Back to top |
|
 |
tuna
Joined: 03 Oct 2007 Posts: 47 Location: Bristol, England
|
Posted: Tue Dec 04, 2007 10:08 pm Post subject: |
|
|
Thank HuBa, but I don't quite follow, do you mean a parent window - I've not seen documentation on creating parent controls.
Many thanks |
|
| Back to top |
|
 |
HuBa
Joined: 24 Feb 2007 Posts: 172 Location: Budapest, Hungary
|
Posted: Tue Dec 04, 2007 11:34 pm Post subject: |
|
|
You create the two separate control.
Then retreive the window handle to those controls.
And call this little Window API function:
DllCall("SetParent", "UInt", hControl, "UInt", hNewParent)
It's not a native AHK function so you need to understand the basics of WinAPI.
The documentation is here: http://msdn2.microsoft.com/en-us/library/ms633541.aspx |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1276
|
Posted: Sat Aug 09, 2008 5:34 pm Post subject: |
|
|
I'd like this too. I tried using setparent but it doesn't seem to work with the statusbar:
| Code: | ; put progress in statusbar
gui, add, progress, w200 h15 Hwndprogress vprg -smooth, 20
gui, add, statusbar, Hwndstatusbar
gui, show
dllcall("setparent","uint",progress,"uint",statusbar)
return
guiclose:
exitapp |
_________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
haichen
Joined: 05 Feb 2007 Posts: 140 Location: Osnabrück, Germany
|
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1276
|
Posted: Sat Aug 09, 2008 11:33 pm Post subject: |
|
|
Thanks Haichen! _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 1033
|
|
| Back to top |
|
 |
|