Jump to content

problem with progressbar


MrVietA2
 Share

Recommended Posts

Hi everyone :),

I tried to create a progress bar on win xp with win 7 interface and I did with

Posted Image

#include "GDIpProgress.au3"
$Gui = GUICreate("Gradient ProgressBar", 400, 350)
$sID = _ProgressCreate(10, 60, 300, 20)  ;BitOR($PBS_SMOOTH, $PBS_VERTICAL) here ??
_ProgressSetImages($sID, @ScriptDir & "prgimgsgreen.jpg", @ScriptDir & "prgimgsbg.jpg")
_ProgressSetFont($sID, "", -1, -1, 0x0000FF,0)
GUISetState()
Global $i
While 1
     $i = $i + 1
     Sleep(80)
     $Msg = GUIGetMsg()
          Switch $Msg
              Case $GUI_EVENT_CLOSE
                     Exit
          EndSwitch
If $i < 101 then
     _ProgressSet($sID, $i)
     _ProgressSetText($sID ,"")
Else
EndIf
WEnd

And here is my problem: I would like to create a vertical progress bar (with win 7 interface) on xp but that UDF limit this, it only allows me to create a horizontal progress bar. Please tell me how to do this !

All answers are welcome

Thanks

post-67379-0-59461400-1325210338_thumb.j

post-67379-0-56460300-1325210339_thumb.j

Edited by MrVietA2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...