
                            
                              SCROLL1.TXT 
                              

                       Fri  05-27-1994  11:25:33

     SCROLL1.EXE is a Visual BASIC for Windows (Version PRO 2.0)
     demonstration program. This small program will display the color
     spectrum available to you on your computer using the RGB FUNCTION.
     It was made using the sample code in the "VB's Programmer's Guide"
     on pages 58-60. This was an attempt to -try- to understand how the
     RGB FUNCTION translated colors into HEX numbers and how those HEX
     numbers relate to the color seen.

     Having migrated to Visual BASIC from QuickBASIC with its' 16
     Foreground and 8 Background colors (SCREEN 0), I am greatly
     confused (intimidated) by all the color potential, information, and
     numbers.

     Added... then removed a Menu Help Item that would load VB.HLP, not
     because I couldn't load that help file using the API FUNCTION:

     
     Declare Function WinHelp Lib "User" (ByVal hWnd As Integer,
     ByVal lpHelpFile As String, ByVal wCommand As Integer, dwData As Any)
     As Integer
     

     And issue the command in the MenuHelp_Click EVENT of:

     
     Temp%= WinHelp(hWnd,"VB.HLP",HELP_INDEX,HELP_CONTENT)
     

     But.... (believe it or NO...) I couldn't write code to -find-
     VB.HLP on any drive and any directory. Sure this program will work
     if you run SCROLL.1EXE from the same directory that contains
     VB.HLP, but it will bomb if it is in =any= other directory,
     including one in your PATH! So much for "Event Driven Object
     Oriented Programming" being a better mouse trap. Have the same old
     problems I had in Quick BASIC; "does the file exist?" and "Where is
     it?"

     Think this demo is somewhat better than the one in the book;
     substituted a Picture Box for a Text Box. Using a Text Box, you
     could tab to it and then enter text.... in a box that was supposed
     to just display a color. I was surprised that Microsoft programmers
     would be so, well... cavalier in their coding.

     Then made an "About" FORM using a TIMER to cycle three IMAGE
     OBJECTS that turned out fairly funny and cute. Found code that
     added the -same- System Resources information that appears in the
     Visual BASIC "About" DIALOG BOX in the Help Menu and popped that
     in.

     Like me, you may find yourself using this program to get a feel for
     colors and their HEX numbers in Visual BASIC. Find that it is
     helpful when I click on the Properties Box for some OBJECT and see
     some number as "&H80000008" in the Colors Property box. So.... even
     though it's not Rocket Science, I'm passing it on to you.

     If you make it better, send me a copy.

     John De Palma on CompuServe 76076,571
