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?
_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
