Announcement

Collapse
No announcement yet.

PBForms Progress Bar control ??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PBForms Progress Bar control ??

    Anybody used this before? I know it's cheating, but since I had so much trouble with the Calendar control I thought I would ask BEFORE I got desperate this time.

    Specifically: does this control use %WM_COMMAND or %WM_NOTIFY ?

    :coffee3:
    Do not go quiet into that good night,
    ... Rage, rage against the dark.

  • #2
    this may help : http://www.powerbasic.com/support/pb...tls_progress32

    Comment


    • #3
      A standard progress bar (class: "msctls_progress32") uses neither, since it has nothing to tell you.. there are no events to report.

      It "might" give you some of the 'standard' notifications from the common controls (eg, NM_CLICKED) and if it does (which I doubt) it would use WM_NOTIFY.. and if it does, those notifications are essentially excess baggage, since the progress control does not interact with the user... it's pretty much a label when you think about it.




      MCM
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        BUtif I'm wrong (very possible, since I need that vacation I leave on in a week), let me make it up to you in advance with some MACROs which may be of use...

        Code:
        ' a couple of progressbar MACROS not available from Win API
        MACRO ProgressBar_SetRange    (hCtrl, pMin, pMax)  =  SendMessage hCtrl, %PBM_SETRANGE, 0, MAKLNG(pMin, pMax)
        MACRO ProgressBar_SetStep     (Hctrl, iStep)       =  SendMessage hCtrl, %PBM_SETSTEP, iStep, 0
        MACRO ProgressBar_SetBarColor (hCtrl, rgbcolor)    =  SendMessage hCtrl, %PBM_SETBARCOLOR, 0, rgbColor
        MACRO ProgressBar_SetBkColor  (hCtrl, rgbColor)    =  SendMessage hCtrl, %PBM_SETBkColor,  0, rgbcolor
        MACRO ProgressBar_SetPos      (hCtrl, newPos)      =  SendMessage hCtrl, %PBM_SETPOS, newPos, 0
        MACRO ProgressBar_Step        (hCtrl)              =  SendMessage hCtrl, %PBM_STEPIT, 0, 0
        MCM
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          Originally posted by Michael Mattias View Post
          BUtif I'm wrong (very possible, since I need that vacation I leave on in a week), let me make it up to you in advance with some MACROs which may be of use...
          MCM

          Thanks Michael! That goes into my personal .inc file.

          Enjoy your vacation!

          Chris: Yes, that helped a lot. Thanks to you too!

          Stan
          Do not go quiet into that good night,
          ... Rage, rage against the dark.

          Comment

          Working...
          X