home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vidbtn.zip
/
VIDBUTTN.DOC
< prev
next >
Wrap
Text File
|
1994-06-10
|
9KB
|
220 lines
VidButtn V2.00
Copyright 1994, Greg Ratajik.
Friday, May 13, 1993
CompuServe: 74555,542 (primary access)
Genie : G.RATAJIK
Internet : 74555.542@compuserve.com (primary access)
or : G.RATAJIK@genie.geis.com
Voice : (305)/340-7985
To register, send $15 check or money order, payable
to Greg Ratajik, to:
Greg Ratajik
1722 Forres Ave.
St. Joseph, MI 49085
OR, if you are using CompuServe to register
Easyplay, go to SWREG, and search fo VIDBUTTN.
NOTE: This is the OS/2 2.1 Version.
-------------------------------------------------------------------
VidButtn is a Shareware program. If you find VidButtn
useful, please send $15 to the above address (And if you find it
VERY useful, feel free to send what you think is a fair price.)
Feel free to play around with and copy VidButtn, but, if you use it
in one of your programs, and you sell that program, you must
register VidButtn. If you don't, or you modify the VidButtn DLL,
LIB or OBJ in anyway, you will be in violation of VidButtn's
copyright.
If you don't want/can't send in the $15 dollars, then I ask that
if you release a peice of software, and use VidButtns,
display that fact in the about box (or somewhere visible
like that) i.e.: "Uses VidButtns, copyright 1994, Greg
Ratajik.
If you are not even willing to do that then go ahead and use
them, but remember that the curse of all programmers will be on
your head! :) ...I rather that people write new and cool programs
for OS/2 than get the $15. It really is the BEST OS!
-------------------------------------------------------------------
I hope you find VidButtn useful, but (DISCLAIMER) I am
in no way responsible for any damages the use of VidButtn may
cause.
If you have any questions, comments, ideas, etc, feel free to
contact me. I'm always looking for ways to improve my software!
---------------------------------------------------------------
I. General
VidButtn provides a programmer with a simple,
straightforward way to create and use multi-state graphical
pushbuttons. VidButtn also provides a way for the user to get
help when moving the mouse pointer over a VidButtn, via a
status bar. VidButtn can be used for any pushbutton, but are
especially nice for Toolbars.
II. Using VidButtn (DLL Version.)
A. To add VidButtn to a program:
In the MAKE file:
o and VidButtn.LIB to the LINK statement, in addition
to any other libraries you may be using.
In the RC file (if using)
o Add a control for AniCreateButton to use. This
control should be of type WC_BUTTON, WS_USERBUTTON
In the PROGRAM FILE
o add #include "VidButtn.H"
o call the API VidCreateButton to make the button
added in the RC. An example of this call would be:
usUpBits[0] = ID_EYE1;
usUpBits[1] = ID_EYE2;
usUpBits[2] = ID_EYE3;
usUpBits[3] = ID_EYE4;
usUpBits[4] = ID_EYE5;
usUpBits[5] = 0; // The last element MUST be NULL
usDownBits[5] = 0; // The last element MUST be NULL
usDownBits[4] = ID_EYE1;
usDownBits[3] = ID_EYE2;
usDownBits[2] = ID_EYE3;
usDownBits[1] = ID_EYE4;
usDownBits[0] = ID_EYE5;
VidCreateButton(hWndDlg, /* Handle of Dialog */
PB_SCAN_DRIVE, /* ID of control */
&usUpBits[0], /* ID of UP bitmap */
&usDownBits[0], /* ID of DOWN bitmap */
68, /* X Size of bitmaps */
31, /* Y Size of bitmaps */
"Press this VidButton to scan the current drive for the selected file type.", /* Status bar text */
TX_HELP); /* ID of status bar */
NOTE: VidButtns will take any number of bitmaps, but a
NULL MUST be the last number of each array.
When the button first comes up, it will have ID_EYE1
displayed. When the user presses the button, it will
display ID_EYE2, ID_EYE3, ID_EYE4, and ID_EYE5. When the
user releases the button, it will display ID_EYE5, ID_EYE4,
ID_EYE3, ID_EYE2, and ID_EYE1.
The Status Bar text and ID of status bar are
optional. When the user moves the mouse arrow over
the VidButtn, It will display the status bar text
in the status bar (which should be a TEXT field)
o Processing on the VidButtn from this point on is
the same as any other pushbutton.
o When exiting the Window or dialog, you should use
the cleanup function VidDeleteButton. An example of
this call would be:
VidDeleteButton(hWndDlg, PB_SCAN_DRIVE);
For a complete example, see TOOLBAR.C and it's accompanying
files. If you have any question on implementing VidButtn,
please feel free to get in touch with.
If you would like to see VidButtns in action in a working
application, get EasyPlay (the EASY way to play!)
IV. Other shareware/PD programs to look for:
o Easyplay - lets you play WAV, AVI, MID, VOC, or any other type
that can be used with MMOS2. It lets you play ALL of these files
on a drive, in sequence. It also contains a new control type
called "VidButtons" (i.e. Full-frame video pushbuttons)
o ChatterBox - Allows users to send one line messages to
each other across a LAN. Very nice for non-critical
messages. One of the first OS/2 1.3 program to use real
custom animated pushbuttons (The first VidButtn program).
o DeleteDir - A simple full-screen program to delete a
directory and all files/directories that are children to
it.
o ChkPath - Will check the path's you set in your
config.sys, and let you know if you've got problems.
o Pwh - Path'ed Where. Will search a path for a file. PWH
will tell you every place it hit's the file. Very useful
for checking what version of a program you using.
o SMPrint - Prints a text file on a HP printer, in
landscape mode.
o MDD - Multiple make directory. MDD will create a
multiple directories (i.e. if you wanted to make
C:\GREG\PROGRAM\SOURCE20\MDD\RELEASE, MDD could do it in
one shot.)
o WHO - Will display information about all users of a
LAN/Domain.
o QWHO - Displays all user ID's currently on a LAN/Domain.
o NetChat - This program allows many users to have Chat
sessions over the LAN. It allows each user to set up
Conference groups and security levels. Each Conference
can have as many users as you want chatting. This is
similar to CompuServer's CB, or a BBS's multi-node chat
area.
o NetMail - Improved net massaging (i.e. "Blue Boxes") This
program gives you better control of system level LAN
messages. You can enter message subjects, set priority
levels, and type in longer messages.
NetMail allows each user to set up their own message
groups, along with global message groups. Each user can
choose which groups to receive messages from, and what
groups to send messages to.
NetMail also let's you choose whether to get the message
in the traditional VIO BlueBox (but better looking!), a
PM Message Box, or to display no message but to retrieve
it at a latter time.
This program makes Net Massaging easier to use, and less
annoying to the recipients.
o Vtree - Visual directory tree.
o EDCNFG - PM based program that will verify everything's
okay in your config.sys, keep track/retro changes into
multiple config's, and edit/setup a config.sys
o HPMLib - Library tracking system
o HPMCook - Cooking software
o HPMDiet - Dieting software
o DosText - Change the message a OS/2 program gives when
running it from DOS.
Program Utilities:
o AniButtn - Two-state animated pushbuttons that you can
easily replace any pushbutton with.
o VidButtn - Just like AniButtn, but will full-frame
animation. (The ones in EasyPlay work exactly like a
pushbutton, but have up to 17 frames of animation!)