SetProgressbarRange()

Share your advanced PureBasic knowledge/code with the community.
V2
User
User
Posts: 53
Joined: Wed Oct 15, 2003 4:53 pm

SetProgressbarRange()

Post by V2 »

Code updated For 5.20+

Changing the progressbar minimum/maximum:

Code: Select all

Procedure SetProgressbarRange(Gadget.l, Minimum.l, Maximum.l)
  ;? SetProgressbarRange(#progressbar, 0, 100)
  PBM_SETRANGE32 = $400 + 6
  SendMessage_(GadgetID(Gadget), PBM_SETRANGE32, Minimum, Maximum)
EndProcedure