Announcement

Collapse
No announcement yet.

PBForms Progress Bar control ??

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

  • StanHelton
    replied
    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

    Leave a comment:


  • Michael Mattias
    replied
    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

    Leave a comment:


  • Michael Mattias
    replied
    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

    Leave a comment:


  • Chris Holbrook
    replied
    this may help : http://www.powerbasic.com/support/pb...tls_progress32

    Leave a comment:


  • StanHelton
    started a topic PBForms Progress Bar control ??

    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 ?

Working...
X