home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / API_Progre215153562009.psc / readme.txt < prev    next >
Text File  |  2009-05-06  |  2KB  |  53 lines

  1. *****************************************************************************
  2. * API_ProgressBar, written by Michael Redwine   (michael@phuzz.net)         *
  3. *                                            (http://www.phuzz.net)         *
  4. * Used self-subclassing code by Paul Caton (Paul_Caton@hotmail.com)         *
  5. *****************************************************************************
  6.  
  7. 1...What
  8. 2...Why
  9. 3...What else?
  10. 4...A note about visual styles
  11.  
  12.  
  13.  
  14. 1.  API_ProgressBar control emulates most of the properties, methods, and
  15.     events of Microsoft's ogirinal ProgressBar control.
  16.  
  17. 2.  I wrote this control because I have an obsession with not including OCX
  18.     files in my applications... because I prefer to create single-file
  19.     programs without dependencies.
  20.  
  21. 3.  In addition, the following are added or modified:
  22.  
  23. * Marquee - Changes the style of the ProgressBar to "calculating".  This is
  24.     what you see when the ProgressBar has the green bar constantly going
  25.     across, over and over and over.  This property only has an effect
  26.     when using XP or greater and using the styles manifest (see notes).
  27. * State - Allows you to set the state of the ProgressBar to Normal (green),
  28.     Paused (yellow), or Error (red).  This property only has an effect
  29.     when using Vista or greater and using the styles manifest.
  30.  
  31. 4.   a) This control doesn't emulate an "XP" or "Vista" progress bar.  It
  32.     simply incorporates sytles and other such stuff in it so when your
  33.     program is ran in said operating system (with included manifest),
  34.     it won't look all ghetto.
  35.  
  36.      b) Modern visual styles are not any fun to program support for.  Figured
  37.     it out, though, I think.  First off, I included a "styles_manifest"
  38.     resource file.  Include this in your project.  Doing so will enable
  39.     your program to use the modern visual styles.  However, in the event
  40.     that you or a user might be using XP instead of Vista, you need to
  41.     do the next letter...
  42.  
  43.      c) You need to add this to your main startup form, like this:
  44.  
  45.     Private Declare Sub InitCommonControls Lib "comctl32.dll" ()
  46.  
  47.     Private Sub Form_Initialize()
  48.       InitCommonControls
  49.     End Sub
  50.  
  51.     This has nothing to do with API_ProgressBar, but everything to do
  52.     with XP sucking.  The above is a workaround that you need to use in
  53.     order to be able to use styles.