 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Sat Aug 30, 2008 7:36 pm Post subject: GuiControl,,Prog,Range0-10 does not update range |
|
|
| Quote: | Progress Options:
Cn: Changes the bar's color. Specify for n one of the 16 primary HTML color names or a 6-digit RGB color value. Examples: cRed, cFFFF33, cDefault. If the C option is never used (or cDefault is specified), the system's default bar color will be used.
BackgroundN: Changes the bar's background color. Specify for n one of the 16 primary HTML color names or a 6-digit RGB color value. Examples: BackgroundGreen, BackgroundFFFF33, BackgroundDefault. If the Background option is never used (or BackgroundDefault is specified), the background color will be that of the window or tab control behind it.
Range: Sets the range to be something other than 0 to 100. After the word Range, specify the minimum, a dash, and maximum. For example, Range0-1000 would allow a numbers between 0 and 1000; Range-50-50 would allow numbers between -50 and 50; and Range-10--5 would allow numbers between -10 and -5. On Windows 95 and NT4, negative ranges and ranges beyond 65535 will not behave correctly unless Internet Explorer 3.0 or later is installed.
-Smooth (minus Smooth): Displays a length of segments rather than a smooth continuous bar. Specifying -Smooth is also one of the requirements to show a themed progress bar on Windows XP or later. The other requirement is that the bar not have any custom colors; that is, that the C and Background options be omitted. Windows 95 and NT4 require Internet Explorer 3.0 or later to support this option.
Vertical: Makes the bar rise or fall vertically rather than move along horizontally. Windows 95 and NT4 require Internet Explorer 3.0 or later to support this option.
The above options can be changed after the control is created via GuiControl.
|
| Code: | Gui, Add, Edit, x6 y17 w100 h20 vRecords, 10
Gui, Add, Button, x106 y17 w100 h20 ggo, Button
Gui, Add, Progress, x6 y37 w200 h30 vProg,
; Generated using SmartGUI Creator 4.0
Gui, Show, x131 y91 h93 w219, New GUI Window
Return
GuiClose:
ExitApp
go:
Gui, Submit , NoHide
GuiControl,,Prog,Range0-10
Loop % records
{
sleep 100
GuiControl,,Prog,+1
}
msgbox done
return |
if you run afore posted code you will see that the range clearly is not setting to 0 to 10.
Am I reading this wrong? _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
Superfraggle
Joined: 02 Nov 2004 Posts: 1019 Location: London, UK
|
Posted: Sat Aug 30, 2008 7:42 pm Post subject: |
|
|
| Quote: | GuiControl, +/-Option1 +/-Option2 ... : Add or remove various options and styles. All GUI options (control-specific and general) are recognized. In the following example, the AltSubmit option is enabled but control's g-label is removed: GuiControl, +AltSubmit -g, MyListBox
In the next example, the OK button is made the new default button:
GuiControl, +Default, OK
|
| Code: | | GuiControl,+Range0-10,Prog |
hth... _________________ Steve F AKA Superfraggle
http://r.yuwie.com/superfraggle |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Sat Aug 30, 2008 7:52 pm Post subject: |
|
|
Doh i thought since you set the value in the 3rd parameter that you set any options there
thanks i tried it already
works Perfectly _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
heresy
Joined: 11 Mar 2008 Posts: 291
|
Posted: Sun Aug 31, 2008 6:21 am Post subject: |
|
|
i've been faced same confusion before. i think it's breaking the consistence _________________ Easy WinAPI - Dive into Windows API World
Benchmark your AutoHotkey skills at PlayAHK.com |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|